[Merge] ~edubuntu-dev/ubuntu-images:noble into ubuntu-images:noble

Erich Eickmeyer mp+456547 at code.launchpad.net
Sun Dec 3 18:16:25 UTC 2023


Comments inline. This was tested successfully and admittedly still has some bugs to iron out prior to starting image builds. The testing environment was on a Rapberry Pi with a clean install of Ubuntu Server 23.10. This was done according to instructions used per Lukasz.

Diff comments:

> diff --git a/edubuntu-pi-arm64.yaml b/edubuntu-pi-arm64.yaml
> new file mode 100644
> index 0000000..5aa722c
> --- /dev/null
> +++ b/edubuntu-pi-arm64.yaml
> @@ -0,0 +1,85 @@
> +name: edubuntu-desktop-raspi-arm64
> +display-name: Edubuntu Preinstalled Desktop Raspberry Pi arm64
> +revision: 3
> +architecture: arm64
> +series: noble
> +class: preinstalled
> +kernel: linux-image-raspi
> +gadget:
> +  url: "https://git.launchpad.net/snap-pi"
> +  branch: "classic"
> +  type: "git"
> +  target: "desktop"
> +rootfs:
> +  archive: ubuntu
> +  flavor: edubuntu
> +  components:
> +    - main
> +    - restricted
> +    - universe
> +    - multiverse
> +  mirror: "http://ports.ubuntu.com/ubuntu-ports/"
> +  pocket: updates
> +  seed:
> +    urls:
> +      - "git://git.launchpad.net/~edubuntu-dev/ubuntu-seeds/+git/"
> +      - "git://git.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/+git/"
> +    branch: noble
> +    names:
> +      - desktop-gnome-raspi
> +      - raspi-common
> +      - fonts
> +      - ubuntu-edu-preschool
> +      - ubuntu-edu-primary
> +      - ubuntu-edu-secondary
> +      - ubuntu-edu-tertiary

Agreed, that can be fixed.

> +customization:
> +  extra-snaps:
> +    - name: snapd
> +    - name: bare
> +    - name: core22

Please understand that this wasn't just "thrown together" but tested on an actual Raspberry Pi running a clean install of Ubuntu Server 23.10, just so you understand the environment.

If core22 in particular isn't explicitly stated, the build will fail and did if it was not explicitly stated. This is why it is explicitly stated here. I don't know why the Ubuntu image doesn't have it, but in my testing it failed without this.

> +    - name: gnome-42-2204
> +      channel: stable/ubuntu-24.04
> +    - name: gtk-common-themes
> +      channel: stable/ubuntu-24.04
> +    - name: firefox
> +      channel: stable/ubuntu-24.04
> +    - name: snap-store
> +      channel: stable/ubuntu-24.04
> +    - name: snapd-desktop-integration
> +      channel: stable/ubuntu-24.04
> +  extra-packages:
> +    - name: snapd

Sadly, it was necessary for some reason. Additionally, without this package explicitly stated, it would fail as a dependency of the build being necessary to exist in the chroot environment. Might be a bug with ubuntu-image but I'm not 100% certain.

> +    - name: oem-config-gtk
> +    - name: oem-config
> +    - name: ubiquity-frontend-gtk
> +    - name: language-pack-en-base
> +    - name: edubuntu-live-settings
> +    - name: ubiquity-slideshow-edubuntu
> +    - name: squashfs-tools
> +  fstab:
> +    - label: "writable"
> +      mountpoint: "/"
> +      filesystem-type: "ext4"
> +      mount-options: "discard"
> +      dump: false
> +      fsck-order: 1
> +    - label: "system-boot"
> +      mountpoint: "/boot/firmware"
> +      filesystem-type: "vfat"
> +      mount-options: "defaults"
> +      dump: false
> +      fsck-order: 1
> +# FIXME: Temporarily, we also need to make sure that for desktop pi images
> +#  we actually run oem-config-prepare before first boot. Otherwise we won't
> +#  be able to boot into oem-config properly.
> +#  This should be done via a package postinst ideally, so this manual
> +#  customization should be only temporary.
> +  manual:
> +    execute:
> +      - path: "/usr/sbin/oem-config-prepare"
> +artifacts:
> +  img:
> +    - name: edubuntu-24.04-preinstalled-desktop-arm64+raspi.img
> +  manifest:
> +    name: edubuntu-24.04-preinstalled-desktop-arm64+raspi.manifest


-- 
https://code.launchpad.net/~edubuntu-dev/ubuntu-images/+git/ubuntu-images/+merge/456547
Your team Edubuntu Developers is subscribed to branch ~edubuntu-dev/ubuntu-images:noble.




More information about the Ubuntu-reviews mailing list