Skip to content

Commit

Permalink
Relax constraints for partition label
Browse files Browse the repository at this point in the history
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
  • Loading branch information
fwiesel committed Oct 1, 2024
1 parent 357fbe0 commit 182fc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/image.d/makepart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 182fc62

Please sign in to comment.