slugos-init: Add delay to disk booting to cope with module loading
authorMichael-Luke Jones <mlj28@cam.ac.uk>
Thu, 28 Sep 2006 18:15:49 +0000 (18:15 +0000)
committerMichael-Luke Jones <mlj28@cam.ac.uk>
Thu, 28 Sep 2006 18:15:49 +0000 (18:15 +0000)
packages/slugos-init/files/boot/disk
packages/slugos-init/slugos-init_0.10.bb

index dca1e42..17fb1f3 100644 (file)
@@ -16,17 +16,17 @@ if test -n "$1"
 then
        device="$1"
        shift
-       echo "boot: rootfs: mount $* $device [$UUID]"
-       #
-       # wait if required
+        # proc is needed for UUID mount and module load
+        mount -t proc proc /proc
+        # load USB & SCSI storage modules (/proc required!)
+        echo "boot: loading modules required for disk boot"
+        loaddiskmods
+       # waiting for disk (FIXME)
+       sleep=5
        test "$sleep" -gt 0 && sleep "$sleep"
        #
-       # proc is needed for UUID mount
-       mount -t proc proc /proc 
-       #
-       # load USB & SCSI storage modules (/proc required!)
-       echo "boot: loading modules required for boot"
-       loaddiskmods
+       # fire the boot
+       echo "boot: rootfs: mount $* $device [$UUID]"
        #
        # Mount read-write because before exec'ing init
        # If a UUID is given (in the environment) this
index d6ce0b5..7c8d0fa 100644 (file)
@@ -4,7 +4,7 @@ PRIORITY = "required"
 LICENSE = "GPL"
 DEPENDS = "base-files devio"
 RDEPENDS = "busybox devio"
-PR = "r69"
+PR = "r70"
 
 SRC_URI = "file://boot/flash \
           file://boot/disk \