From 665127c5c8a1b52ac70335fdfa7b47ec70cf0cf5 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 30 Aug 2012 17:37:41 +0200 Subject: [PATCH] fix check on virtio media --- usr/share/archboot/installer/setup | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr/share/archboot/installer/setup b/usr/share/archboot/installer/setup index 67dc40ce8..26c9bc3c3 100755 --- a/usr/share/archboot/installer/setup +++ b/usr/share/archboot/installer/setup @@ -362,12 +362,13 @@ get_media() { if [[ "${SET_MEDIA}" == "0" ]]; then # scsi/sata and other devices for dev in $(ls ${block} | egrep '^[sv]d|^sr|^scd|^sg'); do - if [[ "$(cat ${block}/${dev}/device/type)" = "5" ]]; then - check_media - fi - #check virtio devices if ! [[ -e "${block}/${dev}/device/type" ]]; then + #check virtio devices check_media + else + if [[ "$(cat ${block}/${dev}/device/type)" = "5" ]]; then + check_media + fi fi done fi