From 2d75149348af83c210d226c974a12db6147011f4 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Fri, 3 Apr 2026 10:09:30 +0000 Subject: [PATCH] test: Add El Torito boot catalog dissection test Verify that GPT images with an ISO9660 El Torito boot catalog are dissected via the GPT partition table rather than being treated as a single iso9660 filesystem. Follow-up for e33eb053fb ("dissect-image: Drop blkid_probe_filter_superblocks_usage() call from probe_blkid_filter()") --- test/units/TEST-50-DISSECT.dissect.sh | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/test/units/TEST-50-DISSECT.dissect.sh b/test/units/TEST-50-DISSECT.dissect.sh index 8cc07df3b9..65e684fa07 100755 --- a/test/units/TEST-50-DISSECT.dissect.sh +++ b/test/units/TEST-50-DISSECT.dissect.sh @@ -1203,6 +1203,47 @@ systemd-sysext unmerge systemctl status foo.service 2>&1 | grep -v -F "Warning" >/dev/null rm /var/lib/extensions/app-reload.raw +# Test that GPT images with an ISO9660 El Torito boot catalog are dissected correctly. The blkid +# superblock filter must prevent the iso9660 superblock from being detected, so dissection proceeds via +# the GPT partition table rather than treating the whole image as a single iso9660 filesystem. +defs="$(mktemp --directory "$IMAGE_DIR/test-50-dissect-eltorito.defs.XXXXXXXXXX")" +imgs="$(mktemp --directory "$IMAGE_DIR/test-50-dissect-eltorito.imgs.XXXXXXXXXX")" + +tee "$defs/00-esp.conf" <