From 182fc623bab742657eb253ce75e633e257f20959 Mon Sep 17 00:00:00 2001 From: Fabian Wiesel Date: Tue, 1 Oct 2024 15:39:02 +0200 Subject: [PATCH] Relax constraints for partition label The UEFI standard allows all human readable characters, and systemd-sysupdate encodes there a version string. So relax the constraint to 'printing characters, excluding space', as a compromise. Fixes #98 --- builder/image.d/makepart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/image.d/makepart b/builder/image.d/makepart index 20bdd62..d95fab7 100755 --- a/builder/image.d/makepart +++ b/builder/image.d/makepart @@ -64,7 +64,7 @@ sed 's/#.*//;/^[[:space:]]*$/d' \ # check if fstab entry specifies source by UUID or LABEL uuid="$(grep -oP '(?<=^UUID=)[a-fA-F0-9\-]*$' <<< "$source" || true)" - label="$(grep -oP '(?<=^LABEL=)[a-zA-Z0-9\_\-]*$' <<< "$source" || true)" + label="$(grep -oP '(?<=^LABEL=)[[:graph:]]*$' <<< "$source" || true)" if [[ "$depth" = 0 ]]; then # we iterate depth sorted, so all other partitions should already have been processed and written to fstab