From fb1cee2982dbd566111e6dcd5766b7721583513b Mon Sep 17 00:00:00 2001 From: Mike Westerhof Date: Sun, 24 Aug 2008 23:49:44 +0000 Subject: SlugOS 5 - replace "mount -U" with "mount UUID=" which works with both mount and busybox mount; also update boot/disk script to ensure that some key devices exist in the new /dev which will enable booting to a virgin nfsroot. --- packages/slugos-init/files/boot/disk | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'packages/slugos-init/files/boot') diff --git a/packages/slugos-init/files/boot/disk b/packages/slugos-init/files/boot/disk index d47be54c37..63370ce340 100644 --- a/packages/slugos-init/files/boot/disk +++ b/packages/slugos-init/files/boot/disk @@ -38,12 +38,13 @@ then # is attempted. if test -n "$UUID" && mount "$@" UUID="$UUID" /mnt || - mount "$@" -U "$UUID" /mnt || mount "$@" "$device" /mnt then - # checkmount checks for sh, chroot, init - # and /mnt (i.e. /mnt/mnt in this case) - if checkmount /mnt + # checkmount checks for sh, chroot, init, /dev + # and /mnt (i.e. /mnt/mnt in this case). + # minimaldevnodes checks (and creates if required) + # a few mandatory /dev nodes we may need. + if checkmount /mnt && minimaldevnodes /mnt then # pivot to /initrd if available, else /mnt cd / -- cgit v1.2.3