diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/slugos-init/files/boot/ram | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/slugos-init/files/boot/ram')
-rw-r--r-- | packages/slugos-init/files/boot/ram | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/packages/slugos-init/files/boot/ram b/packages/slugos-init/files/boot/ram deleted file mode 100644 index 0a8fe1d25d..0000000000 --- a/packages/slugos-init/files/boot/ram +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh -# boot from the hard disk partition "$1" (which -# must be given) using options from the rest of -# the command line. - -# Use the standard init path (see /etc/init.d/rcS) -export PATH=/sbin:/bin:/usr/sbin:/usr/bin - -# Mount required fileystems if necessary -[ -e /proc/cpuinfo ] || mount -t proc proc /proc -[ -e /sys/class ] || mount -t sysfs sysfs /sys - -# Load the helper functions -. /etc/default/functions - -leds beep -r 2 -leds boot system - -if test -n "$1" -then - device="$1" - shift - echo "boot: rootfs: mount $* $device" - - # prepare the device. This uses tmpfs to avoid dependency - # on non-built-in file systems and because tmpfs can expand - # to bigger than the 10MByte ram0 partition used before. - # The 'device' is currently unused. - if mount -t tmpfs "$@" tmpfs /mnt - then - cd / - # filter out boot (with zimage), linuxrc and anything - # below /var, keep dev or the boot will fail. Take - # care that nothing is mounted at this point! - umount /proc - umount /sys - find . -xdev -print | - sed '\@^./boot/@d;\@^./boot$@d;\@^./linuxrc@d;\@^./var/@d' | - cpio -p -d -m -u /mnt - # busybox find with -xdev will not print the name of the - # mountpoint, so create the empty dir manually if required. - test -d /mnt/mnt || mkdir /mnt/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 /mnt - cd / - swivel mnt mnt - # swivel failed - fi - # Failure: unmount the partition - umount /mnt - # Remount /proc and /sys if necessary - [ -e /proc/cpuinfo ] || mount -t proc proc /proc - [ -e /sys/class ] || mount -t sysfs sysfs /sys - fi -fi - -# fallback - use the flash boot -leds beep -f 1000 -r 2 -exec /boot/flash |