[projects/geninitrd] Move /run mount to newroot. Always mount run for easier transition to /run hierarchy later.
arekm
arekm at pld-linux.org
Thu Feb 6 17:34:10 CET 2020
commit b6efb8e39496d74852f353e5142d5cb076d7540f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Feb 6 17:34:03 2020 +0100
Move /run mount to newroot. Always mount run for easier transition to /run hierarchy later.
geninitrd | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index e9832ef..7f5495f 100755
--- 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/b6efb8e39496d74852f353e5142d5cb076d7540f
More information about the pld-cvs-commit
mailing list