summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/boot/flash
diff options
context:
space:
mode:
Diffstat (limited to 'packages/slugos-init/files/boot/flash')
-rw-r--r--packages/slugos-init/files/boot/flash7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/slugos-init/files/boot/flash b/packages/slugos-init/files/boot/flash
index 37a1055763..1390597ce7 100644
--- a/packages/slugos-init/files/boot/flash
+++ b/packages/slugos-init/files/boot/flash
@@ -2,10 +2,17 @@
# boot from the current (flash) root partition
# nothing need be done apart from setting the
# system LED status correctly
+
+# Mount required filesystems if necessary
+[ -e /proc/cpuinfo ] || mount -t proc proc /proc
+[ -e /sys/class ] || mount -t sysfs sysfs /sys
+
leds beep
. /etc/default/functions
leds boot system
+
test -x /sbin/init && exec /sbin/init
+
# fallback if /sbin/init has been deleted (bad!)
leds boot system panic
exec <>/dev/console >&0 2>&0