]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: Change FAT volume label to be with in the valid character range
authorGlenn Washburn <development@efficientek.com>
Fri, 17 Sep 2021 23:04:00 +0000 (23:04 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 14 Oct 2021 13:28:01 +0000 (15:28 +0200)
The ";", semi-colon, character is not a valid character for a FAT filesystem
label. This test used to succeed because prior to v4.2 of dosfstools
mkfs.vfat did not enforce the character restrictions for volume labels. So,
change the volume label string to be valid but contain symbol characters to
test odd volume labels.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-fs-tester.in

index 099228c66b475e2591648931cff9cd2e907fcf3b..ce9ae04f4ecfd0b39836a665684297976b14ff54 100644 (file)
@@ -343,9 +343,10 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGSECSIZE" 1); do
            # FS LIMITATION: XFS label is at most 12 UTF-8 characters
                x"xfs"|x"xfs_crc")
                    FSLABEL="géт 😁к";;
-            # FS LIMITATION: FAT labels limited to 11 characters, no  international characters or lowercase
+            # FS LIMITATION: FAT labels limited to 11 characters, no international characters or lowercase
+           # and excluding the restricted characters in "*?.,;:/\|+=<>[]"
                x"vfat"* | xmsdos*)
-                   FSLABEL="GRUBTEST ;_";;
+                   FSLABEL="G~!@#\$%^&(_";;
            # FS LIMITATION: AFFS is latin1. At most 29 characters
                x"affs" | xaffs_intl)
                    FSLABEL="grub_tt? #*w;/e£@¡¤½¾{[]}<>.,";;