commit 72a1b0ef99c458e8edd6a7a728e073e7328a0327
Author: Elan Ruusamäe <[email protected]>
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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to