[Merge] ~xnox/livecd-rootfs:preinstalled into livecd-rootfs:ubuntu/master
Ćukasz Zemczak
lukasz.zemczak at canonical.com
Fri Apr 16 11:33:20 UTC 2021
Review: Approve
Ok, generally +1. There's one inline small thing that might need cleanup. But other than that, please proceed.
Diff comments:
> diff --git a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
> index a619299..7ef1326 100755
> --- a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
> +++ b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
> @@ -119,14 +144,39 @@ install_grub() {
> arm64)
> chroot mountpoint apt-get -qqy install --no-install-recommends shim-signed grub-efi-arm64-signed
> efi_target=arm64-efi
> + if [ "${SUBARCH:-}" = "generic" ]; then
> + # Server preinstalled image
> + # Setup cidata sample data & nocloud fallback
> + # Allows login on first boot with or without metadata
> + cidata_dev="/dev/mapper${loop_device///dev/}p14"
> + setup_cidata "${cidata_dev}"
> + setup_cinocloud mountpoint
> + fi
> ;;
> armhf)
> chroot mountpoint apt-get -qqy install --no-install-recommends grub-efi-arm grub-efi-arm-bin
> efi_target=arm-efi
> + cidata_dev="/dev/mapper${loop_device///dev/}p14"
Is this line been added here by mistake? I don't think we need to define cidata_dev outside the subarch conditional (since it's already defined there).
> + if [ "${SUBARCH:-}" = "generic" ]; then
> + # Server preinstalled image
> + # Setup cidata sample data & nocloud fallback
> + # Allows login on first boot with or without metadata
> + cidata_dev="/dev/mapper${loop_device///dev/}p14"
> + setup_cidata "${cidata_dev}"
> + setup_cinocloud mountpoint
> + fi
> ;;
> amd64)
> chroot mountpoint apt-get install -qqy grub-pc shim-signed
> efi_target=x86_64-efi
> + if [ "${SUBARCH:-}" = "generic" ]; then
> + # Server preinstalled image
> + # Setup cidata sample data & nocloud fallback
> + # Allows login on first boot with or without metadata
> + cidata_dev="/dev/mapper${loop_device///dev/}p13"
> + setup_cidata "${cidata_dev}"
> + setup_cinocloud mountpoint
> + fi
> ;;
> riscv64)
> # TODO grub-efi-riscv64 does not exist yet on riscv64
--
https://code.launchpad.net/~xnox/livecd-rootfs/+git/livecd-rootfs/+merge/401222
Your team Ubuntu Core Development Team is requested to review the proposed merge of ~xnox/livecd-rootfs:preinstalled into livecd-rootfs:ubuntu/master.
More information about the Ubuntu-reviews
mailing list