BTW, based on feedback from the nslu2-linux list, we seem to get a lot of broken machines at the moment because people put LABEL or UUID or whatever into /etc/fstab and this hook will happily write this into the initramfs. If you're not comfortable putting in the LABEL/UUID parsing code in for etch, I think we should at least make an upload with the following change aimed at etch:
Index: nslu2 =================================================================== --- nslu2 (revision 101) +++ nslu2 (working copy) @@ -67,7 +67,7 @@ # Record the root filesystem device for use during boot, since the slug's # bootloader is hardcoded to use root=/dev/ram. rootdev=$(egrep '^[^# ]*[ ]*/[ ]' /etc/fstab | awk '{print $1}') || true -if [ -z "$rootdev" ]; then +if [ ! -e "$rootdev" ]; then rootdev=/dev/sda1 echo "Warning: /etc/fstab parse error; guessing that the root device is $rootdev" >&2 fi or maybe better yet: Index: nslu2 =================================================================== --- nslu2 (revision 101) +++ nslu2 (working copy) @@ -67,9 +67,10 @@ # Record the root filesystem device for use during boot, since the slug's # bootloader is hardcoded to use root=/dev/ram. rootdev=$(egrep '^[^# ]*[ ]*/[ ]' /etc/fstab | awk '{print $1}') || true -if [ -z "$rootdev" ]; then +if [ ! -e "$rootdev" ]; then rootdev=/dev/sda1 echo "Warning: /etc/fstab parse error; guessing that the root device is $rootdev" >&2 + pause_error fi install -d $DESTDIR/conf echo ROOT="$rootdev" >> $DESTDIR/conf/param.conf -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]