nuageinit: be case insentive when looking got labels

Reported by:	Marek Zarychta <zarychtam@plan-b.pwste.edu.pl>
This commit is contained in:
Baptiste Daroussin 2024-03-15 15:15:03 +01:00
parent 5c318f5ce3
commit 9eae9233fd

View file

@ -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