]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
try mounting /usr before switchroot
authorElan Ruusamäe <glen@delfi.ee>
Mon, 23 Mar 2015 10:06:39 +0000 (12:06 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 23 Mar 2015 10:06:39 +0000 (12:06 +0200)
geninitrd

index b8ee2a381419feb242586a7e09547d73cd793ab5..2c435f8860aee92f9ddf5f56f2aa12fe67650851 100755 (executable)
--- 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!
This page took 0.057237 seconds and 4 git commands to generate.