2204 Commits

Author SHA1 Message Date
Michael Hudson-Doyle
c17a99bc1f Allow snapd to re-exec in installer environment (the issues between snapd, overlayfs and apparmer that meant re-execing caused problems were fixed in snapd a long time ago). 2025-01-29 06:39:25 +13:00
Heinrich Schuchardt
0c5b7dfd0c riscv: correct installation path of dtbs
U-Boot with distroboot has:

efi_dtb_prefixes=/ /dtb/ /dtb/current/

So we should install the device-trees into dtb/ and not dtbs/ on the EFI
system partition.

Fixes: 365435ad2dbe ("riscv: copy device trees to the ESP")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2025-01-27 13:49:26 +01:00
Adriano Cordova
365435ad2d riscv: copy device trees to the ESP
Commit f9c5020200ce ("riscv: directly copy device trees to /boot/dtbs")
incorrectly copied devicetrees into /boot/dtbs/$kvers instead of /boot/efi/dtbs,
inside the ESP and where U-boot expects them. This commit fixes this path.

Fixes: f9c5020200ce ("riscv: directly copy device trees to /boot/dtbs")
Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com>
2025-01-24 11:16:32 +13:00
Didier Roche
420545f892
Update reference to wsl-setup now in /usr/lib/wsl/
Microsoft expects this binary to be under that path.
2025-01-22 10:22:18 +01:00
Adriano Cordova
f9c5020200 riscv: directly copy device trees to /boot/dtbs
Signed-off-by: Adriano Cordova <adriano.cordova@canonical.com>
2024-12-20 08:55:21 -03:00
Didier Roche
8a0f0357b5
Create wsl-distribution.conf for WSL images
This file is required in the new Microsoft WSL package format.

Co-authored-by: Carlos Nihelton <carlos.santanadeoliveira@canonical.com>
2024-12-09 14:29:28 +01:00
Didier Roche
42f3b442e9
Create livecd-roots tarball as a .wsl extension
Co-authored-by: Carlos Nihelton <carlos.santanadeoliveira@canonical.com>
2024-12-09 14:29:27 +01:00
Didier Roche
b53628564c
Keep a single wsl rootfs upgrade policy
We are removing our different variants of wsl rootfs with the new
Microsoft format. We only keep one following the distribution policy:
- lts to lts
- intermediate release to next one

Co-authored-by: Carlos Nihelton <carlos.santanadeoliveira@canonical.com>
2024-12-09 14:29:22 +01:00
Michael Hudson-Doyle
524c0f5c4e Refer to LB_DISTRIBUTION, not SUITE, in the ubuntu-mini-iso binary hook. 2024-12-06 09:56:55 +13:00
Michael Hudson-Doyle
c59b2165fd fix ubuntu-mini-iso build
replace reliance on cd-boot-images-amd64 with direct use of debian-cd sccripts.
2024-12-04 12:50:25 +13:00
Loïc Minier
9f0bc6a17c Merge remote-tracking branch 'rmartin013/rename-tegra-igx' into ubuntu/master
Fix typo in live-build/auto/config
2024-11-26 13:49:19 +00:00
Simon Quigley
3c39128f16 Add optional Dracut support for installed images, enable it for Lubuntu. 2024-11-23 13:49:04 -06:00
Simon Quigley
c73b51ec43 Switch Lubuntu to stacked squashfses, and split apart the common functionality to avoid Subiquity-specific commands. 2024-11-23 13:48:02 -06:00
Remy MARTIN
a666bf4110
Add tegra-jetson subarch,model,variant
The previous Tegra kernel metapackage implementation (linux-nvidia-tegra-igx)
was initially planned to apply both for Jetson devices and IGX systems. It turned
out recently (LP: #2069179) that we now need to reserve the metapackage name
linux-nvidia-tegra-igx for IGX systems, and use the new linux-nvidia-tegra-jetson
metapackage for Jetson devices. For the sake of clarity, the image name, model,
sub-arch, variant should align with the kernel metapackage name.
2024-11-06 15:47:23 +01:00
John Chittum
e128704c77
fix(buildd): create buildd homedir
LP:2083240

starting in noble, adduser no longer creates a homedir for system users.
The buildd user then does not have a home directory, causing snaps to be
unable to run, as well as possibly other issues from a missing assumed
homedir. Explicitly create /home/buildd
2024-11-06 07:17:16 -05:00
Dan Bungert
dbfe42ad25 live-server: omit kernel-meta-package file 2024-10-16 12:40:44 -06:00
Dan Bungert
76ee7808ea lb_chroot_layered: omit kernel-meta-package file 2024-10-16 12:40:44 -06:00
Dan Bungert
2096eccd67 lb_binary_layered: use kernel.yaml 2024-10-16 12:40:44 -06:00
Dan Bungert
2f103f886c config: output kernel.yaml fragment 2024-10-16 12:40:44 -06:00
Dan Bungert
9b42f898bf update-source-catalog: support version 2 scheme
Version 1 of install-sources.yaml is a top-level list of the sources to
be offered.
Version 2 extends this by placing the list under a top-level key
`sources`, adding a `version` field, and adding a `kernel` field which
supplants the current kernel-meta-package file.  `kernel.default` is
read to know which kernel to use - unless we need to fallback to the
bridge kernel.
2024-10-14 17:13:39 -06:00
Łukasz 'sil2100' Zemczak
9b1ea66dc8 Add comment re: the cohort key in prepare-image 2024-10-08 13:30:36 +01:00
Łukasz 'sil2100' Zemczak
293ec25aba Use cohort key for prepare-image. 2024-10-08 13:08:14 +01:00
Heinrich Schuchardt
e5977a2e2b riscv: use generic kernel flavor for Nezha D1 and LicheeRV Dock
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2024-10-04 12:11:47 +02:00
Michael Hudson-Doyle
3f44a55392 Update the model used for TPM FDE installs, yet again. 2024-10-04 11:53:16 +13:00
Dan Bungert
5e990020e5 desktop: remove references to subiquity snap
No subiquity snap is present on Desktop isos, these are cruft.
2024-10-02 08:20:34 -06:00
Michael Hudson-Doyle
e5ef431598 Update the model used for TPM FDE installs, again, hopefully working this time. 2024-10-02 19:05:26 +13:00
Utkarsh Gupta
e8d5fde9e2 Revert "Update the model used for TPM FDE installs."
This reverts commit c4e69348aed2e89bdef0187afe79da18d855eb8c as
the more debugging is needed for autopkgtest failures and is
therefore blocking apparmor fixes for cloud images.
2024-09-30 16:15:08 +05:30
Utkarsh Gupta
b5d00fae13 Add 6.11 kernel apparmor features' preseeds 2024-09-25 13:41:12 +05:30
Michael Hudson-Doyle
c4e69348ae Update the model used for TPM FDE installs. 2024-09-25 13:51:08 +12:00
Chad Smith
c567b71239 fix(functions): cloud-init.service renamed cloud-init-network.service
In cloud-init version 24.3, single process mode where a shared python
systemd service cloud-init-main. In that release, cloud-init.service was
renamed cloud-init-network.service to better clarify cloud-init's
systemd unit names relative to the cloud-init boot stages.

This rename only applies to Oracular and newer releases.

See: https://discourse.ubuntu.com/t/announcement-cloud-init-perfomance-optimization-single-process/47505

functions drops in a complete override for cloud-init.service. That
override in /etc/systemd/system needs to be renamed and refreshed to
latest single process configuration.

LP: #2081325
2024-09-20 10:41:57 -06:00
Chris Peterson
ed1844eda1 live-{server,desktop}: USE_KDUMP=0 only live layer
kdump-tools uses ucf for config file management and naively
modifying the config file meant for the target system directly
will cause the file hash to not get updated in the ucf database.
This will then cause later modifications to fail because
"there's nothing to do". Although actually doing the modification
to the ucf database is messy. Let's just modify the file in the live
layer to get the behavior we want there.
2024-09-17 21:01:36 -07:00
Chris Peterson
7f1c726441 ubuntu: disable kdump-tools by default
We install the kdump-tools package to minimal layer via inclusion in the
desktop-minimal seed, but it is enabled by default. Include a new chroot
hook to set USE_KDUMP=0 to make sure it's disabled by default and let
the installer decide to enable it or not.
2024-09-16 09:48:27 -07:00
Chris Peterson
67df97f099 ubuntu-server: disable kdump-tools by default
We install the kdump-tools package to minimal layer via inclusion in the
server-minimal seed, but it is enabled by default. Include a new chroot
hook to set USE_KDUMP=0 to make sure it's disabled by default and let
the installer decide to enable it or not.
2024-09-16 09:46:33 -07:00
Dan Bungert
db0a0f0462 desktop & many flavors: kernel in minimal layer 2024-09-12 14:24:33 -06:00
Dan Bungert
c9df34c340 live-server: fix looking for ga variant 2024-09-11 12:29:35 -06:00
Dan Bungert
8acf29a786 live-server: place kernel in the minimal layer
By placing the kernel in minimal, we can achieve the following
improvements:

1. Space savings - there are redundant packages present in the ship-live
   pool and in the live layer.  Adding the kernel to minimal means that
   the kernel is already in the live layer, and we don't then also need
   it in the pool.
2. Time savings - informal vm testing suggests more than a minute
   improvement to have the kernel preinstalled over installing it at
   runtime.

As always, there is a cost tradeoff:

1. If a different kernel is desired, we need to be able to remove this
   preinstalled kernel.  Relevant curtin and subiquity changes are
   already landed.
2. When installing that other kernel, it'll take longer than today due
   to still needing to install a kernel at runtime + the time cost of
   removing the preinstalled kernel.
2024-09-10 17:00:56 -06:00
Sergio Costas Rodriguez
d8fa3db5dc
Integrate Core Desktop 24 as a Core subproject
This patch updates Core Desktop to version 24, and also makes
it a subproject of Core, so it shares nearly the whole project
files and simplifies maintenance. It is based on a proposal from
Michael Hudson-Doyle. https://git.launchpad.net/~mwhudson/livecd-rootfs/+git/livecd-rootfs/commit/?id=94cb68d47530a564060155f985f963f59786809f
2024-09-05 13:06:32 +02:00
Chris Peterson
7f25e9cad5 Refresh ubuntu-classic-2404-amd64 model
Update the ubuntu-classic-2404-amd64.model definition in the
ubuntu hooks after changes in [1] to update snap tracks.

[1] d864558b66
2024-08-26 12:39:51 -07:00
Simon Poirier
df4017bf10 disk-image-uefi: Fix regression with partition sizing on arm
The sgdisk arguments for arm got mistakenly reordered, with the second
partition starting at offset 0.
2024-08-21 18:44:30 -04:00
Simon Poirier
61f1b20a5a disk-image-uefi.binary: shift down boot number to 13
Support some systems which don't handle partition numbers
higher than 15. (LP: #2072929)
Partition 16 was added for /boot to enable cloud FDE (commit a8b2a9b01)
2024-08-20 18:57:07 -04:00
Cody Shepherd
eecd0191ec
fix: remove ec2-version hook for cpc images 2024-08-09 13:25:06 -07:00
Steve Langasek
776d9c18c3 Merge remote-tracking branch 'ubuntustudio-dev/ubuntu/master' into ubuntu/master 2024-07-25 11:12:45 -07:00
Heinrich Schuchardt
5fda764262 riscv64: preinstalled image for Microchip PIC64GX Curiosity Kit
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2024-07-22 15:24:21 +02:00
Erich Eickmeyer
8f33879432 Add a minimal installation for Ubuntu Studio
Ubuntu Studio wants to add a minimal installation. The individual tasks
are metapackages that can be installed by the ubuntustudio-desktop task.

With that in mind, we would like to reintroduce
ubuntustudio-desktop-core as a minimal installation. This is made much
easier with the layered images compared to the package removal format
used by ubiquity. This also means ubuntustudio-desktop-core becomes the
base seed.

If I'm missing anything, please advise.
2024-07-19 12:21:16 -07:00
Chad Smith
97dd81183b functions: proper cloud-init.service full unit override in etc
System override drop-ins cannot redact dependencies (Before or After) and
thus require a full unit override. Avoid writing the unit file delivered
by cloud-init deb package in /lib/systemd/system/cloud-init.service because
it will generate warnings fron debsums -c about modified files.

The correct place to provide a full unit override is in
/etc/systemd/system/cloud-init.service in order to drop
Before=sysinit.target from the packaged cloud-init.service file.

Note vigilance will be needed across cloud-init SRU boundaries to ensure
we sync any cloud-init.service unit changes that are introduced to
stable releases because livecd-rootfs is overriding the whole file.

LP: #2069391
2024-07-16 10:58:09 -06:00
Łukasz 'sil2100' Zemczak
c9fc7f390d Add changelog, fix typo. 2024-07-11 13:01:44 +02:00
Łukasz 'sil2100' Zemczak
b6135788ba Build qcow2 images for non-SUBARCH core images for lxd purposes. 2024-07-05 11:36:42 +02:00
Zhai Zhaoxuan
f189a4e680
support specify sector size in ubuntu-image
Signed-off-by: Zhai Zhaoxuan <zhai.zhaoxuan@canonical.com>
2024-06-27 09:58:59 +08:00
Erich Eickmeyer
adcbbe388d Switch ubuntustudio to generic kernel
The lowlatency kernel will eventually undergo deprecation. Rather than
wait for such a time to happen and be reactive, Ubuntu Studio would
rather be proactive about this now that the generic kernel can act as a
lowlatency kernel with certain command line parameters as outlined by
https://discourse.ubuntu.com/t/fine-tuning-the-ubuntu-24-04-kernel-for-low-latency-throughput-and-power-efficiency/44834.

As such, we have modified our `ubuntustudio-lowlatency-settings`
package, which installs `/etc/default/grub.d/ubuntustudio.cfg` with the
following line:

-GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT threadirqs"
+GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT preempt=full
nohz_full=all threadirqs"

Additionally, that same file used to set "GRUB_FLAVOUR_ORDER" which is
no longer needed.
2024-06-19 15:53:52 -07:00
Utkarsh Gupta
a8991217d3 Merge branch 'drop-unminimize' into ubuntu/master
* drop-unminimize:
  Drop unminimize spit out by livecd-rootfs
2024-06-19 22:02:17 +05:30