SlugOS: turnup - ensure that /sys and /proc are mounted first in linuxrc
authorMike Westerhof <mwester@dls.net>
Sun, 14 Dec 2008 16:55:49 +0000 (10:55 -0600)
committerMike Westerhof <mwester@dls.net>
Sun, 14 Dec 2008 16:55:49 +0000 (10:55 -0600)
(fixes lack of "beep" when userspace starts)

packages/slugos-init/files/turnup

index 51b801d..4e92668 100644 (file)
@@ -496,6 +496,8 @@ boot_rootfs() {
                        return 1
                };;
        ram)    {       echo '#!/bin/sh'
+                       echo 'mount -t proc  proc  /proc'
+                       echo 'mount -t sysfs sysfs /sys'
                        echo 'leds beep'
                        echo 'rm -f /linuxrc.new'
                        echo 'ln -s boot/flash /linuxrc.new'
@@ -508,6 +510,8 @@ boot_rootfs() {
                        return 1
                };;
        *)      {       echo '#!/bin/sh'
+                       echo 'mount -t proc  proc  /proc'
+                       echo 'mount -t sysfs sysfs /sys'
                        echo 'leds beep'
                        test "$sleep" -gt 0 && echo -n "sleep='$sleep' "
                        test -n "$uuid" && echo -n "UUID='$uuid' "