2107 Commits

Author SHA1 Message Date
Utkarsh Gupta
9000cfd8e1 Fix bash synxtax for index parameter expansion 2024-03-13 18:43:48 +05:30
Utkarsh Gupta
cebc2f85d5 Merge branch 'add-buildinfo-file' into ubuntu/master
* add-buildinfo-file:
  Drop the second parameter passed to configure_oci
  Add build_name metadata to build.info file for OCI and Base images
2024-03-13 18:26:45 +05:30
Utkarsh Gupta
3bc9857bc7 Drop the second parameter passed to configure_oci
This has become moot now that the code block has been
moved out from live-build/functions to live-build/auto/build
so passing the argument is not needed anymore.
2024-03-13 18:26:31 +05:30
Utkarsh Gupta
45692d4300 Add build_name metadata to build.info file for OCI and Base images
Presence of this field helps in determining if the image is an
unminimized image, which then can be leveraged in the unminimize
script to easily determine the image type.
2024-03-13 18:26:31 +05:30
John Chittum
4f51ff4521
fix: Remove UEFI booting armhf
short-term fix, as grub2 for armhf has issues. we are investigating if
we still need an armhf VM, as there is no armhf server hardware
available.
2024-03-12 09:15:12 -04:00
Steve Langasek
de9cb48be0 Merge remote-tracking branch 'feng-kylin/ubuntu/master' into ubuntu/master 2024-03-06 18:05:48 -08:00
Dan Bungert
5787be2b0c ubuntu-mini-iso: remove hardcoded dependencies 2024-03-05 16:50:26 -07:00
handsome_feng
34fb57e362 Ubuntu Kylin ship to new installer 2024-03-05 19:35:45 +08:00
Jess Jang
70e7c5f1d2 fix: Missing apparmor feature for 6.8 kernel
apparmor features for 6.8 have been missing after
new kernel rolled out. Created 6.8 directory
to build with correct version feature.
2024-03-04 14:44:29 -06:00
Chad Smith
0c53dae35d functions: cloud-init clean script needs to declar interpreter
LP: #2055729
2024-03-01 15:23:02 -07:00
Łukasz 'sil2100' Zemczak
0e4eec7adb Use ubuntu-image from candidate. 2024-03-01 12:10:31 +01:00
Philip Roche
e65a499069 fix: Set the required debconf settings to allow for non interactive grub updates in cloud images (LP: #2054103)
As part of addressing LP: #2054103 [1] an update to grub-pc added a feature to be able to ensure that grub-pc
installation can happen noninteractively on cloud images.

This change is equivalent to running

```
debconf-set-selections grub-pc grub-efi/cloud_style_installation boolean true
debconf-set-selections grub-pc grub-pc/cloud_style_installation boolean true
```

These were introduced optionally to determine the install device using
`grub-probe` dynamically instead of having to fill the `grub-pc/install-devices`
debconf entry.

[1] https://bugs.launchpad.net/cloud-images/+bug/2054103
2024-02-23 13:54:44 +00:00
Sean Davis
007e26d80e
xubuntu: Fix description 2-line indentation 2024-02-22 17:04:38 -05:00
Simon Poirier
5b4402f359 Unpin backports priority for buildd images.
There was a time historically where Launchpad buildd might have relied
on that behaviour, but this shouldn't be the case anymore as it sets
priority manually when building backports.
Meanwhile any other builds using buildd images (e.g. snapcraft)
shouldn't default to backports unless required. (lp: #2009871)

Refs:
- [1] https://git.launchpad.net/launchpad-buildd/commit?id=c2ebcb6752
2024-02-22 12:01:57 -05:00
Sean Davis
d9a37fa351
xubuntu: Fix the variable KERNEL_FLAVOURS 2024-02-20 17:32:13 -05:00
Łukasz 'sil2100' Zemczak
ace66cbb52 Attempt building netboot tarballs for largemem arm64 server images. 2024-02-20 17:05:10 +01:00
Steve Langasek
db5f662019 Also move the definition next to where it is used 2024-02-18 12:14:20 -08:00
Steve Langasek
bf5a799935 Pare down 'BASE_SEED' handling to only those flavors which still use it.
Per the comments, BASE_SEED was initially used to identify the seed in the
flavor to use for identifying preseeded snaps, and later was also used to
identify which "minimal-remove" seed to apply to an image.

The first usage is now obsolete after a refactor; we now correctly detect
snaps from any of the included seeds without needing an explicit
declaration.

The second usage only applies to installer images that are NOT using layered
squashfs, since for these images 'minimal' is a separate squashfs layer
rather than a list of packages to remove after the fact.

Refactor this code to eliminate pointless definitions of BASE_SEED and
define it only for the subset of flavors today that:
 - have a 'minimal-remove' seed
 - are not using layered squashfs.
2024-02-18 10:28:41 -08:00
Steve Langasek
45521e71cd Fix overlooked syntax error 2024-02-18 09:14:19 -08:00
Sean Davis
5d23ea3d83
Smarter layering (thanks vorlon) 2024-02-18 06:40:11 -05:00
Sean Davis
dabcbc0d28
Ensure only one default catalog 2024-02-17 16:01:18 -05:00
Sean Davis
1972d27866
Only generate minimal.live when building minimal 2024-02-17 15:01:26 -05:00
Sean Davis
dea479a2b1
Better laying of tasks 2024-02-17 14:47:01 -05:00
Sean Davis
ea16e4ef5a
Minimize duplication 2024-02-17 06:39:49 -05:00
Sean Davis
ba38059b0b
Copy ubuntu-cinnamon setup 2024-02-17 06:35:13 -05:00
Julian Andres Klode
eb7773f43a live-build/buildd/hooks/00-mirror.binary: Patch all sources files 2024-02-16 22:03:51 +01:00
Didier Roche
0d5ce6daa6
Ensure ubuntu-wsl images can be published in cloud-images again.
The cloud-images logic is now special case for ubuntu-wsl to not require
ending with project_prefix. Readd it first, which will allow us to
ensure backward compability on cloud-images.ubuntu.com
2024-02-16 11:08:47 +01:00
Steve Langasek
77036593d7 Drop references to ubuntu-gnome which is not a current flavor. 2024-02-15 14:20:46 -08:00
Michael Hudson-Doyle
f8bdf50724 Merge remote-tracking branch 'ubuntucinnamon-dev/ubuntu/master' into ubuntu/master 2024-02-16 10:15:56 +13:00
Erich Eickmeyer
3fc80105d5 Add symlink for 020-ubuntu-live.chroot_early 2024-02-15 12:39:15 -08:00
Michael Hudson-Doyle
0636a5bad4 Hooks and other things need to go in live-build/$PROJECT and $PROJECT for Ubuntu Studio is ubuntustudio-dvd, not ubuntustudio. 2024-02-16 09:33:22 +13:00
Erich Eickmeyer
3ec5c06b4f Copy configs 2024-02-15 09:13:15 -08:00
Erich Eickmeyer
e950cb2aa8 Change Ubuntu Cinnamon to layered image
Ubuntu Cinnamon now uses the new installer and therefore needs to be a layered image to accommodate the minimal install option.
2024-02-15 09:08:39 -08:00
Michael Hudson-Doyle
9e42d66ed5 Merge branch 'copy-hooks-more' into ubuntu/master 2024-02-13 13:26:40 +13:00
Michael Hudson-Doyle
810458d2a4 Edubuntu, Ubuntu Studio and Ubuntu Budgie have hooks in live-build/${PROJECT}/hooks now but they need to be copied to config/ to do anything. 2024-02-13 13:19:22 +13:00
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