From 181ec9a3760e8baa4577a91938f469e1f6f64587 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 15 Apr 2021 18:13:40 +0200 Subject: [PATCH] Use shorter fs label for EFI partition to not break with recent dosfstools This used to work fine until dosfstools 4.1: | root@grml ~ # mkfs.fat -F32 -n "EFI System Partition" /dev/loop1 | mkfs.fat 4.1 (2017-01-24) | mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows Now with dosfstools >=4.2 it's failing though: | root@grml ~ # mkfs.fat -F32 -n "EFI System Partition" /dev/loop1 | mkfs.fat 4.2 (2021-01-31) | mkfs.fat: Label can be no longer than 11 characters So instead use "EFI" as filesystem label, to not fail with newer dosfstools. Closes: #987014 Closes: grml/grml-debootstrap#168 --- grml-debootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grml-debootstrap b/grml-debootstrap index 586edd8..d62cd2c 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -980,7 +980,7 @@ format_efi_partition() { einfo "EFI partition $EFI seems to have a FAT filesystem, not modifying." ; eend 0 else einfo "EFI partition $EFI doesn't seem to be formatted, creating filesystem." - mkfs.fat -F32 -n "EFI System Partition" "$EFI" + mkfs.fat -F32 -n "EFI" "$EFI" RC=$? if [ $RC -eq 0 ] ; then eend 0 -- 2.1.4