From b8e824c216ce84d302630f34fa916483ac94c394 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 24 Feb 2009 15:18:07 -0800 Subject: Allow installation on virtio disk In virtualized environment virtio block device is vda --- scripts/install-system | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') 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 }') -- cgit v1.2.3