[projects/geninitrd] try mounting /usr before switchroot
glen
glen at pld-linux.org
Mon Mar 23 11:06:58 CET 2015
commit 72a1b0ef99c458e8edd6a7a728e073e7328a0327
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Mar 23 12:06:39 2015 +0200
try mounting /usr before switchroot
geninitrd | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/geninitrd b/geninitrd
index b8ee2a3..2c435f8 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1052,6 +1052,14 @@ initrd_gen_initramfs_switchroot() {
[ "$DEBUGINITRD" ] || usleep 10000000
fi
+ # systemd[1]: /usr appears to be on its own filesytem and is not
+ # already mounted. This is not a supported setup. Some things will
+ # probably break (sometimes even silently) in mysterious ways. Consult
+ # http://freedesktop.org/wiki/Software/systemd/separate-usr-is-broken
+ # for more information.
+ echo trying to mount /usr
+ chroot /newroot mount -n /usr
+
exec switch_root /newroot $init ${1:+"$@"}
# FIXME: this code is never executed, as "exec" does not return!
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/72a1b0ef99c458e8edd6a7a728e073e7328a0327
More information about the pld-cvs-commit
mailing list