From: Barış Metin Date: Fri, 14 Jan 2011 14:35:44 +0000 (+0100) Subject: for future virtio support, checking virtio disks too (sneak this in along with other... X-Git-Tag: bootcd-4.2-22~1 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=e1f6a973664743065a5f19df042007d28eb61743 for future virtio support, checking virtio disks too (sneak this in along with other bootcd changes). --- diff --git a/initscripts/pl_netinit b/initscripts/pl_netinit index a53e3cd..0ee8325 100755 --- a/initscripts/pl_netinit +++ b/initscripts/pl_netinit @@ -128,8 +128,8 @@ find_node_config() # devices shopt -s nullglob - for device in /sys/block/[hs]d*; do - removable=`cat $device/removable` + for device in /sys/block/[hsv]d*; do + removable=$(cat $device/removable) if [[ $removable -ne 1 ]]; then continue fi