Commit ce2a6d5f authored by intrigeri's avatar intrigeri
Browse files

Merge remote-tracking branch 'origin/bugfix/16389-recompute-chs' into stable

Fix-committed: #16389
parents 56c69ed0 7e544525
......@@ -123,8 +123,9 @@ dd if=/tmp/vbr of="${SYSTEM_PARTITION}" bs=3 count=1
# Set a random filesystem UUID (aka. FAT "Volume ID" / "serial number")
MTOOLS_SKIP_CHECK=1 mlabel -i "${SYSTEM_PARTITION}" -n ::Tails
# Set the following attributes on the system partition (we have to
# set them after running fatresize, because fatresize resets them):
# Recompute CHS values for the hybrid MBR (see #16389) and set the
# following attributes on the system partition (we have to set them
# after running fatresize, because fatresize resets them):
# 0: system partition
# 2: legacy BIOS bootable
# 60: read-only
......@@ -136,6 +137,7 @@ sgdisk \
--attributes=1:set:60 \
--attributes=1:set:62 \
--attributes=1:set:63 \
--recompute-chs \
"${PARENT_DEVICE}"
# Tell the kernel to reload the partition table
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment