From 030df66622d9448e57e9abd371c840cbf851c080 Mon Sep 17 00:00:00 2001 From: Bob Gilligan Date: Tue, 26 Jan 2010 16:23:49 -0800 Subject: Bugfix 5229: Save old config info when installing on pre-existing RAID group. --- scripts/install/install-get-partition | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition index 9ca5d9c3..37ec5580 100755 --- a/scripts/install/install-get-partition +++ b/scripts/install/install-get-partition @@ -168,12 +168,23 @@ check_for_old_raid () { warn_of_dire_consequences ROOT_PARTITION=$INSTALL_DRIVE + ROOT_PARTITION_TYPE=new # make sure we aren't working on a mounted part unmount "$INSTALL_DRIVE" # check for an old config on the partition - check_config_partition "$ROOT_PARTITION" + mkdir -p /mnt/tmp + output=$(mount -r /dev/"$ROOT_PARTITION" /mnt/tmp 2>&1) + if [ $? != 0 ]; then + echo "Cannot mount $ROOT_PARTITION to check for old config file" + lecho "Cannot mount $ROOT_PARTITION"."\n" + lecho "mount $ROOT_PARTITION /mnt/tmp\n" + lecho "$output" + else + save_old_info "$ROOT_PARTITION" + umount /mnt/tmp + fi # create the filesystem on the part make_filesystem "$ROOT_PARTITION" -- cgit v1.2.3