Hi All

Please find attached the patch to make Voyage use file system LABEL to
find the boot partition. These should over come the issues with changing
between sd? and hd? partition.

Mike

--- copyfiles.sh.dist   2007-11-09 21:48:00.000000000 +1030
+++ copyfiles.sh        2007-11-19 15:15:02.000000000 +1030
@@ -55,6 +55,9 @@
 mount -t ext2 $TARGET_DISK$TARGET_PART $TARGET_MOUNT || \
   err_quit "Failed to mount $TARGET_DISK$TARGET_PART on $TARGET_MOUNT as an 
ext2 partition"
 
+# Mount Ok - Parition correct now set ext2 label to ROOT_FS
+e2label $TARGET_DISK$TARGET_PART ROOT_FS
+
 # We are going to use rsync to copy files from the distribution to the
 # target.  In order to minimise any flash writing, we first figure out
 # any files which we don't want to copy.  First, we check if there is a

--- setboot.sh.orig     2007-11-09 21:45:36.000000000 +1030
+++ setboot.sh  2007-11-19 15:17:45.000000000 +1030
@@ -39,13 +39,13 @@
 image=/vmlinuz
        root=/dev/hda$TARGET_PART
        label=Linux
-               append="${serapp}reboot=bios"
+               append="${serapp}reboot=bios root=LABEL=ROOT_FS"
        read-only
 
 image=/vmlinuz.old
        root=/dev/hda$TARGET_PART
        label=LinuxOLD
-               append="${serapp}reboot=bios"
+               append="${serapp}reboot=bios root=LABEL=ROOT_FS"
        read-only
        optional
 EOM
@@ -161,7 +161,7 @@
 
 title voyage-linux-$datestr
 root (hd0,$(($TARGET_PART-1)))
-kernel /vmlinuz root=/dev/hda${TARGET_PART}${console}
+kernel /vmlinuz root=LABEL=ROOT_FS ${console}
 ${VOYAGE_INITRD}
 
 EOM

_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to