mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-12-29 06:53:37 +00:00
Merge ~gjolly/livecd-rootfs/+git/livecd-rootfs/+merge/493969 into ubuntu/master
This commit is contained in:
commit
a53da7e27b
9
debian/changelog
vendored
9
debian/changelog
vendored
@ -1,3 +1,12 @@
|
|||||||
|
livecd-rootfs (26.04.2) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
[ Gauthier Jolly ]
|
||||||
|
* ubuntu-cpc:
|
||||||
|
- Use the right specific UUID type for the root filesystem partition.
|
||||||
|
- Set a PARTLABEL (cloudimg-rootfs) on the root filesystem partition.
|
||||||
|
|
||||||
|
-- Gauthier Jolly <gauthier.jolly@canonical.com> Mon, 20 Oct 2025 08:55:25 +0200
|
||||||
|
|
||||||
livecd-rootfs (26.04.1) resolute; urgency=medium
|
livecd-rootfs (26.04.1) resolute; urgency=medium
|
||||||
|
|
||||||
[ Heinrich Schuchardt ]
|
[ Heinrich Schuchardt ]
|
||||||
|
|||||||
@ -1404,3 +1404,43 @@ EOF
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Determine the appropriate partition type UUID for the root filesystem
|
||||||
|
# based on the architecture.
|
||||||
|
# Please see https://uapi-group.org/specifications/specs/discoverable_partitions_specification/
|
||||||
|
# for where the GUIDs come from.
|
||||||
|
gpt_root_partition_uuid() {
|
||||||
|
local ARCH="$1"
|
||||||
|
|
||||||
|
if [ -z "${ARCH:-}" ]; then
|
||||||
|
echo "usage: gpt_root_partition_uuid <arch>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "${ARCH}" in
|
||||||
|
"amd64")
|
||||||
|
ROOTFS_PARTITION_TYPE="4f68bce3-e8cd-4db1-96e7-fbcaf984b709"
|
||||||
|
;;
|
||||||
|
"arm64")
|
||||||
|
ROOTFS_PARTITION_TYPE="b921b045-1df0-41c3-af44-4c6f280d3fae"
|
||||||
|
;;
|
||||||
|
"armhf")
|
||||||
|
ROOTFS_PARTITION_TYPE="69dad710-2ce4-4e3c-b16c-21a1d49abed3"
|
||||||
|
;;
|
||||||
|
"riscv64")
|
||||||
|
ROOTFS_PARTITION_TYPE="72ec70a6-cf74-40e6-bd49-4bda08e8f224"
|
||||||
|
;;
|
||||||
|
"ppc64el")
|
||||||
|
ROOTFS_PARTITION_TYPE="c31c45e6-3f39-412e-80fb-4809c4980599"
|
||||||
|
;;
|
||||||
|
"s390x")
|
||||||
|
ROOTFS_PARTITION_TYPE="5eead9a9-fe09-4a1e-a1d7-520d00531306"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unsupported architecture: ${ARCH}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
echo "${ROOTFS_PARTITION_TYPE}"
|
||||||
|
}
|
||||||
@ -24,7 +24,10 @@ create_partitions() {
|
|||||||
sgdisk "${disk_image}" \
|
sgdisk "${disk_image}" \
|
||||||
--new=2::+8M \
|
--new=2::+8M \
|
||||||
--new=1:
|
--new=1:
|
||||||
sgdisk "${disk_image}" -t 2:4100
|
sgdisk "${disk_image}" \
|
||||||
|
--change-name=1:"$FS_LABEL" \
|
||||||
|
-t 2:4100 \
|
||||||
|
-t 1:"$(gpt_root_partition_uuid $ARCH)"
|
||||||
sgdisk "${disk_image}" \
|
sgdisk "${disk_image}" \
|
||||||
--print
|
--print
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,7 +41,9 @@ create_partitions() {
|
|||||||
--typecode=15:ef00 \
|
--typecode=15:ef00 \
|
||||||
--new=13::1G \
|
--new=13::1G \
|
||||||
--typecode=13:ea00 \
|
--typecode=13:ea00 \
|
||||||
--new=1:
|
--new=1: \
|
||||||
|
--change-name=1:"$FS_LABEL" \
|
||||||
|
--typecode=1:"$(gpt_root_partition_uuid $ARCH)"
|
||||||
;;
|
;;
|
||||||
riscv64)
|
riscv64)
|
||||||
sgdisk "${disk_image}" \
|
sgdisk "${disk_image}" \
|
||||||
@ -51,6 +53,8 @@ create_partitions() {
|
|||||||
--new=15::+106M \
|
--new=15::+106M \
|
||||||
--typecode=15:ef00 \
|
--typecode=15:ef00 \
|
||||||
--new=1:: \
|
--new=1:: \
|
||||||
|
--change-name=1:"$FS_LABEL" \
|
||||||
|
--typecode=1:"$(gpt_root_partition_uuid $ARCH)" \
|
||||||
--attributes=1:set:2
|
--attributes=1:set:2
|
||||||
;;
|
;;
|
||||||
amd64)
|
amd64)
|
||||||
@ -61,8 +65,10 @@ create_partitions() {
|
|||||||
--new=15::+106M \
|
--new=15::+106M \
|
||||||
--new=1::
|
--new=1::
|
||||||
sgdisk "${disk_image}" \
|
sgdisk "${disk_image}" \
|
||||||
|
--change-name=1:"$FS_LABEL" \
|
||||||
-t 14:ef02 \
|
-t 14:ef02 \
|
||||||
-t 15:ef00
|
-t 15:ef00 \
|
||||||
|
-t 1:"$(gpt_root_partition_uuid $ARCH)"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
sgdisk "${disk_image}" \
|
sgdisk "${disk_image}" \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user