mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-22 19:01:30 +00:00
Move configuration of casper in ubuntu-serve:live builds to a "chroot early" hook for the installer layer and remove the now unnecessary update-initramfs from the binary hook that breaks because mkinitramfs now requires that /sys is mounted. (LP: #2097280)
This commit is contained in:
parent
bdd7d035e2
commit
8d7efb4d15
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -1,6 +1,10 @@
|
||||
livecd-rootfs (25.04.12) UNRELEASED; urgency=medium
|
||||
|
||||
* Stop producing a rootfs tarball for the ubuntu-mini-iso builds.
|
||||
* Move configuration of casper in ubuntu-serve:live builds to a "chroot
|
||||
early" hook for the installer layer and remove the now unnecessary
|
||||
update-initramfs from the binary hook that breaks because mkinitramfs
|
||||
now requires that /sys is mounted. (LP: #2097280)
|
||||
|
||||
-- Michael Hudson-Doyle <michael.hudson@ubuntu.com> Wed, 05 Feb 2025 11:20:05 +1300
|
||||
|
||||
|
17
live-build/ubuntu-server/hooks/02-installer-bits.chroot_early
Executable file
17
live-build/ubuntu-server/hooks/02-installer-bits.chroot_early
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash -ex
|
||||
# vi: ts=4 noexpandtab
|
||||
|
||||
case $PASS in
|
||||
ubuntu-server-minimal.ubuntu-server.installer.*)
|
||||
exit 0
|
||||
;;
|
||||
ubuntu-server-minimal.ubuntu-server.installer)
|
||||
;;
|
||||
*)
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
cat <<EOF > /etc/initramfs-tools/conf.d/casperize.conf
|
||||
export CASPER_GENERATE_UUID=1
|
||||
EOF
|
@ -12,10 +12,6 @@ case $PASS in
|
||||
;;
|
||||
esac
|
||||
|
||||
cat <<EOF > /etc/initramfs-tools/conf.d/casperize.conf
|
||||
export CASPER_GENERATE_UUID=1
|
||||
EOF
|
||||
|
||||
cat <<EOF > /etc/initramfs-tools/conf.d/default-layer.conf
|
||||
LAYERFS_PATH=${PASS}.squashfs
|
||||
EOF
|
||||
|
@ -15,9 +15,6 @@ esac
|
||||
|
||||
PROJECT=$PROJECT${SUBARCH:+-$SUBARCH}
|
||||
|
||||
# ensure this initrd is casperized
|
||||
chroot chroot update-initramfs -u
|
||||
|
||||
# Fish out generated kernel image and initrd
|
||||
mv chroot/boot/initrd.img-* ${PWD}/livecd.${PROJECT}.initrd-$flavor
|
||||
mv chroot/boot/vmlinu?-* ${PWD}/livecd.${PROJECT}.kernel-$flavor
|
||||
|
Loading…
x
Reference in New Issue
Block a user