diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg index 042a14df..b7717570 100644 --- a/kickstart/files/kickstart.cfg +++ b/kickstart/files/kickstart.cfg @@ -1028,6 +1028,10 @@ if check_prestage -eq 0 ; then orig_rootfs_device=$rootfs_device by_path_rootfs_device=$(get_by_path ${rootfs_device}) + if [ -z "${by_path_rootfs_device}" ]; then + report_failure_with_msg "Device not found: ${orig_rootfs_device}" + fi + rootfs_device=$(get_disk ${by_path_rootfs_device}) ilog "Found rootfs $orig_rootfs_device on: $by_path_rootfs_device->$rootfs_device." @@ -1049,9 +1053,22 @@ if check_prestage -eq 0 ; then mkdir -p ${temp_mount} ilog "Searching for existing installation..." + + device_list=() for part in "${part_numbers[@]}"; do device=${ROOTFS_PART_PREFIX}${part} - ilog "Searching on ${device}" + device_list+=(${device}) + ilog "Adding ${device}" + done + + # adding the following device to the device list to search + # for the filesystem. If Volume Groups have been enabled, + # it is possible to perform the checks for install_guid below + # by mounting /dev/cgts-vg/var-lv. + device_list+=("/dev/cgts-vg/var-lv") + ilog "Adding /dev/cgts-vg/var-lv" + + for part in "${device_list[@]}"; do # mount this part at a temporary mount point mount ${device} ${temp_mount} if [ $? -ne 0 ]; then