mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-08-15 02:34:08 +00:00
Compare commits
23 Commits
ubuntu/mas
...
24.04.74
Author | SHA1 | Date | |
---|---|---|---|
|
2215660a7d | ||
|
1da6867784 | ||
|
69b47ce2fe | ||
|
bb44f093c9 | ||
|
a0dea8f6e2 | ||
|
d9e444988d | ||
|
62a80ac00a | ||
|
05933ff83f | ||
|
10d4a04d14 | ||
|
d72ae0de70 | ||
|
bfb829c64d | ||
|
13ec478feb | ||
|
639f04b7b9 | ||
|
073d7e0404 | ||
|
1f40b60606 | ||
|
5507ca8d83 | ||
|
49a14274d1 | ||
|
5f59eec085 | ||
|
8cc079fe50 | ||
|
34edbb9a1c | ||
|
40c7eac14d | ||
|
b12e271417 | ||
|
fa351ac77b |
37
debian/changelog
vendored
37
debian/changelog
vendored
@ -1,9 +1,42 @@
|
|||||||
livecd-rootfs (24.04.70) UNRELEASED; urgency=medium
|
livecd-rootfs (24.04.74) noble; urgency=medium
|
||||||
|
|
||||||
|
* riscv64: preinstalled server image for Microchip PIC64GX Curiosity Kit
|
||||||
|
(LP: #2072956)
|
||||||
|
|
||||||
|
-- Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Mon, 08 Jul 2024 17:51:25 +0200
|
||||||
|
|
||||||
|
livecd-rootfs (24.04.73) noble; urgency=medium
|
||||||
|
|
||||||
|
* Build qcow2 images for ubuntu-core LXD support (LP: #2072759).
|
||||||
|
|
||||||
|
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Thu, 11 Jul 2024 13:15:43 +0200
|
||||||
|
|
||||||
|
livecd-rootfs (24.04.72) noble; urgency=medium
|
||||||
|
|
||||||
|
[ Heinrich Schuchardt ]
|
||||||
|
* riscv64: use earlycon=sbi on command line (LP: #2068739)
|
||||||
|
|
||||||
|
[ Philip Roche ]
|
||||||
|
* Revert removal of unminimize call in server builds (LP: #2069828)
|
||||||
|
|
||||||
|
-- Philip Roche <phil.roche@canonical.com> Mon, 24 Jun 2024 14:24:52 +0100
|
||||||
|
|
||||||
|
livecd-rootfs (24.04.71) noble; urgency=medium
|
||||||
|
|
||||||
|
* Re-enable ability to build HyperV desktop images (LP: #2064280)
|
||||||
|
|
||||||
|
-- Philip Roche <phil.roche@canonical.com> Mon, 27 May 2024 12:05:33 +0100
|
||||||
|
|
||||||
|
livecd-rootfs (24.04.70) noble; urgency=medium
|
||||||
|
|
||||||
|
[ Łukasz 'sil2100' Zemczak ]
|
||||||
* Add experimental support for building ubuntu-core-desktop installer images
|
* Add experimental support for building ubuntu-core-desktop installer images
|
||||||
(LP: #2063203)
|
(LP: #2063203)
|
||||||
|
|
||||||
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Wed, 24 Apr 2024 10:53:27 +0100
|
[ Philip Roche ]
|
||||||
|
* No longer install LXD snap in unminimize script (LP: #2066905)
|
||||||
|
|
||||||
|
-- Philip Roche <phil.roche@canonical.com> Fri, 24 May 2024 15:47:48 +0100
|
||||||
|
|
||||||
livecd-rootfs (24.04.69) noble; urgency=medium
|
livecd-rootfs (24.04.69) noble; urgency=medium
|
||||||
|
|
||||||
|
@ -37,6 +37,11 @@ if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ] \
|
|||||||
# we should be supporting more than one for models that
|
# we should be supporting more than one for models that
|
||||||
# define those.
|
# define those.
|
||||||
mv output/*.img "$PREFIX".img
|
mv output/*.img "$PREFIX".img
|
||||||
|
# For standard, non-platform-specific core images, prepare a
|
||||||
|
# qcow2 image as well for LXD consumption.
|
||||||
|
if [ -z "${SUBARCH:-}" ]; then
|
||||||
|
convert_to_qcow2 "$PREFIX".img "$PREFIX".qcow2
|
||||||
|
fi
|
||||||
xz -0 -T4 "$PREFIX".img
|
xz -0 -T4 "$PREFIX".img
|
||||||
mv output/seed.manifest "$PREFIX".manifest
|
mv output/seed.manifest "$PREFIX".manifest
|
||||||
|
|
||||||
@ -284,18 +289,6 @@ fi
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if [ "$PROJECT" = "ubuntu-cpc" ] || [ "$PROJECT" = "ubuntu-server" ]; then
|
|
||||||
cat >> chroot/usr/local/sbin/unminimize <<'EOF'
|
|
||||||
|
|
||||||
# installing LXD using the lxd-installer by simply invoking it
|
|
||||||
echo "Invoking LXD so that it can be installed by the lxd-installer's script.."
|
|
||||||
lxd --version
|
|
||||||
|
|
||||||
echo "Removing lxd installer package..."
|
|
||||||
apt-get purge -y lxd-installer
|
|
||||||
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
cat >> chroot/usr/local/sbin/unminimize <<'EOF'
|
cat >> chroot/usr/local/sbin/unminimize <<'EOF'
|
||||||
|
|
||||||
# unminimization succeeded, there is no need to mention it in motd
|
# unminimization succeeded, there is no need to mention it in motd
|
||||||
|
@ -9,8 +9,8 @@ case $ARCH:$SUBARCH in
|
|||||||
i386:|\
|
i386:|\
|
||||||
ppc64el:|\
|
ppc64el:|\
|
||||||
riscv64:|riscv64:generic|riscv64:icicle|riscv64:licheerv|\
|
riscv64:|riscv64:generic|riscv64:icicle|riscv64:licheerv|\
|
||||||
riscv64:milkvmars|riscv64:nezha|riscv64:unmatched|riscv64:visionfive|\
|
riscv64:milkvmars|riscv64:nezha|riscv64:pic64gx|riscv64:unmatched|\
|
||||||
riscv64:visionfive2|\
|
riscv64:visionfive|riscv64:visionfive2|\
|
||||||
s390x:|\
|
s390x:|\
|
||||||
*appliance*)
|
*appliance*)
|
||||||
;;
|
;;
|
||||||
@ -396,6 +396,7 @@ if [ "$IMAGEFORMAT" = "ext4" ] && [ "$PROJECT" = "ubuntu-cpc" ]; then
|
|||||||
riscv64:licheerv | \
|
riscv64:licheerv | \
|
||||||
riscv64:milkvmars | \
|
riscv64:milkvmars | \
|
||||||
riscv64:nezha | \
|
riscv64:nezha | \
|
||||||
|
riscv64:pic64gx | \
|
||||||
riscv64:unmatched | \
|
riscv64:unmatched | \
|
||||||
riscv64:visionfive | \
|
riscv64:visionfive | \
|
||||||
riscv64:visionfive2 | \
|
riscv64:visionfive2 | \
|
||||||
|
@ -9,21 +9,6 @@ case $ARCH in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case ${PROJECT:-}:${SUBPROJECT:-} in
|
|
||||||
ubuntu:)
|
|
||||||
echo "We don't create EFI images for Ubuntu Desktop."
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
ubuntu)
|
|
||||||
IMAGE_STR="# DESKTOP_IMG: This file was created/modified by the Desktop Image build process"
|
|
||||||
FS_LABEL="desktop-rootfs"
|
|
||||||
IMAGE_SIZE=12884901888 # 12G
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
|
||||||
FS_LABEL="cloudimg-rootfs"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ "$ARCH" = "amd64" ]; then
|
if [ "$ARCH" = "amd64" ]; then
|
||||||
IMAGE_SIZE=3758096384 # bump to 3.5G (3584*1024**2); Since Kinetic amd64 need more then the default 2.2G
|
IMAGE_SIZE=3758096384 # bump to 3.5G (3584*1024**2); Since Kinetic amd64 need more then the default 2.2G
|
||||||
@ -44,6 +29,22 @@ if [ "$ARCH" = "riscv64" ]; then
|
|||||||
IMAGE_SIZE=4831838208 # bump to 4.5G (4608*1024**2); initrd creation fails with "No space left" with 3.5G
|
IMAGE_SIZE=4831838208 # bump to 4.5G (4608*1024**2); initrd creation fails with "No space left" with 3.5G
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case ${PROJECT:-}:${SUBPROJECT:-} in
|
||||||
|
ubuntu:)
|
||||||
|
echo "We don't create EFI images for Ubuntu Desktop."
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
ubuntu:desktop-preinstalled)
|
||||||
|
IMAGE_STR="# DESKTOP_IMG: This file was created/modified by the Desktop Image build process"
|
||||||
|
FS_LABEL="desktop-rootfs"
|
||||||
|
IMAGE_SIZE=12884901888 # 12G
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
IMAGE_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||||
|
FS_LABEL="cloudimg-rootfs"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
. config/binary
|
. config/binary
|
||||||
|
|
||||||
. config/functions
|
. config/functions
|
||||||
@ -104,7 +105,7 @@ create_partitions() {
|
|||||||
--change-name=12:CIDATA \
|
--change-name=12:CIDATA \
|
||||||
--new=1:: \
|
--new=1:: \
|
||||||
--attributes=1:set:2
|
--attributes=1:set:2
|
||||||
elif [ "${SUBARCH:-}" = "icicle" ]; then
|
elif [ "${SUBARCH:-}" = "icicle" ] || [ "${SUBARCH:-}" = "pic64gx" ]; then
|
||||||
# Microchip Icicle Kit
|
# Microchip Icicle Kit
|
||||||
sgdisk "${disk_image}" \
|
sgdisk "${disk_image}" \
|
||||||
--set-alignment=2 \
|
--set-alignment=2 \
|
||||||
@ -327,6 +328,17 @@ install_grub() {
|
|||||||
loader1="${loop_device}p13"
|
loader1="${loop_device}p13"
|
||||||
dd if=mountpoint/usr/lib/u-boot/${SUBARCH}/u-boot-sunxi-with-spl.bin of=$loader1
|
dd if=mountpoint/usr/lib/u-boot/${SUBARCH}/u-boot-sunxi-with-spl.bin of=$loader1
|
||||||
;;
|
;;
|
||||||
|
"pic64gx")
|
||||||
|
cp ${my_d}/riscv64/grub/90_watchdog-thresh.cfg mountpoint/etc/default/grub.d/
|
||||||
|
# flash-kernel is needed to install the dtb for update-grub: it uses the
|
||||||
|
# /proc/device-tree/model value to pick the correct dtb and as we are in a chroot,
|
||||||
|
# the model value is wrong and we need to use /etc/flash-kernel/machine instead.
|
||||||
|
chroot mountpoint bash -c "echo 'Microchip PIC64GX Curiosity Kit' > /etc/flash-kernel/machine"
|
||||||
|
# u-boot-pic64gx contains the vendor U-Boot
|
||||||
|
chroot mountpoint apt-get install -qqy u-boot-pic64gx
|
||||||
|
loader="${loop_device}p13"
|
||||||
|
dd if=mountpoint/usr/lib/u-boot-pic64gx/u-boot.payload of=$loader
|
||||||
|
;;
|
||||||
"visionfive")
|
"visionfive")
|
||||||
# flash-kernel is needed to install the dtb for update-grub: it uses the
|
# flash-kernel is needed to install the dtb for update-grub: it uses the
|
||||||
# /proc/device-tree/model value to pick the correct dtb and as we are in a chroot,
|
# /proc/device-tree/model value to pick the correct dtb and as we are in a chroot,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Booting on many riscv64 systems is slow. Let the user view progress.
|
# Booting on many riscv64 systems is slow. Let the user view progress.
|
||||||
# For minimum output use
|
# For minimum output use
|
||||||
# GRUB_CMDLINE_LINUX_DEFAULT="quiet"
|
# GRUB_CMDLINE_LINUX_DEFAULT="quiet"
|
||||||
GRUB_CMDLINE_LINUX_DEFAULT="efi=debug earlycon"
|
GRUB_CMDLINE_LINUX_DEFAULT="efi=debug earlycon=sbi"
|
||||||
|
@ -1 +1 @@
|
|||||||
U_BOOT_PARAMETERS="ro efi=debug earlycon"
|
U_BOOT_PARAMETERS="ro efi=debug earlycon=sbi"
|
||||||
|
@ -10,30 +10,9 @@ case ${PASS} in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# The unminimize script will try to install the lxd snap using the shim script
|
# Run the unminimize script to re-install packages with all dpkg filters removed and install packages
|
||||||
# /usr/sbin/lxd from the lxd-installer package.
|
# removed as part of minimization
|
||||||
# We can't do that at this stage so just neuter the lxd command (the snap
|
yes | /usr/local/sbin/unminimize
|
||||||
# will get properly seeded by generic machinery).
|
|
||||||
if [ -f "/usr/sbin/lxd" ]; then
|
|
||||||
dpkg-divert --add --divert /usr/sbin/lxd.REAL --rename /usr/sbin/lxd
|
|
||||||
ln -s /bin/true /usr/sbin/lxd
|
|
||||||
yes | /usr/local/sbin/unminimize
|
|
||||||
# unminimize also uninstalls lxd-installer package
|
|
||||||
# and also removed `/usr/sbin/lxd` as a result, so we don't need to restore, but
|
|
||||||
# we do need to remove the mock we used as part of dpkg-divert
|
|
||||||
# first we need to remove the diversion
|
|
||||||
dpkg-divert --remove --no-rename /usr/sbin/lxd
|
|
||||||
# now remove the renamed file that we originally diverted to
|
|
||||||
rm -v /usr/sbin/lxd.REAL
|
|
||||||
else
|
|
||||||
# if /usr/sbin/lxd doesn't exist then lxd-installer package isn't installed.
|
|
||||||
# Instead, we can mock the command to avoid the unminimize script failing
|
|
||||||
ln -s /bin/true /usr/sbin/lxd
|
|
||||||
yes | /usr/local/sbin/unminimize
|
|
||||||
# as the lxd-installer package was not installed and thus not removed by `unminimize`
|
|
||||||
# the mock /usr/sbin/lxd will still be present, so we need to remove it
|
|
||||||
rm -v /usr/sbin/lxd
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Fix up missing recommends. Other non-layered flavors handle this in
|
# Fix up missing recommends. Other non-layered flavors handle this in
|
||||||
# live-build/auto/build, but we need to do it here. Also, there are
|
# live-build/auto/build, but we need to do it here. Also, there are
|
||||||
|
@ -39,8 +39,14 @@ trap cleanup_hyperv EXIT
|
|||||||
|
|
||||||
# Perform customisations
|
# Perform customisations
|
||||||
|
|
||||||
|
# For Ubuntu 24.04 and later cloud-init is included in desktop images. This is not applicable for Hyperv images so
|
||||||
|
# we can disable cloud-init. This leaves the cloud-init package installed but disabled so users can still
|
||||||
|
# use it if they want.
|
||||||
|
touch "${scratch_d}/etc/cloud/cloud-init.disabled"
|
||||||
|
|
||||||
|
|
||||||
chroot "${scratch_d}" apt-get update -y
|
chroot "${scratch_d}" apt-get update -y
|
||||||
chroot "${scratch_d}" apt-get -y install xrdp linux-azure linux-tools-azure linux-cloud-tools-azure
|
chroot "${scratch_d}" apt-get -y install xrdp linux-azure linux-tools-azure linux-cloud-tools-azure polkitd-pkla oem-config-gtk language-pack-en-base oem-config-slideshow-ubuntu
|
||||||
|
|
||||||
cat > ${scratch_d}/etc/modules-load.d/hyperv.conf << EOF
|
cat > ${scratch_d}/etc/modules-load.d/hyperv.conf << EOF
|
||||||
${IMAGE_STR}
|
${IMAGE_STR}
|
||||||
@ -124,20 +130,19 @@ touch "${scratch_d}/var/lib/oem-config/run"
|
|||||||
|
|
||||||
chroot "${scratch_d}" apt-get clean
|
chroot "${scratch_d}" apt-get clean
|
||||||
|
|
||||||
|
raw_img=binary/boot/disk-hyperv-uefi.ext4
|
||||||
|
vhd_img=livecd.ubuntu-desktop-hyperv.vhdx
|
||||||
|
|
||||||
|
create_manifest "${scratch_d}" "$vhd_img.zip.manifest"
|
||||||
# End customisations
|
# End customisations
|
||||||
|
|
||||||
cleanup_hyperv
|
cleanup_hyperv
|
||||||
trap - EXIT
|
trap - EXIT
|
||||||
|
|
||||||
raw_img=binary/boot/disk-hyperv-uefi.ext4
|
|
||||||
vhd_img=livecd.ubuntu-desktop-hyperv.vhdx
|
|
||||||
|
|
||||||
qemu-img convert -O vhdx "$raw_img" "$vhd_img"
|
qemu-img convert -O vhdx "$raw_img" "$vhd_img"
|
||||||
rm "$raw_img"
|
rm "$raw_img"
|
||||||
|
|
||||||
apt-get install -y zip
|
apt-get install -y zip
|
||||||
|
|
||||||
create_manifest chroot "$vhd_img.zip.manifest"
|
|
||||||
|
|
||||||
zip "$vhd_img.zip" "$vhd_img"
|
zip "$vhd_img.zip" "$vhd_img"
|
||||||
rm "$vhd_img"
|
rm "$vhd_img"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user