diff --git a/usr/lib/archboot/iso.sh b/usr/lib/archboot/iso.sh index 4cbe40233..ab47e7164 100644 --- a/usr/lib/archboot/iso.sh +++ b/usr/lib/archboot/iso.sh @@ -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