From 32997d581eedb8795ab76097dbb6fd61ac07d783 Mon Sep 17 00:00:00 2001 From: Philippe De Swert Date: Thu, 12 Mar 2015 17:49:38 +0200 Subject: [PATCH] [systemd] Add systemd tmpfiles.d hack Add systemd tmpfiles.d hack. Signed-off-by: Philippe De Swert --- rpm/usb-moded.spec | 2 ++ systemd/usb-moded.conf | 1 + 2 files changed, 3 insertions(+) create mode 100644 systemd/usb-moded.conf diff --git a/rpm/usb-moded.spec b/rpm/usb-moded.spec index bd2058e..76da091 100644 --- a/rpm/usb-moded.spec +++ b/rpm/usb-moded.spec @@ -320,6 +320,7 @@ install -m 644 -D systemd/usb-moded-args.conf %{buildroot}/var/lib/environment/u install -m 755 -D systemd/turn-usb-rescue-mode-off %{buildroot}/%{_bindir}/turn-usb-rescue-mode-off install -m 644 -D systemd/usb-rescue-mode-off.service %{buildroot}/lib/systemd/system/usb-rescue-mode-off.service install -m 644 -D systemd/usb-rescue-mode-off.service %{buildroot}/lib/systemd/system/graphical.target.wants/usb-rescue-mode-off.service +install -m 644 -D systemd/usb-moded.conf %{_sysconfig}/tmpfiles.d/usb-moded.conf %preun @@ -343,6 +344,7 @@ systemctl daemon-reload || : %{_mandir}/man1/usb-moded.1.gz /lib/systemd/system/%{name}.service /lib/systemd/system/basic.target.wants/%{name}.service +%config %{_sysconfdir}/tmpfiles.d/usb-moded.conf %files devel %defattr(-,root,root,-) diff --git a/systemd/usb-moded.conf b/systemd/usb-moded.conf new file mode 100644 index 0000000..18ba234 --- /dev/null +++ b/systemd/usb-moded.conf @@ -0,0 +1 @@ +d /run/usb-moded/ 0644 root root