1939 Commits

Author SHA1 Message Date
Steve Langasek
7c4ad85509 Merge some more live image definitions 2023-09-06 12:59:40 -07:00
Steve Langasek
214fee87ee generic is the default kernel flavor in live-build on Ubuntu; remove hard-coded cargo-culting of this setting. 2023-09-06 12:56:27 -07:00
Steve Langasek
5776828153 Parameterize and consolidate live image definitions for flavors using a common pattern 2023-09-06 12:04:45 -07:00
Steve Langasek
458f58bb7a Drop references to mythbuntu, obsolete after xenial. 2023-09-06 11:59:32 -07:00
Steve Langasek
f763efa40e Drop references to ubuntu-dvd, obsolete since precise. 2023-09-06 11:53:23 -07:00
Steve Langasek
d7e77d7acf Alphabetize for clarity 2023-09-06 11:49:28 -07:00
Steve Langasek
f2360a58c8 remove redundancy from case statement 2023-09-06 11:48:22 -07:00
Steve Langasek
f44c2aac8c merge redundant cases for seed/mirror handling 2023-09-06 11:43:11 -07:00
Steve Langasek
caace43cb9 ubuntu-unity-live task exists, use it also instead of hard-coded list of packages. 2023-09-06 11:36:18 -07:00
Steve Langasek
fc49fb286c Drop references to ubuntu-netbook, obsolete since Ubuntu 11.04. 2023-09-06 11:32:43 -07:00
Steve Langasek
e8a08ad084 Don't hard-code addition of xterm package on xubuntu, it's in the task already. 2023-09-06 11:28:50 -07:00
Steve Langasek
7c51e152f1 ubuntucinnamon-live task has existed for a while now, use it instead of hard-coded list of packages. 2023-09-06 11:26:58 -07:00
Steve Langasek
abc60bc135 Drop references to kubuntu-plasma5, obsolete since wily 2023-09-06 11:24:06 -07:00
Łukasz 'sil2100' Zemczak
e38264ca7a Merge branch 'canary-as-default' of git+ssh://git.launchpad.net/livecd-rootfs into ubuntu/master 2023-09-06 18:23:07 +02:00
Steve Langasek
34e850d4a5 blkid is unreliable in mount_image(), but this blkid call is only here for debugging, so ignore any failures (even if we don't understand them). LP: #2034299. 2023-09-05 12:30:15 -07:00
Łukasz 'sil2100' Zemczak
9b33f085c1 Merge branch 'ubuntu/master' of git+ssh://git.launchpad.net/livecd-rootfs into canary-as-default 2023-09-05 19:00:32 +02:00
Utkarsh Gupta
78a98c6835 Fix unminimize to correctly list packages (LP: #1996489)
Prior to dpkg/1.21.0, there was a bug where dpkg -V/--verify
couldn't list all the correct packages correctly but with
that being fix and in archive since Jammy, this works perfectly
but the syntax to report the missing files have changed. It
just prints 'missing' now. With that new format, we can now
fix the regex to simply list the packages.

With this patch, the unminimize script works flawlessly
on a minimized image.
2023-09-02 00:39:41 +05:30
Łukasz 'sil2100' Zemczak
3a715d2fff Don't reset KERNEL_FLAVOURS for canary. 2023-08-30 16:47:21 +02:00
Łukasz 'sil2100' Zemczak
47a88df62f I suppose w don't need the 020-canary-live.binary hook anymore. 2023-08-30 14:25:26 +02:00
Łukasz 'sil2100' Zemczak
0c6e4314e5 canary: switch to use the live task, try to use KERNEL_FLAVOURS instead of a manual kernel add_package. 2023-08-30 11:57:04 +02:00
Steve Langasek
b30e7e4146 lb_chroot_layered: if the unmount of the chroot mountpoint fails, dump mount information for debugging. 2023-08-29 10:39:21 -07:00
Łukasz 'sil2100' Zemczak
353d222c94 Merge branch 'seed.yaml-live' of git+ssh://git.launchpad.net/~mwhudson/livecd-rootfs/+git/livecd-rootfs into ubuntu/master 2023-08-28 15:48:00 +02:00
Łukasz 'sil2100' Zemczak
4a2e30a3b3 Update enhanced-sb layer model assertion. 2023-08-28 12:23:30 +02:00
Michael Hudson-Doyle
6ab6066c05 Use a traditional seed.yaml style seed for the canary installer's live session. 2023-08-28 21:29:24 +12:00
Michael Hudson-Doyle
b91452e7fe snap-seed-parse.py: fix builds with no snaps. 2023-08-28 14:02:51 +12:00
Michael Hudson-Doyle
db6f685b84 snap-seed-parse.py: Update to allow parsing uc20-style seeds. (LP: #2028984) 2023-08-28 11:30:11 +12:00
Michael Hudson-Doyle
3d5fd1120c Configure universe sources in canary ISO. (LP: #2033109) 2023-08-28 10:43:52 +12:00
Steve Langasek
ac65e0b05c Remove obsolete comment. We do want this hook executed for non-canary builds! 2023-08-26 15:14:08 -07:00
Steve Langasek
21333e9889 Drop mke2fs.conf override, no longer needed. 2023-08-26 15:12:09 -07:00
Steve Langasek
cb3f3292b2 i386 foreign-arch support was added for the canary image before 23.04 released, but by mistake it was only added to the squashfs for the live session, and not the squashfs layer used as the source for installation. split the chroot hooks to add this to the standard.squashfs. LP: #2033170. 2023-08-26 15:06:14 -07:00
Michael Hudson-Doyle
f354d76a83 Stop launching a gnome-terminal at startup of the canary live session. (LP: #2032647) 2023-08-25 15:22:02 +12:00
Michael Hudson-Doyle
5456e4e5e6 Undo preseeding in reset_snapd_state. 2023-08-25 14:50:08 +12:00
Michael Hudson-Doyle
e992090dca add an essay about rsync options 2023-08-23 22:30:44 +12:00
Steve Langasek
2b80fdecd2 No need to use rsync in hooks now to avoid file duplication since layer handling as a whole now uses rsync. 2023-08-23 22:21:41 +12:00
Steve Langasek
b43e3b84f4 Reset /var/lib/snapd in the upper layers before calling snap prepare-image 2023-08-23 22:21:41 +12:00
Steve Langasek
d3a75c9bec Consolidate canary layers to merge 'classic' back into 'standard' 2023-08-23 22:21:32 +12:00
Michael Hudson-Doyle
6890dfe5ca Deduplicate the layers just before creating the squashfs, to enable deduplication of the result of binary hooks as well. 2023-08-23 22:14:15 +12:00
Łukasz 'sil2100' Zemczak
b1a118f4d7 Update canary model assertions.: 2023-08-22 17:15:36 +02:00
Utkarsh Gupta
7b1b63147e Add python3-systemd to our minimized builds
This package is needed by ubuntu-advantage-tools for cloud images
only. u-a-t ultimately will drop this entirely in their next release.
(cf: https://github.com/canonical/ubuntu-pro-client/issues/2692)

So instead of putting this in the seeds and then having to deal
with the seed changes to Mantic (after its release) and SRU of
ubuntu-meta, I'd rather have changes in livecd-rootfs done. Once
python3-systemd dependency is dropped from u-a-t, we'll drop it
from livecd-rootfs in Mantic+, too.
2023-08-22 14:48:33 +05:30
Łukasz 'sil2100' Zemczak
9d9a68d6bf Fix the 020-canary-* hooks referencing the wrong layer names after changes introduced in 23.10.17. 2023-08-18 18:00:24 +02:00
Łukasz 'sil2100' Zemczak
6eca613644 Refresh the canary model assertions. 2023-08-18 17:50:56 +02:00
Łukasz 'sil2100' Zemczak
8a9ba050c3 Make canary images default for Ubuntu. 2023-08-18 12:16:28 +02:00
Steve Langasek
94ab5c0f7a Merge branch 'meta-squash-fs' into ubuntu/master 2023-08-17 08:16:49 -07:00
Philip Roche
a373fb527c fix: Install required package fuse3 when preseeding snaps (LP: #2031640)
fuse3 was previously installed through recommends but with minimized images we no longer install recommends packages.

It is only required when preseeding snaps so does not need to be present in all minimized images so does not
need to be in the cloud-minimal seed.
2023-08-17 11:50:20 +01:00
Philip Roche
294a65452d fix: Ensure required dependencies are installed before trying grub-install (LP: #2031640)
As a result of not installing recommended packages the packages required to run `grub-install`
are no longer installed by default.

To ensure we can successfully run `grub-install` we install both `grub-pc` and `grub2-common`
packages.
2023-08-17 11:49:11 +01:00
Philip Roche
711c5c291f fix: Remove dangling symlink /boot/initrd.img.old if exists (LP: #2031640)
As a result of not installing recommended packages we have dangling symlink `/boot/initrd.img.old`

As per the preceding `/boot/initrd.img` cleanup. Cleanup of `/boot/initrd.img.old`
only happens if it is a dangling symlink.

These `rm` commands also have `--verbose` flags now to make it easier when debugging logs
2023-08-17 11:48:22 +01:00
Philip Roche
d1ec6f8947 fix: Do not install recommends for ubuntu-cpc minimized project (LP: #2031640)
For minimized images we do not want to install any recommended packages.
We can do this by setting APT::Install-Recommends to false in apt config
or by passing --no-install-recommends to apt-get install.
2023-08-17 11:46:59 +01:00
Utkarsh Gupta
75e67290b6 Merge remote-tracking branch 'hammerstefan/fix-armhf' into ubuntu/master
* hammerstefan/fix-armhf:
  fix(armhf): Fix armhf kernel file detection
2023-08-17 07:06:15 +05:30
Steve Langasek
6f1fc57ebc Merge the minimal and standard layers on the Ubuntu Desktop images (both daily-live and canary), now that there is no separate minimal install target. 2023-08-16 14:35:27 -07:00
Dan Bungert
e03d43e069 canary: drop minimal install source 2023-08-15 18:03:45 -06:00