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 |
# XXX - FIXME - unportable hack for fstab. |
cat /mnt/tmp/etc/fstab | sed "s/$disk\([0-9]\+\)/md\1/" \ |
|
# 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:" \ |
|
67 |
> /mnt/tmp/etc/fstab.tmp |
> /mnt/tmp/etc/fstab.tmp |
68 |
mv /mnt/tmp/etc/fstab.tmp /mnt/tmp/etc/fstab |
mv /mnt/tmp/etc/fstab.tmp /mnt/tmp/etc/fstab |
69 |
fi |
fi |
71 |
fi |
fi |
72 |
done |
done |
73 |
rmdir /mnt/tmp |
rmdir /mnt/tmp |
74 |
mdadm --stop --scan |
mdadm --stop --scan |
75 |
fi |
fi |
76 |
fi |
fi |