summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files
diff options
context:
space:
mode:
Diffstat (limited to 'packages/slugos-init/files')
-rw-r--r--packages/slugos-init/files/boot/disk18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/slugos-init/files/boot/disk b/packages/slugos-init/files/boot/disk
index dca1e422aa..17fb1f3243 100644
--- a/packages/slugos-init/files/boot/disk
+++ b/packages/slugos-init/files/boot/disk
@@ -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