--- cdrom.image/updates/raidconvert 2005/09/16 22:11:45 1.1 +++ cdrom.image/updates/raidconvert 2005/09/17 02:01:29 1.2 @@ -63,13 +63,18 @@ if [ $found -gt "0" ] ; then # Check for /etc/fstab on partitions and convert entries mount $part /mnt/tmp if [ -r /mnt/tmp/etc/fstab ]; then - cat /mnt/tmp/etc/fstab | sed "s/$disk\([0-9]\+\)/md\1/" > /mnt/tmp/etc/fstab.tmp + # XXX - FIXME - unportable hack for fstab. + # Only works for 6.x I suspect + cat /mnt/tmp/etc/fstab | sed "s/$disk\([0-9]\+\)/md\1/" | \ + sed -e "s:LABEL=/boot1:/dev/md1:" | \ + sed -e "s:LABEL=/:/dev/md3:" \ + > /mnt/tmp/etc/fstab.tmp mv /mnt/tmp/etc/fstab.tmp /mnt/tmp/etc/fstab fi umount /mnt/tmp fi done rmdir /mnt/tmp - mdadm --stop --scan + mdadm --stop --scan fi fi