[Libguestfs] [PATCH] appliance: run systemd-tmpfiles also for /var/run

Pino Toscano ptoscano at redhat.com
Fri Mar 10 14:09:46 UTC 2017


Commit a6330e9d3af0f5286f1d53d909fd868387b67f69 enabled /run for
systemd-tmpfiles: while this works fine in most of the cases, there are
few tmpfiles configurations that still references /var/run instead of
/run.  As result, include also /var/run in the systemd-tmpfiles
execution.
---
 appliance/init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/appliance/init b/appliance/init
index b951857..968429c 100755
--- a/appliance/init
+++ b/appliance/init
@@ -90,7 +90,7 @@ machine_id=$(dd if=/dev/urandom bs=16 count=1 status=none | od -x -A n)
 echo "${machine_id// /}" > /etc/machine-id
 
 # Set up tmpfiles (must run after kmod.conf is created above).
-systemd-tmpfiles --prefix=/dev --prefix=/run --create --boot
+systemd-tmpfiles --prefix=/dev --prefix=/run --prefix=/var/run --create --boot
 
 # Find udevd and run it directly.
 for f in /lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd \
-- 
2.9.3




More information about the Libguestfs mailing list