mirror of
https://github.com/KDE/kde-linux.git
synced 2026-05-18 21:36:22 -04:00
Hybrid ISO with correct part
Signed-off-by: Hadi Chokr <hadichokr@icloud.com>
This commit is contained in:
16
build.sh
16
build.sh
@@ -181,18 +181,6 @@ systemd-repart --no-pager --empty=allow --size=auto --dry-run=no --root=kde-linu
|
||||
# ISO creation using xorriso
|
||||
echo "Building ISO image from $IMG ..."
|
||||
|
||||
# Extract partition GUIDs using sfdisk
|
||||
ESP_GUID=$(sfdisk --part-uuid "$IMG" 1)
|
||||
ROOT_GUID=$(sfdisk --part-uuid "$IMG" 2)
|
||||
|
||||
if [ -z "$ESP_GUID" ] || [ -z "$ROOT_GUID" ]; then
|
||||
echo "ERROR: Could not extract partition GUIDs from $IMG" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Using ESP GUID: $ESP_GUID"
|
||||
echo "Using Root GUID: $ROOT_GUID"
|
||||
|
||||
ISO="${OUTPUT}.iso"
|
||||
|
||||
xorriso -as mkisofs \
|
||||
@@ -208,10 +196,8 @@ xorriso -as mkisofs \
|
||||
-partition_offset 16 \
|
||||
-append_partition 1 C12A7328-F81F-11D2-BA4B-00A0C93EC93B kde-linux.cache/esp.raw \
|
||||
-append_partition 2 4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709 kde-linux.cache/root.raw \
|
||||
-partition_sec_hd 64 \
|
||||
-partition_sec_hd 63 \
|
||||
-partition_cyl_align all \
|
||||
-gpt_partition_guid 1 "$ESP_GUID" \
|
||||
-gpt_partition_guid 2 "$ROOT_GUID" \
|
||||
/dev/null
|
||||
|
||||
echo "ISO created: $ISO"
|
||||
|
||||
Reference in New Issue
Block a user