summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-24 15:18:07 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-24 15:18:07 -0800
commitb8e824c216ce84d302630f34fa916483ac94c394 (patch)
tree9ef0c60bdfa6f308d91d8b753723073ee08300f0 /scripts
parent1b9ced12c764260072d9683b21d7ba6bf70f8749 (diff)
downloadvyatta-cfg-system-b8e824c216ce84d302630f34fa916483ac94c394.tar.gz
vyatta-cfg-system-b8e824c216ce84d302630f34fa916483ac94c394.zip
Allow installation on virtio disk
In virtualized environment virtio block device is vda
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-system5
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 }')