2817 Commits

Author SHA1 Message Date
Michael Hudson-Doyle
2414cd0aef remove spurious changelog entry 2024-01-25 07:56:45 +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
4399b709e0 Add bug number, for tracking. 2024-01-22 16:56:11 +01:00
Łukasz 'sil2100' Zemczak
f65a6dafc2 Add changelog entry. 2024-01-22 15:02:19 +01:00
Utkarsh Gupta
e9d27dafb6 Update d/ch for 24.04.20 release 2024-01-22 18:02:29 +05:30
Steve Langasek
471f45101e releasing package livecd-rootfs version 24.04.19 2024-01-18 11:03:58 -08:00
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
Utkarsh Gupta
6174e4c424 Update d/ch for 24.04.18 release 2024-01-17 14:17:42 +05:30
Thomas Bechtold
706a05b851 update debian/changelog 2024-01-16 13:07:52 +01:00
Utkarsh Gupta
9cda078671 Update d/ch for 24.04.17 release 2024-01-11 15:55:10 +05:30
Steve Langasek
de9c5ed37e releasing package livecd-rootfs version 24.04.16 2024-01-03 23:38:55 -08:00
Steve Langasek
650815889f Fix overlooked syntax error in live-build/auto/config. 2024-01-03 23:38:50 -08:00
Steve Langasek
a566a8173a releasing package livecd-rootfs version 24.04.15 2024-01-03 23:26:07 -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
5d6c97415a releasing package livecd-rootfs version 24.04.14 2023-12-20 11:40:05 -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
915a6910fc releasing package livecd-rootfs version 24.04.13 2023-12-20 08:15:36 -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
91ea9f1fca Add a changelog entry and release 24.04.12. 2023-12-15 14:43:51 -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
942b6d9201 releasing package livecd-rootfs version 24.04.11 2023-12-08 18:34:13 -08:00
Steve Langasek
cec2e89119 Explicitly add_package linux-$KERNEL_FLAVOURS in Ubuntu Studio. 2023-12-08 18:33:59 -08:00
Steve Langasek
4fad0b0ca0 releasing package livecd-rootfs version 24.04.10 2023-12-08 15:07:43 -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
62b0be2d85 releasing package livecd-rootfs version 24.04.9 2023-12-08 15:43:21 +13:00
Michael Hudson-Doyle
17499ca901 add changelog 2023-12-08 15:41:45 +13:00
Steve Langasek
b97c9fb1f6 releasing package livecd-rootfs version 24.04.8 2023-12-07 15:36:32 -08:00
Steve Langasek
84e27d0de2 Merge branch 'subarch-manifest' into ubuntu/master 2023-12-06 08:40:50 -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
6f4cef9bff changelog 2023-12-05 21:12:45 -08:00
Steve Langasek
a6844722a8 releasing package livecd-rootfs version 24.04.7 2023-12-03 21:38:31 -08:00
Steve Langasek
220e563de3 live-build/functions: add additional debugging to mount_image() on failure since we again have loop partitions failing to be block devices. 2023-12-03 21:38:20 -08:00
Steve Langasek
a2e35e06d8 Merge remote-tracking branch 'simpoir/lp2007419_add_resolved_to_buildd' into ubuntu/master 2023-12-03 21:26:30 -08:00
Steve Langasek
4fb141bbec Merge remote-tracking branch 'dbungert/adt-hang-vagrant' into ubuntu/master 2023-12-03 21:20:22 -08:00
Steve Langasek
df83a7afed Set C.UTF-8 locale in /etc/default/locale for all images; originally intended to be landed in the cosmic cycle.. 2023-12-03 21:07:54 -08:00
Steve Langasek
5728443d00 Merge remote-tracking branch 'jibel/germinate_with_updates' into ubuntu/master 2023-12-03 19:59:07 -08:00
Dave Jones
5d8dd4c95d changelog 2023-11-28 16:03:56 +00:00
Ankush Pathak
19bceac8b3 fix: Re-enable universe for pre-installed images (LP: #2044154) 2023-11-21 11:31:06 -05:00
Michael Hudson-Doyle
b701208893 releasing package livecd-rootfs version 24.04.5 2023-11-17 17:20:47 +13:00
Michael Hudson-Doyle
d6069b41c9 add changelog entry 2023-11-17 17:18:59 +13:00
Steve Langasek
95b96df6db releasing package livecd-rootfs version 24.04.4 2023-11-05 16:42:22 +02:00
Steve Langasek
8fb2180842 Drop cargo-culted code for "preinstalled" images.
Somewhere along the line, we started trying to add packages to the live
environment of flavor "preinstalled" images.  But:

- we don't build preinstalled images for any flavors
- the preinstalled images for projects like cloud images and wsl are
  explicitly excepted from this code
- the only desktop project we do produce preinstalled images for, Ubuntu
  on Raspberry Pi, uses ubuntu-image for building so this code is never
  reached
2023-11-05 16:14:34 +02:00
Steve Langasek
99d2064f32 Drop a few remaining 'legacy' references. 2023-11-05 15:58:23 +02:00