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

Dan Bungert mp+436420 at code.launchpad.net
Thu Feb 2 18:30:11 UTC 2023


> Maybe it could help me if you could provide the bootleg image creation script somewhere so we can think at how to nicely bake it into the horrible livecd-rootfs

https://gist.github.com/dbungert/2ec7caf913f4efa5925acef8c10b93d6

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)

Nothing was tested on other arches, and I don't know what is needed to have them work.  Do all combos of PROJECT-ARCH need to work in order for PROJECT-amd64 to be published?

> +        ;;
> +    *)
> +        exit 0
> +        ;;
> +esac
> +
> +set -eux
> +
> +KERNEL=chroot/boot/vmlinuz
> +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