63 |
# Check for /etc/fstab on partitions and convert entries |
# Check for /etc/fstab on partitions and convert entries |
64 |
mount $part /mnt/tmp |
mount $part /mnt/tmp |
65 |
if [ -r /mnt/tmp/etc/fstab ]; then |
if [ -r /mnt/tmp/etc/fstab ]; then |
66 |
cat /mnt/tmp/etc/fstab | sed "s/$disk\([0-9]\+\)/md\1/" > /mnt/tmp/etc/fstab.tmp |
# XXX - FIXME - unportable hack for fstab. |
67 |
|
# Only works for 6.x I suspect |
68 |
|
cat /mnt/tmp/etc/fstab | sed "s/$disk\([0-9]\+\)/md\1/" | \ |
69 |
|
sed -e "s:LABEL=/boot1:/dev/md1:" | \ |
70 |
|
sed -e "s:LABEL=/:/dev/md3:" \ |
71 |
|
> /mnt/tmp/etc/fstab.tmp |
72 |
mv /mnt/tmp/etc/fstab.tmp /mnt/tmp/etc/fstab |
mv /mnt/tmp/etc/fstab.tmp /mnt/tmp/etc/fstab |
73 |
fi |
fi |
74 |
umount /mnt/tmp |
umount /mnt/tmp |