The branch main has been updated by bapt:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=9eae9233fdcc946945f4191e1413f548adfa2943

commit 9eae9233fdcc946945f4191e1413f548adfa2943
Author:     Baptiste Daroussin <[email protected]>
AuthorDate: 2024-03-15 14:15:03 +0000
Commit:     Baptiste Daroussin <[email protected]>
CommitDate: 2024-03-15 14:15:03 +0000

    nuageinit: be case insentive when looking got labels
    
    Reported by:    Marek Zarychta <[email protected]>
---
 libexec/rc/rc.d/nuageinit | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libexec/rc/rc.d/nuageinit b/libexec/rc/rc.d/nuageinit
index 9c914c340015..977b44e465fe 100755
--- a/libexec/rc/rc.d/nuageinit
+++ b/libexec/rc/rc.d/nuageinit
@@ -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

Reply via email to