summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/turnup
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2006-01-21 19:23:31 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-21 19:23:31 +0000
commit6ca2b30e1bd7b636f856725300c1d44fe1b56381 (patch)
treeea2949bee600954c1ddb9f6ffe7e90be2411fc78 /packages/slugos-init/files/turnup
parentec31c75e94546c0ede50107715ade3920516834f (diff)
disapproval of revision '0b95bcbd94eecc35400e4a1a8af33317d5f8b411'
Diffstat (limited to 'packages/slugos-init/files/turnup')
-rw-r--r--packages/slugos-init/files/turnup13
1 files changed, 5 insertions, 8 deletions
diff --git a/packages/slugos-init/files/turnup b/packages/slugos-init/files/turnup
index 3bb1a55b9c..0029697c50 100644
--- a/packages/slugos-init/files/turnup
+++ b/packages/slugos-init/files/turnup
@@ -309,7 +309,7 @@ setup_fstab() {
#
-# boot_rootfs <boot type> <flash file system> <sleep time> <label> <device> [options]
+# boot_rootfs <boot type> <flash file system> <sleep time> <device> [options]
# Change the flash partition (not the current root!) to boot off
# the new root file system
boot_rootfs() {
@@ -318,9 +318,8 @@ boot_rootfs() {
type="$1"
ffs="$2"
sleep="$3"
- label="$4"
- device="$5"
-
+ device="$4"
+
# test this first as the test does not depend on the correctness
# of the other arguments
test -n "$ffs" -a -d "$ffs" || {
@@ -377,7 +376,7 @@ boot_rootfs() {
};;
*) { echo '#!/bin/sh'
test "$sleep" -gt 0 && echo -n "sleep='$sleep' "
- echo -n "exec '/boot/$type' '$label'"
+ echo -n "exec '/boot/$type' '$device'"
for opt in "$@"
do
echo -n " '$opt'"
@@ -493,10 +492,8 @@ disk() {
# if everything went ok boot from this disk
if test $status -eq 0
then
- TEMP_LABEL=`date +%y%m%d%H%M`
- tune2fs -L $TEMP_LABEL $device
# memsticks boot like disks, so ignore the -m
- boot_rootfs disk "$ffs" "$sleep" "$TEMP_LABEL" "$device" -t "$fst" -o "$fso"
+ boot_rootfs disk "$ffs" "$sleep" "$device" -t "$fst" -o "$fso"
fi
else
echo "turnup disk: $device($*): unable to mount device on $new" >&2