diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-24 15:18:07 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-24 15:18:07 -0800 |
commit | b8e824c216ce84d302630f34fa916483ac94c394 (patch) | |
tree | 9ef0c60bdfa6f308d91d8b753723073ee08300f0 | |
parent | 1b9ced12c764260072d9683b21d7ba6bf70f8749 (diff) | |
download | vyatta-cfg-quagga-b8e824c216ce84d302630f34fa916483ac94c394.tar.gz vyatta-cfg-quagga-b8e824c216ce84d302630f34fa916483ac94c394.zip |
Allow installation on virtio disk
In virtualized environment virtio block device is vda
-rwxr-xr-x | scripts/install-system | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/install-system b/scripts/install-system index 6dd7f360..7fee5210 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -491,7 +491,10 @@ check_for_new_raid () { select_drive () { # list the drives in /proc/partitions. Remove partitions and empty lines. # the first grep pattern looks for devices named c0d0, hda, and sda. - drives=$(cat /proc/partitions | awk '{ if ($4!="name") { print $4 } }' | egrep "c[0-9]d[0-9]$|[hs]d[a-z]$" | egrep -v "^$") + drives=$(cat /proc/partitions | \ + awk '{ if ($4!="name") { print $4 } }' | \ + egrep "c[0-9]d[0-9]$|[hsv]d[a-z]$" | \ + egrep -v "^$") # take the first drive as the default INSTALL_DRIVE=$(echo $drives | /usr/bin/awk '{ print $1 }') |