2153 Commits

Author SHA1 Message Date
Michael Hudson-Doyle
0df4234c28 Add 'ubuntu-core-installer' project.
The ubuntu-core-installer image is an installer that installs ubuntu
core. The environment the installer runs in is similar to the server
installer but it has a source catalog entry that points to the model
created in ubuntu-core-installer/hooks/05-prepare-image.binary, which
subiquity knows how to install.
2024-07-25 17:26:22 +12:00
Heinrich Schuchardt
1da6867784 riscv64: preinstalled server image for Microchip PIC64GX Curiosity Kit
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2024-07-24 11:26:05 +02:00
Łukasz 'sil2100' Zemczak
bb44f093c9 Backport the qcow2 ubuntu-core image generation for LXD support. 2024-07-11 13:16:40 +02:00
Philip Roche
62a80ac00a
fix: Revert removal of unminimize call in server builds (LP: #2069828)
There was a change made by me in https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/466388
as part of LP: #2066905 to remove references to LXD in the unminimize scripts
but I also removed the calls to `unminimize` in error.

This still needs to run but without any references to LXD which no longer
needs to be `unminimized` via snap installation.

(cherry picked from commit f574fc8200d8a4c7837288c5d2aa1e515137bb55)
2024-06-24 17:26:07 +01:00
Heinrich Schuchardt
05933ff83f riscv64: use earlycon=sbi on command line
With current kernel we need to specify the SBI driver
for the early console to work.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2024-06-07 16:21:32 +02:00
Philip Roche
bfb829c64d fix: Remove .idea pycharm directories and files committed in error as part of merge commit.
Apologies. Trying to do too many things at once
2024-05-27 12:40:56 +01:00
Philip Roche
639f04b7b9 Merge feature/re-enable-noble-hyperv-desktop-builds-noble into ubuntu/noble [a=philroche] [r=mwhudson,utkarsh]
feat: Re-enable ability to build HyperV desktop images (LP: #2064280)

We have not built Hyperv desktop images since Jammy and with the re-introduction of
HyperV for Noble we have encountered build issues caused by refactoring and removals
of code assumed to be redundant but the HyperV desktop images were actually using
these code paths.

This is a backport/SRU from oracular.

MP: https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/466385

# Conflicts:
#	debian/changelog
2024-05-27 12:06:31 +01:00
Philip Roche
5507ca8d83 fix: No longer install LXD snap in unminimize script (LP: #2066905)
The LXD snap is no longer seeded in any images since Noble+ so the LXD related unminimize logic in
./live-build/auto/build?h=ubuntu/noble and ./live-build/ubuntu-server/hooks/01-unminimize.chroot_early
 is no longer required.

lxd-installer can remain installed.

(cherry picked from commit 46c19dfa913c133042d62e0caa2d2d526cd9bb7f)
2024-05-24 15:48:21 +01:00
Philip Roche
5f59eec085 fix(Hyperv Desktop): remove redundant case statement match ubuntu
`ubuntu` will never match `${PROJECT:-}:${SUBPROJECT:-}` cases statement and can be safely removed.

(cherry picked from commit 0945c40fb2bb067d86d496b7b40bdae89123124c)
2024-05-24 15:31:21 +01:00
Philip Roche
8cc079fe50 fix(Hyperv Desktop): as we are using oem-config we do not need ubiquity-slideshow-ubuntu
As we are only using oem-config, oem-config-slideshow-ubuntu will suffice

(cherry picked from commit 8fe26586cc1b65621e74121b03c912dcee0e6cf8)
2024-05-24 15:31:16 +01:00
Philip Roche
34edbb9a1c fix(Hyperv Desktop): ubiquity-frontend-gtk is a dependency of the oem-config-gtk package so does not need to be added explicitly
(cherry picked from commit dc2d1318d2d2183f6d80673a1daf5dc8794cd3ed)
2024-05-24 15:31:11 +01:00
Philip Roche
40c7eac14d feat(Hyperv Desktop): Disable cloud-init for Hyperv Desktop images (LP: #2064280)
For Ubuntu 24.04 and later cloud-init is included in desktop images. This is not applicable for Hyperv images so
we can disable cloud-init. This leaves the cloud-init package installed but disabled so users can still
use it if they want.

This is a documented way to disable cloud-init. See https://cloudinit.readthedocs.io/en/latest/howto/disable_cloud_init.html

(cherry picked from commit ff47664d8c646ebae72c40145ee1fd8098185de6)
2024-05-24 15:30:50 +01:00
Phil Roche
b12e271417 fix(HyperV desktop): Ensure removed hyperv dependencies are present in HyperV builds (LP: #2064280)
A change in 8fb21808 also removed many of the dependencies that the hyperv images require.
This removal has been restored in this commit by adding them expliciltly in the hyperv hook.

(cherry picked from commit c459e5e5af0371c0228bd4e5ddec57b8954d39df)
2024-05-24 15:30:45 +01:00
Phil Roche
fa351ac77b fix(HyperV desktop): Re-enable ability to build HyperV desktop images (LP: #2064280)
We have not built Hyperv desktop images since Jammy and with the re-introduction of HyperV for Noble we have encountered build issues caused by refactoring and removals of code assumed to be redundant but the HyperV desktop images were actually using these code paths.

In bbedffe6 we split the building of cloud images and non cloud to using an ddisk-image-uefi.binary and disk-image-uefi-non-cloud.binary respectively. In e38264ca there was a change which meant that any attempt to build hyperv images would result in incorrect disk size and incorrect disk label.

This has been fixed by ensuring that the ubuntu:desktop-preinstalled $PROJECT:$SUBPROJECT matches and sets the correct disk size and correct disk label.

A change in 76d79466 changed the logic of how the image size for amd64 images were being set. This overrode the sizes set for the desktop images incorrectly.

This commit ensures that any desktop image being created uses the correct image size.

(cherry picked from commit 48aed401949637ac314e59de996ccab19d5eefcd)
2024-05-24 15:30:38 +01:00
Łukasz 'sil2100' Zemczak
5e27db4e69 Merge branch 'ubuntu/master' of git+ssh://git.launchpad.net/livecd-rootfs into ubuntu-core-desktop-noble 2024-04-24 10:51:45 +01:00
Dan Bungert
9946962363 desktop: move udisks2-inhibit to service (LP: #2063192) 2024-04-23 09:57:57 -06:00
Łukasz 'sil2100' Zemczak
a8af6ce59e Rename the milk-v-mars SUBARCH to milkvmars 2024-04-23 15:22:36 +01:00
Łukasz 'sil2100' Zemczak
daf856277e Merge branch 'ubuntu/master' of git+ssh://git.launchpad.net/livecd-rootfs into ubuntu-core-desktop-noble 2024-04-23 11:22:04 +01:00
Łukasz 'sil2100' Zemczak
296d580564 Update the 24.04 models. 2024-04-22 13:45:06 +01:00
Julian Andres Klode
6b4c6fc422 Update wording for universe sources
As specified in US095, following discussions.
2024-04-22 11:40:41 +02:00
Heinrich Schuchardt
a3a51beeaf riscv: add pre-installed image for Milk-V Mars
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2024-04-21 18:05:41 +02:00
Łukasz 'sil2100' Zemczak
2c827660d7 Merge branch 'ubuntu/master' of git+ssh://git.launchpad.net/~arraybolt3/livecd-rootfs into ubuntu/master 2024-04-18 19:35:39 +02:00
Łukasz 'sil2100' Zemczak
d6443ce289 24.04 model assertion. 2024-04-18 18:58:17 +02:00
6617c4d779 Allow Multiverse packages in Kubuntu. 2024-04-18 11:42:50 -05:00
Łukasz 'sil2100' Zemczak
e575146fae Forward-port the ubuntu-core-desktop changes to noble. 2024-04-17 21:13:22 +02:00
Simon Poirier
b4028cf53c Re-enable disk-image-uefi for armhf. (LP:#2062024)
This reverts commit 4f51ff45 (fix: Remove UEFI booting armhf, 2024-03-12).
2024-04-17 10:46:36 -04:00
Steve Langasek
ef9f827922 Dedupe handling of catalog translations 2024-04-15 15:06:42 -07:00
Steve Langasek
f8660ee75e Move catalog handling into the common function 2024-04-15 15:06:40 -07:00
Steve Langasek
afd93b77bc Move seeded language handling into do_layered_desktop_image
This fixes a bug in Ubuntu Budgie which was actually failing to pick up the
English language seed
2024-04-15 15:06:20 -07:00
Steve Langasek
768f0e6bee Refactor task/package handling for new installer images
do_layered_desktop_image() is now the standard entry point for flavors using
ubuntu-desktop-bootstrap and handles minimal/standard/live layers in a
configurable and flavor-agnostic way to reduce code duplication.
2024-04-15 15:06:04 -07:00
Steve Langasek
92e6c54dc9 Invert check for whether to include casper since the "yes" list is now much shorter than the "no" list 2024-04-15 15:04:30 -07:00
Łukasz 'sil2100' Zemczak
ac9fd8fd4c Fix the UC24 builds: use --snap instead of --extra-snaps. 2024-04-11 10:45:34 +02:00
Steve Langasek
fa8046aab8 Drop use of 'laptop' for x13s as this is now migrated to generic. 2024-04-08 21:35:43 -07:00
Catherine Redfield
3087627ce9 feat(apparmor): Add policy:unconfined_restrictions feature to 6.8 kernel (LP: #2060558)
Failing CPC tests show that the preseeded apparmor features don't
include policy:unconfined_restrictions for the 6.8 kernel.  This
change adds the feature preseed with values based on a successfully
booted instance.

Fixes: LP: #2060558
2024-04-08 14:05:50 -06:00
Dan Bungert
ff3cedb0b7 budgie: remove add_snap of ubuntu-budgie-installer, ubuntu-desktop-bootstrap is used instead. 2024-04-08 13:49:38 -06:00
Łukasz 'sil2100' Zemczak
a907749a08 Add console-conf to UC24 extra snaps by default 2024-04-08 16:26:15 +02:00
Simon Quigley
7c9be14510 Ensure the proper hooks are copied for Ubuntu MATE (LP: #2058161). 2024-04-07 17:43:30 -05:00
Dan Bungert
12f5badcf8 Flavors: cloud-init needs to be present in Subiquity-based installers. 2024-04-01 19:35:58 -06:00
Dan Bungert
368f51bed8 config: show debootstrap.log 2024-04-01 17:45:19 -06:00
Steve Langasek
2ba029ab9d Drop dkms from the riscv64 lichee images.
This was added for licheerv-rtl8723ds-dkms which is now dropped from
the archive (LP: #2059151).
2024-03-28 11:43:56 -06:00
Erich Eickmeyer
fe6d785fa6 Add ubuntu-mate symlink for chroot_early 2024-03-28 11:36:06 -06:00
Łukasz 'sil2100' Zemczak
4476f60b9b Add support for building Ubuntu Core 24 images. 2024-03-28 12:11:06 +01:00
Steve Langasek
2bf710b4af Move from hwe-22.04 to hwe-24.04 throughout, hwe-22.04 is obsolete and to be dropped from the release pocket imminently. 2024-03-27 12:03:02 -07:00
Sebastien Bacher
a2ebc11be0 Rename the casper.gschema override to livecd-rootfs.override
to try to avoid conflicts with the override generated in casper
2024-03-22 11:59:46 +01:00
Dan Bungert
5ac0d924ce copy include.* directories for subiquity desktop install ISOs
ubuntu/include.* are the master location for these files.
Copy them over for projects with similar needs, while skipping ones that
are incorrect.

LP: #2055077
2024-03-18 20:05:24 -06:00
Erich Eickmeyer
10e718a019 Switch Ubuntu MATE to layered image
Ubuntu MATE is switching to a layered image in preparation to
use ubuntu-desktop-provision. Luckily, their seed structure is
already well-structured for layering, so this is easily done.
2024-03-18 12:48:39 -07:00
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