[Merge] ~dbungert/livecd-rootfs:ubuntu-mini-iso into livecd-rootfs:ubuntu/master

Michael Hudson-Doyle mp+436420 at code.launchpad.net
Wed Feb 1 02:51:28 UTC 2023



Diff comments:

> diff --git a/live-build/ubuntu-mini-iso/hooks/01-mini-iso.binary b/live-build/ubuntu-mini-iso/hooks/01-mini-iso.binary
> new file mode 100755
> index 0000000..88de5e1
> --- /dev/null
> +++ b/live-build/ubuntu-mini-iso/hooks/01-mini-iso.binary
> @@ -0,0 +1,48 @@
> +#!/bin/sh
> +
> +case $PASS in
> +    ubuntu-mini-iso)
> +        ;;
> +    *)
> +        exit 0
> +        ;;
> +esac
> +
> +case $ARCH in
> +    amd64)

Is there a reason to only build this on amd64?

> +        ;;
> +    *)
> +        exit 0
> +        ;;
> +esac
> +
> +set -eux
> +
> +KERNEL=chroot/boot/vmlinuz

IIRC it's going to be called vmlinux on ppc64el.

> +INITRD=chroot/boot/initrd.img
> +
> +mkdir -p "ubuntu-mini-iso/$ARCH"
> +
> +case $ARCH in
> +    amd64)
> +        cp -a chroot/usr/share/cd-boot-images-amd64/tree ubuntu-mini-iso/amd64/tree
> +        cp -a chroot/usr/share/cd-boot-images-amd64/images ubuntu-mini-iso/amd64/images
> +        cp "$KERNEL" ubuntu-mini-iso/amd64/linux
> +        cp "$INITRD" ubuntu-mini-iso/amd64/initrd
> +        cat > ubuntu-mini-iso/amd64/grub/grub.cfg <<EOF
> +menuentry "Choose an Ubuntu version to install" {
> +        set gfxpayload=keep
> +        linux /casper/vmlinuz iso-chooser-menu ip=dhcp ---
> +        initrd /casper/initrd
> +}
> +EOF
> +        ;;
> +esac
> +
> +dest="${PWD}/livecd.${PROJECT}.ubuntu-mini.iso"
> +xorriso="$(cat chroot/usr/share/cd-boot-images-amd64/xorriso-cmd.txt)"
> +
> +cd ubuntu-mini-iso
> +bash -c "$xorriso -o $dest"
> +cd ..
> +rm -rf ubuntu-mini-iso


-- 
https://code.launchpad.net/~dbungert/livecd-rootfs/+git/livecd-rootfs/+merge/436420
Your team Ubuntu Core Development Team is subscribed to branch livecd-rootfs:ubuntu/master.




More information about the Ubuntu-reviews mailing list