diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-12 08:12:04 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-12 08:18:09 -0800 |
commit | b97ce22691e1ffb34f2bc3638ea44a69baa052e4 (patch) | |
tree | 9f27f5bc7d5e0baade7a824a164b7241ffc8b30d /scripts/install/install-get-partition | |
parent | bf40d48161d7c7b6871e443f8b250396d79c66fc (diff) | |
download | vyatta-cfg-system-b97ce22691e1ffb34f2bc3638ea44a69baa052e4.tar.gz vyatta-cfg-system-b97ce22691e1ffb34f2bc3638ea44a69baa052e4.zip |
Run partition editor with script flag to avoid prompting user
Bug 5443
When running on HyperV, install-system appeared to hang because
although hda existed, it had no information so parted was prompting
for retry. Use the -s flag (never prompt) at all the places
in install-system/install-image where we don't want to have
user interaction.
Diffstat (limited to 'scripts/install/install-get-partition')
-rwxr-xr-x | scripts/install/install-get-partition | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/install/install-get-partition b/scripts/install/install-get-partition index 250cec68..f010291e 100755 --- a/scripts/install/install-get-partition +++ b/scripts/install/install-get-partition @@ -290,7 +290,7 @@ check_for_new_raid () { sfdisk --change-id /dev/$drive $data_dev 0xfd # mark data partition as bootable lecho "Marking /dev/$drive partition $data_dev bootable" - output=$(parted /dev/$drive set $data_dev boot on 2>&1) + output=$(parted -s /dev/$drive set $data_dev boot on 2>&1) lecho "$output" done @@ -629,7 +629,7 @@ delete_partitions () { fi lecho "Removing partition $lpart on /dev/$ldrive" - output=$(parted /dev/$ldrive rm $lpart) + output=$(parted -s /dev/$ldrive rm $lpart) status=$? if [ "$status" != 0 ]; then echo -e "Warning: cannot delete partition $lpart on $ldrive.\n" @@ -683,7 +683,7 @@ create_partitions() { lecho "Creating root partition on /dev/$ldrive" # make the root partition - output=$(parted /dev/$ldrive mkpart primary $start_offset $root_part_size) + output=$(parted -s /dev/$ldrive mkpart primary $start_offset $root_part_size) status=$? if [ "$status" != 0 ]; then echo -e "Error creating primary partition on $ldrive.\nPlease see $INSTALL_LOG for more details.\nExiting..." @@ -842,7 +842,7 @@ setup_method_auto () { create_partitions "$INSTALL_DRIVE" "$root_part_size" 0 "yes" # mark data partition as bootable lecho "Marking /dev/$INSTALL_DRIVE partition 1 as bootable" - output=$(parted /dev/$INSTALL_DRIVE set 1 boot on 2>&1) + output=$(parted -s /dev/$INSTALL_DRIVE set 1 boot on 2>&1) lecho "$output" # Must give partition device time to settle sleep 5 |