aarch64 only has 3 partitions

This commit is contained in:
Tobias Powalowski 2024-03-20 10:47:19 +01:00
parent efd959e414
commit b708e4515d

View file

@ -274,7 +274,9 @@ _unify_gpt_partitions() {
# --> 62: hide all partitions, Windows cannot access any files on this ISO
# Windows will now only error on 1 drive and not on all partitions
# --> 63: disable freedesktop/systemd automount by default on this ISO
for i in 1 2 3 4; do
echo "${_BASENAME}" | grep -qw aarch64 && _SEQ="1 2 3"
echo "${_BASENAME}" | grep -qw x86_64 && _SEQ="1 2 3 4"
for i in ${_SEQ}; do
sfdisk -q --part-attrs "${_IMAGENAME}.iso" "${i}" "RequiredPartition,60,62,63"
sfdisk -q --part-uuid "${_IMAGENAME}.iso" "${i}" "${i}0000000-0000-0000-0000-000000000000"
done