2155 Commits

Author SHA1 Message Date
Steve Langasek
a631afcb7f Unconditionally enable i386 in the chroot for Ubuntu Desktop; the new installer doesn't handle enabling this at install time, and late enablement also misses us some recommends. 2023-04-17 16:52:23 -07:00
Steve Langasek
6b40317404 Use the correct path for the loop device. 2023-04-17 16:11:50 -07:00
Steve Langasek
a130ee17c3 Call losetup -d properly. 2023-04-17 12:22:17 -07:00
Steve Langasek
5e4b2d3cc3 Use losetup instead of kpartx to set up loopback partitions
kpartx on riscv64 appears to be racy.  Rather than trying to debug these
fraught races somewhere between udev and libdevmapper, we can use losetup
which should be simpler and less error-prone.
2023-04-17 08:20:49 -07:00
Steve Langasek
4112488a44 Merge remote-tracking branch 'lool/add-tegra-liver-server' into ubuntu/master 2023-04-14 16:45:08 -07:00
Loïc Minier
9f3b345b06 Initial support for NVIDIA Tegra
live-build/auto/config:
- for Ubuntu Server live images and the arm64+tegra full arch, build a
  tegra variant with linux-nvidia-tegra as the flavor and
  linux-nvidia-tegra as the kernel meta-package
- default to nvidia-$SUBARCH as the kernel flavor for all images using
  arm64+tegra as full arch

hooks/03-kernel-metapkg.chroot_early:
- use linux-nvidia-tegra as kernel meta-package for the nvidia-tegra
  flavor
2023-04-14 23:21:43 +00:00
Dave Jones
b6f1f7b7b3 Remove redundant creation of oem user 2023-04-14 11:18:20 +01:00
Łukasz 'sil2100' Zemczak
ac8f964b19 Fix for netboot tarballs generation. 2023-04-13 19:41:16 +02:00
Łukasz 'sil2100' Zemczak
97f3799289 Do not reset seeds for canary. 2023-04-13 14:48:09 +02:00
Łukasz 'sil2100' Zemczak
735db252ed For canary images, actually consider moving the seed listed snaps from both minimal and standard layers to the classic layer. 2023-04-13 11:47:47 +02:00
Łukasz 'sil2100' Zemczak
b8649c321f Add default values to PASS in canary hooks. 2023-04-13 09:45:04 +02:00
Steve Langasek
a13f729927 Make PROPOSED=1 builds work with NotAutomatic (lunar and later). LP: #2016022. 2023-04-12 10:40:53 -07:00
Steve Langasek
9fc5d2ce13 Update infinite_scream URL to mastodon 2023-04-12 09:38:00 -07:00
John Chittum
c0af2ca443
fix: riscv64 efi conditional
missing a && between icicle and visionfive, led to /boot/efi still being
in place, and grub-install running instead of exiting the func.
fixes LP:2015750
2023-04-10 07:33:08 -05:00
Chad Smith
9a82720f1c cloud-init: prefer netplan to handle all network manager config
Cloud-init cannot write directly to
/etc/NetworkManager/system-connections because subiquity may
need to emit config to /etc/netplan/00-installer.yaml and call
netplan apply for autoinstall.network use-cases.

When cloud-init's config is written directly to
/etc/NetworkManager, neither netplan nor subiquity has knowledge of
this config and this results in namespace collisions in NetworkManager
due to `netplan-` named connections and `cloud-init` connection ids
fighting over which config own a given interface name.

Deleting this config overlay allows subiquity to manage all network
setup when it needs to with netplan directly.

Subiquity already has logic to rename any unwanted netplan
configuration when it intends to write cfg and run netplan apply[1].
This should allow subiquity full control of network config when needed.

[1] https://github.com/canonical/subiquity/blob/
    92ac6544cdfedfd332d8cd94dbcfad0aab994575/subiquitycore/
        controllers/network.py#L267

LP: #2015605
2023-04-07 17:09:11 -06:00
Łukasz 'sil2100' Zemczak
1dd00d9795 Add the includes as well. 2023-04-06 21:42:12 +02:00
Łukasz 'sil2100' Zemczak
3ec8601feb Ok, early hooks do not have the environment. Just case on canary being the only one using hooks for now. 2023-04-06 19:25:44 +02:00
Łukasz 'sil2100' Zemczak
3752ea7cf1 Add -eu to the early hook as well. 2023-04-06 16:47:59 +02:00
Łukasz 'sil2100' Zemczak
edc6a7d576 SUBPROJECT is not defined by default in chroot_early hooks. 2023-04-06 16:45:58 +02:00
Łukasz 'sil2100' Zemczak
6a2cb2be27 Fix using the wrong branch name for ubuntu-image. 2023-04-06 16:05:32 +02:00
Łukasz 'sil2100' Zemczak
1fe8f8f178 Another missed change - pass IMAGEFORMAT further down. 2023-04-06 12:40:51 +02:00
Łukasz 'sil2100' Zemczak
59f12263ed Some missing changes for image definition handling. 2023-04-06 10:05:40 +02:00
Łukasz 'sil2100' Zemczak
4997edb190 Use never model assertion. 2023-04-06 09:21:27 +02:00
Łukasz 'sil2100' Zemczak
959011d5fc Some fixes per review - thanks Dan! 2023-04-06 09:19:29 +02:00
Łukasz 'sil2100' Zemczak
7673c4f98f For now, don't build the base images with ubuntu-image. 2023-04-05 22:20:46 +02:00
Łukasz 'sil2100' Zemczak
dc89df7ee2 Merge branch 'ubuntu/master' of git+ssh://git.launchpad.net/livecd-rootfs into ui-by-default 2023-04-05 22:20:10 +02:00
Łukasz 'sil2100' Zemczak
2508d5add3 Use ubuntu-image from a snap (candidate for now). Only build raspi images with ubuntu-image 3.0 for now. 2023-04-05 22:14:30 +02:00
Łukasz 'sil2100' Zemczak
4e49b4df60 Merge branch 'ubuntu/master' of git+ssh://git.launchpad.net/livecd-rootfs into canary-build 2023-04-05 20:50:27 +02:00
Łukasz 'sil2100' Zemczak
11a583d619 Initial implementation of canary image builds. 2023-04-05 20:49:16 +02:00
Heinrich Schuchardt
d42c7c5989 Add image for StarFive VisionFive 2
SUBARCH=visionfive2 is used to build images for the StarFive VisionFive 2
boards. For the device-tree we assume board revision 1.3B.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-04-05 15:08:04 +02:00
Steve Langasek
e1090424bb Update URL to point to ubuntu-archive-team.ubuntu.com. 2023-04-03 13:15:48 -07:00
William Wilson
a52543341c Only set up oem-config if the user doesn't already exist 2023-03-30 09:14:46 -04:00
Dave Jones
1f497fe04f Get rid of growfs option in fstab 2023-03-28 16:00:38 +01:00
Dave Jones
6a804b7b2c Don't add 01-network-manager-all.yaml to preinstalled desktop images 2023-03-28 14:55:33 +01:00
Dave Jones
a312ab11a7 Remove the mkswap and swapfile units
These will be provided by the ubuntu-raspi-settings-desktop in future
2023-03-28 14:38:22 +01:00
Steve Langasek
45335a719b Merge remote-tracking branch 'jchittum/lunar-revert-ipc-removal' into ubuntu/master 2023-03-27 12:10:58 -07:00
Chad Smith
fba5be17fd cloud-init.service: systemd ordering after after NetworkManager
Autoinstall directives can be provided on the grub cmdline to
cloud-init via kernel parameters like the following:
 autoinstall 'ds=nocloud-net;s=http://somedomain/'

In order to support DNS resolution for NoCloud datasource at
datasource discovery time, cloud-init.service needs to be
orderered after NetworkManager.service and
NetworkManager-wait-online.service
which will have brought up applicable NICs.

Since NetworkManager is After=dbus.service, the cloud-init.service
avoids systemd ordering cycles by also dropping
Before=sysinit.target when it adds, After=NetworkManager.service and
After=NetworkManager-wait-online.service

Add this file overlay for /lib/systemd/system/cloud-init.service
because systemd drop-in files can only add constraints and not
drop prexisting service constraints.

Also add an AUTOMATION_HEADER comment to any generated files to
add discoverability in the event of future bugs/concerns.

LP: #2008952
2023-03-23 17:05:30 -06:00
Łukasz 'sil2100' Zemczak
279b9473d8 Add zstd dep for mini-iso + minor fixes to get it building on livefs builders. 2023-03-23 10:57:26 +01:00
John Chittum
20bb504bb3
Revert "fix: remove ipc from apparmor features in 6.1"
This reverts commit 075e7a0eb4d59625f265f05dc44ceb7d9f52fdb4.
2023-03-21 14:03:24 -05:00
Dan Bungert
2cec504334 zstd is ok for reading the journal from core22 2023-03-20 15:00:50 -06:00
Dan Bungert
b1db77eaa2 no-compact systemd conf: journal backwards compat 2023-03-20 15:00:50 -06:00
Łukasz 'sil2100' Zemczak
19ef20f0bb Fix typo. 2023-03-17 12:35:49 +01:00
Łukasz 'sil2100' Zemczak
85f93d836a Add intel-iot server image support to devel. 2023-03-17 12:15:05 +01:00
Łukasz 'sil2100' Zemczak
3ad215e3f1 Forward port some intel-iot changes. 2023-03-17 11:54:46 +01:00
Łukasz 'sil2100' Zemczak
c335e6ed8b Merge branch 'cloud-init-and-u-d-i' of git+ssh://git.launchpad.net/~dbungert/livecd-rootfs into ubuntu/master 2023-03-10 12:21:22 +01:00
Dimitri John Ledkov
173d22dce6
Merge branch 'lunar-fix-apparmor-for-6.1' of git+ssh://git.launchpad.net/~jchittum/livecd-rootfs into ubuntu/master 2023-03-09 18:09:57 +00:00
John Chittum
075e7a0eb4
fix: remove ipc from apparmor features in 6.1
ipc was dropped as an apparmor feature. checked by grabbing the latest
lunar VM, installing the latest kernel, doing a reboot, and comparing
directories and files. compared all files and the only diff is the ipc
posix_mqueue
2023-03-06 14:04:27 -06:00
Dan Bungert
0d61fce909 Add ubuntu-mini-iso project 2023-03-06 08:21:29 -07:00
Łukasz 'sil2100' Zemczak
912e15c7fc Explicitly define the kernel flavor for ubuntucinnamon. 2023-03-06 13:06:29 +01:00
Łukasz 'sil2100' Zemczak
73f0355304 cinnamon: don't use the live task as well. 2023-03-06 11:43:47 +01:00