nuageinit: be case insentive when looking got labels
Reported by: Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
This commit is contained in:
@@ -22,12 +22,12 @@ nuageinit_start()
|
||||
# it either formatted in vfat or iso9660 and labeled
|
||||
# config-2
|
||||
for f in iso9660 msdosfs; do
|
||||
drive=/dev/$f/config-2
|
||||
drive="/dev/$f/[cC][oO][nN][fF][iI][gG]-2"
|
||||
if [ -e $drive ]; then
|
||||
citype=config-2
|
||||
break
|
||||
fi
|
||||
drive=/dev/$f/cidata
|
||||
drive="/dev/$f/[cC][iI][dD][aA][tT][aA]"
|
||||
if [ -e $drive ]; then
|
||||
citype=nocloud
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user