systemd-sysupdate encodes in the partition name the version of the OS.
The UEFI standard specifies the PartitionName as a null-terminated human readable string of up to 72 characters.
GardenLinux versioning is <MAJOR>.<MINOR>
So, a sensible partition name could be garden_<MAJOR>.<MINOR>, but if I modify the label from ROOT to that, I end up with no partition label.
How to reproduce it (as minimally and precisely as possible):
Use the following fstab.mod:
# fstab.mod
set -Eeuo pipefail
currentfstab="$(cat)"
if [ -n "$currentfstab" ]; then
# Expand the UEFI partition and do not create a /usr partition (for now)
sed \
-e'/type=uefi/ s/$/,size=511M/' \
-e 's/LABEL=ROOT/LABEL=garden_'$BUILDER_VERSION'/' \
<<< "$currentfstab"
fi
What happened:
systemd-sysupdate encodes in the partition name the version of the OS. The UEFI standard specifies the PartitionName as a null-terminated human readable string of up to 72 characters.
GardenLinux versioning is
<MAJOR>.<MINOR>
So, a sensible partition name could begarden_<MAJOR>.<MINOR>
, but if I modify the label fromROOT
to that, I end up with no partition label.What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Use the following
fstab.mod
:Anything else we need to know:
Environment: