]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Move /run mount to newroot. Always mount run for easier transition to /run hierarchy...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 6 Feb 2020 16:34:03 +0000 (17:34 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 6 Feb 2020 16:34:03 +0000 (17:34 +0100)
geninitrd

index e9832ef0307c33b4c98582bbf9939f2df5c11fe7..7f5495f8b407007b2ca6df5eb0b7a72a2b6cf097 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -288,8 +288,7 @@ umount_all() {
 
        if is_yes "$run_mounted"; then
                add_linuxrc <<-EOF
-               mount --bind /run /newroot/run
-               umount /run
+               mount -n --move /run /newroot/run
                EOF
                run_mounted=no
        fi
@@ -1653,6 +1652,7 @@ EOF
 
 # mount early
 mount_tmp
+mount_run
 
 modules_add_linuxrc $MODULES
 
This page took 0.099913 seconds and 4 git commands to generate.