2072 Commits

Author SHA1 Message Date
Julian Andres Klode
04d1f1af25 Setup preinstalled pool in preinstalled-pool.sources
Also Use Signed-By: /etc/apt/keyrings/preinstalled-pool.gpg and
make sure we only update from that .sources file as we did before.

This code may all be dead, who can say.

FIXME: We should figure out how to do an armored export of that key
and then embed it in the signed-by field instead of using a keyring
file.
2024-02-12 21:54:53 +01:00
Julian Andres Klode
8a0a5a7e4a Switch from sources.list to ubuntu.sources
Template is based on the specification with some rewording for
Ubuntu Pro as agreed.

v2:
- Enabled backports by default (I did not see that!)
- Enabled restricted, multiverse security updates
- Replaced tweaked with adjusted

v3:
- Insert an explanatory sources.list

LP: #2048129
2024-02-12 21:54:53 +01:00
Sebastien Bacher
fdf1a22b92 Use the ubuntu-desktop-bootstrap snap as the Ubuntu Desktop installer 2024-02-12 21:31:58 +01:00
Łukasz 'sil2100' Zemczak
fd3864acfe Merge branch 'u-boot-starfive' of git+ssh://git.launchpad.net/~xypron/livecd-rootfs into ubuntu/master 2024-02-12 17:02:42 +01:00
Didier Roche
f49ce9e3d8
Ensure ubuntu-wsl image can be published in cloud-images.
The publisher for cloud-images.ubuntu.com expects that artefacts
finishes with: file_url.endswith(project_prefix + suffix).
Now that we integrate app_id to the image name, we need thus to put it
before project_prefix and not between project_prefix and suffix.
2024-02-12 10:59:27 +01:00
Simon Quigley
c6a66eaa8d Add missing mkdir invocation from 24.04.26 (LP: #2052617). 2024-02-09 13:32:33 -06:00
Heinrich Schuchardt
c34e3dccd7 riscv: install u-boot-starfive on VisionFive 2 preinstalled image
The StarFive VisionFive 2 board can boot from SPI flash or SD-card.
Install U-Boot to the SD card.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2024-02-08 11:24:51 +01:00
Didier Roche
e5d6d07bad
Enable systemd as part of image creation
Microsoft offically support systemd now and our Pro service relies on
it. This option is enabled by default via our launcher (Windows-side) on
first run for quite a while.
Remve this file creation from it, don’t ship it in a package as the
file may be altered by the user to add additional options and ship it as
part of the rootfs.

Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
2024-02-07 16:58:45 +01:00
Didier Roche
602463592a
Create different WSL tarball depending on upgrade policy
On WSL, we have multiple applications with the same rootfs, but
different upgrade policy:
Ubuntu: should always track latest LTS and offer upgrade.
Ubuntu-<Version>: should never offer upgrade and will stick to Version
Ubuntu-Preview: current in development version.

Co-authored-by: Jean-Baptiste Lallement <jean-baptiste@ubuntu.com>
2024-02-07 16:58:44 +01:00
dann frazier
3a00ad5263 Use flock to avoid races with systemd-udevd
The race causes loop device partitions to briefly disappear. LP: #2045586.
2024-01-31 15:12:42 -07:00
Steve Langasek
20a43b540d Merge remote-tracking branch 'vorlon/common-hooks-for-layered-images' into ubuntu/master 2024-01-30 23:16:33 -08:00
Łukasz 'sil2100' Zemczak
3a99b297d4 For ubuntu-server, consider the actual kernel flavor when dealing with netboot layers - even if we don't really care in the end. 2024-01-30 11:29:50 +01:00
Utkarsh Gupta
d58a31e130 Merge remote-tracking branch 'utkarsh/drop-python3-systemd' into ubuntu/master
* utkarsh/drop-python3-systemd:
  Update d/ch for 24.04.20 release
  Drop python3-systemd from our minimized builds
2024-01-29 22:21:14 +05:30
Utkarsh Gupta
e37253418b Merge remote-tracking branch 'virtustom/mount-partnum-param' into ubuntu/master
* virtustom/mount-partnum-param:
  feat: mount_disk_image: Add rootpart parameter
2024-01-29 22:19:20 +05:30
Michael Hudson-Doyle
ffe99d4008 Remove magic-proxy and all references to it as it is not used by any builds of any release newer than 18.04. 2024-01-29 14:51:54 +13:00
Łukasz 'sil2100' Zemczak
54100874a4 Merge branch 'noble-64k' of git+ssh://git.launchpad.net/livecd-rootfs into ubuntu/master 2024-01-25 11:59:25 +01:00
Michael Hudson-Doyle
57592e6dc1 live-build/functions: avoid losetup -P as it appears to race with udev and do it a bit more by-hand instead. (LP: #2045586) 2024-01-25 10:26:19 +13:00
Philip Roche
200bde50cc fix: return 0 instead of return if the intent is not to exit build
If the previous if statement checking if PASSES_TO_LAYERS is true,
then the last return code be non-zero and a return statement with no
argument will return the error code of the if statement thus exiting
the script. This is  not our intent. So we need to return 0 here when
layer name as already been registered
2024-01-24 18:08:42 +00:00
Philip Roche
e1ab57301f fix: Fix calls to unminimize if lxd-installer package not present (LP: #2049723)
The unminimize script will try to install the lxd snap using the shim script
`/usr/sbin/lxd` from the lxd-installer package.

Previously `unminimize` was using `snap`
to install `lxd` directly which was being diverted by diverting the `snap` command.

This is no longer the case so we can remove `/usr/sbin/lxd` from the lxd-installer package
if it exists and then redirect any calls to `/usr/sbin/lxd` to `/bin/true`

This is a cherry pick forward port from Jammy livecd-rootfs version 2.765.37.

(cherry picked from commit 8b83212372e0c1adb1dbdf7ead234f93c52a189e)
2024-01-24 18:04:35 +00:00
Tomáš Virtus
dab1f8c765
feat: mount_disk_image: Add rootpart parameter
mount_disk_image function expects root partition to be at number 1. But
some images require the root partition to be at other some other number.
For example, EKS Anywhere images for bare metal are used with Tinkerbell
deployment with a default configuration that expects the root device to
be found at /dev/sda2. The knowledge of the root device path is needed
to modify certain files in the root filesystem (e.g. cloud-init configs)
for the machine to join Kubernetes cluster control plane.

The partition number can be changed in the hook by "sgidsk --transpose".
Allow the hook to use mount_disk_image with custom root partition number
by making it an optional third parameter that defaults to 1.
2024-01-24 13:53:24 +01:00
Łukasz 'sil2100' Zemczak
8c4ebae358 Add a largemem subarch that ships a 64k kernel variant by default. 2024-01-22 15:00:58 +01:00
Utkarsh Gupta
a0ebea19a8 Drop python3-systemd from our minimized builds
This package was once needed by ubuntu-advantage-tools for cloud images.
However, u-a-t have finally dropped this entirely in their v30 release.
cf: https://github.com/canonical/ubuntu-pro-client/issues/2692
cf: https://github.com/canonical/ubuntu-pro-client/pull/2717
cf: https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2038417
2024-01-22 18:01:45 +05:30
Steve Langasek
7de5d67bf7 live-build/auto/config: don't repeatedly add the same pass name to the list of layers. 2024-01-18 11:03:53 -08:00
Steve Langasek
240affbaca Share live-build/ubuntu/hooks/020-ubuntu-live.chroot_early across all flavors using new-style layered squashfs, removing need for kernel commandline options in debian-cd. 2024-01-17 16:20:54 -08:00
Thomas Bechtold
f82fb62222 fix: add kernel 6.6 apparmor features tree
Noble moved to the 6.6 kernel now and the preseeding optimization
doesn't work anymore given that the apparmor features used during
preseeding do not match the apparmor features used on a running system
with kernel 6.6 .
2024-01-16 13:03:34 +01:00
Utkarsh Gupta
795927c48c unminimize: Use lxd-installer to install LXD itself (LP: 2036725)
By invoking LXD, lxd-installer will install LXD from the right
place, thereby make it simpler for us to not hardcode the
channel and manually snap install it.
2024-01-09 08:26:21 +05:30
Steve Langasek
650815889f Fix overlooked syntax error in live-build/auto/config. 2024-01-03 23:38:50 -08:00
Steve Langasek
fc6a8a7b94 But include a sensible error message for wrong usage of .live layers
Instead of just returning 'EXPLODE: command not found', heh
2024-01-03 23:03:56 -08:00
Steve Langasek
cdcb44ebf9 include a sanity check that no layered image has more than one "live" layer
This would cause undefined behavior with the LAYERFS_LIVE handling in the
hook.
2023-12-20 22:02:30 -08:00
Steve Langasek
80cd4153e1 check for glib-compile-schemas presence before calling from the ubuntu hook
This makes the hook ok to use cross-flavor.

We could also move glib-compile-schemas to a separate hook, to ensure we never
silently fail because glib-compile-schemas is broken/missing.
2023-12-20 19:47:14 -08:00
Steve Langasek
6680b3be8d generalize live-build/ubuntu/hooks/020-ubuntu-live.chroot_early
apply this to any layer ending in '.live' so it can be reused across flavors
2023-12-20 19:46:22 -08:00
Steve Langasek
b45cad12b4 Ship static files instead of generating in a hook
When the files we're creating in the live layer have static content, ship
them in live-build/ubuntu/includes.chroot.minimal.standard.live instead of
generating them from live-build/ubuntu/hooks/020-ubuntu-live.chroot_early.

Also fixes the fact that
live-build/ubuntu/hooks/020-ubuntu-live.chroot_early was incorrectly writing
to /root in the previous upload instead of /usr.
2023-12-20 11:39:38 -08:00
Steve Langasek
25d1aa42a1 move code here from scripts/casper-bottom/61desktop_canary_tweaks
this should be done statically at image build time, not at boot.
2023-12-19 12:22:05 -08:00
Steve Langasek
5cc9bbcdd9 Merge branch 'raspi-only-arm64' into ubuntu/master 2023-12-15 23:17:34 -08:00
Erich Eickmeyer
e8e6f967b8 Add casper to minimal.standard.live seed
Without casper in the minimal.standard.live seed for flavors using the
new ubuntu-desktop-installer (or derivitives thereof), casper cannot
create a live user. Without this live user, Ubuntu Studio has been
experiencing the inability to login automatically from either the GUI or
manually from a TTY. This leaves the boot at a black screen with a mouse
cursor. This commit is an attempt to avoid the same situation. Previous
assessments of omitting casper from this line appear to have been
incorrect.
2023-12-15 14:42:27 -06:00
Erich Eickmeyer
0b4fd8b4c0 Fix comment, edubuntu task build, yaml name 2023-12-15 14:42:27 -06:00
Erich Eickmeyer
8fd9a84b92 Switch Edubuntu to new installer 2023-12-15 14:42:27 -06:00
Steve Langasek
4a44b56857 Drop support for building armhf+raspi images; as of noble these are arm64-only. 2023-12-08 18:38:40 -08:00
Steve Langasek
cec2e89119 Explicitly add_package linux-$KERNEL_FLAVOURS in Ubuntu Studio. 2023-12-08 18:33:59 -08:00
Steve Langasek
6ce675b57d Project name for Ubuntu Studio needs to be 'ubuntustudio-dvd' throughout, not 'ubuntustudio'. 2023-12-08 15:07:34 -08:00
Steve Langasek
770125af8c Merge branch 'default-locale-everywhere' into ubuntu/master 2023-12-07 21:21:44 -08:00
Michael Hudson-Doyle
c75f6b3db4 Merge remote-tracking branch 'xypron/umount' into ubuntu/master 2023-12-08 15:41:09 +13:00
Steve Langasek
84e27d0de2 Merge branch 'subarch-manifest' into ubuntu/master 2023-12-06 08:40:50 -08:00
Steve Langasek
323ffd735c Also add support for riscv64 builds with 'generic' subarch
CPC team builds use null subarch but ubuntu-cdimage builds use 'generic'
subarch

https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/noble/cpc/+build/542136
2023-12-06 08:38:33 -08:00
Steve Langasek
94082a6601 And support riscv64 builds with no subarch
such as https://launchpad.net/~cloudware/+livefs/ubuntu/noble/cpc/
2023-12-06 00:04:28 -08:00
Steve Langasek
573cde58cd Remove *-dvd glob handling for live layers; Ubuntu Studio is the only remaining "DVD" flavor, and with the move to the new installer this bit is also now incorrect. 2023-12-05 21:18:13 -08:00
Steve Langasek
afdd23e548 Fixup: ubuntustudio task name is ubuntustudio-dvd-live, not ubuntustudio-live 2023-12-05 21:14:53 -08:00
Erich Eickmeyer
6d7797eb95 Remove cloud-init, fix add_task line 2023-12-05 15:40:28 -08:00
Erich Eickmeyer
a514428a9c Remove unnecessary lines 2023-12-05 13:12:00 -08:00
Erich Eickmeyer
72746413df Fixes to add minimal seed 2023-12-05 12:48:40 -08:00