commit:     255d1f34ef55ee9c83983fec1057c1dde156ea26
Author:     Richard Yao <ryao <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 20 18:54:33 2016 +0000
Commit:     Richard Yao <ryao <AT> gentoo <DOT> org>
CommitDate: Wed Jan 20 18:54:33 2016 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=255d1f34

busybox mount takes -o move instead of --move

Our attempt to move /dev into /newroot/dev fails because busybox's mount
does not understand --move. Instead it requires `-o move`. ZFS /dev/zd*
devices to be lost during the boot process.

At present, there is no nothing in userland that knows how to recreate
them from `/sys/devices/virtual/block`.

Signed-off-by: Richard Yao <ryao <AT> gentoo.org>

 defaults/linuxrc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/defaults/linuxrc b/defaults/linuxrc
index dc129ce..66efda8 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -998,7 +998,7 @@ for fs in /dev /sys /proc
 do
        if grep -qs "$fs" /proc/mounts
        then
-               if ! mount --move $fs "${CHROOT}"$fs
+               if ! mount -o move $fs "${CHROOT}"$fs
                then
                        umount $fs || \
                        bad_msg "Failed to move and unmount the ramdisk $fs!"

Reply via email to