--- cdrom.image/upgrade.cfg 2005/07/06 22:44:29 1.3 +++ cdrom.image/upgrade.cfg 2005/07/06 22:50:53 1.4 @@ -35,7 +35,7 @@ if [ $found -gt "0" ] ; then # Check if we have any ext2/3 or swap partitions if grep -q 'Id=8[23]' /tmp/oldparts; then - echo -n "Converting partitions to RAID..." >/dev/tty1 + echo -n "Converting partitions to RAID..." >/dev/tty1 # Convert ext2/3 and swap partitions to raid autodetect sed 's/Id=8[32]/Id=fd/' /tmp/oldparts > /tmp/newparts @@ -46,7 +46,7 @@ if [ $found -gt "0" ] ; then for part in `grep 'Id=8[23]' /tmp/oldparts | sed 's/ :.*//'`; do mdpart=`echo $part | sed "s/$disk\([0-9]\+\)/md\1/"` - echo -n "$part..." >/dev/tty1 + echo -n "$part..." >/dev/tty1 mdadm --create $mdpart --run --level=1 --raid-devices=2 $part missing if [ "$mdpart" == "$swap" ]; then # Recreate swap partition @@ -57,18 +57,18 @@ if [ $found -gt "0" ] ; then fi done - echo "done" >/dev/tty1 + echo "done" >/dev/tty1 # Write out new converted partition table sfdisk --force /dev/$disk < /tmp/newparts - echo -n "Running fsck on converted partitions..." >/dev/tty1 + echo -n "Running fsck on converted partitions..." >/dev/tty1 mkdir /mnt/tmp for part in `grep 'Id=fd' /tmp/newparts | sed "s/$disk\([0-9]\+\) :.*/md\1/"`; do if [ "$part" != "$swap" ]; then # Resize ext2/3 partitions (fix superblock - part 2) - echo -n "$part..." >/dev/tty1 + echo -n "$part..." >/dev/tty1 e2fsck -f $part # Check for /etc/fstab on partitions and convert entries @@ -80,7 +80,7 @@ if [ $found -gt "0" ] ; then umount /mnt/tmp fi done - echo "done" >/dev/tty1 + echo "done" >/dev/tty1 rmdir /mnt/tmp mdadm --stop --scan fi