[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lorax] Make sure var/run is not a symlink on s390x (#787217)



---
 share/runtime-postinstall.tmpl |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl
index 2d37a2b..8cf5322 100644
--- a/share/runtime-postinstall.tmpl
+++ b/share/runtime-postinstall.tmpl
@@ -82,6 +82,11 @@ replace "root:\*:" "root::" etc/shadow
     runcmd ssh-keygen -q -C "" -N "" -t dsa  -f ${root}/etc/ssh/ssh_host_dsa_key
     chmod etc/ssh/ssh_host*_key 600
     chmod etc/ssh/ssh_host*_key.pub 644
+    ## var/run is a symlink to tmpfs, so the created dbus directory does not stay
+    remove var/run
+    remove var/lock
+    move run var/run
+    symlink run/lock var/lock
     mkdir var/run/dbus
 %endif
 
-- 
1.7.5.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]