156 Commits

Author SHA1 Message Date
Dan Bungert
dbfe42ad25 live-server: omit kernel-meta-package file 2024-10-16 12:40:44 -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
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
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
Utkarsh Gupta
7535bf7bc7 Use packaged unminimize in the ubuntu-server images
unminimize is currently present at /usr/local/sbin/unminimize,
which is spit out by livecd-rootfs currently. We'd like to switch
that to use the packaged unminimize, which will be at
/usr/bin/unminimize instead.
2024-06-19 21:51:50 +05:30
Philip Roche
f574fc8200
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.
2024-06-19 15:47:18 +01:00
Philip Roche
46c19dfa91 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.
2024-05-23 14:13:30 +01:00
Łukasz 'sil2100' Zemczak
ace66cbb52 Attempt building netboot tarballs for largemem arm64 server images. 2024-02-20 17:05:10 +01:00
Łukasz 'sil2100' Zemczak
54100874a4 Merge branch 'noble-64k' of git+ssh://git.launchpad.net/livecd-rootfs into ubuntu/master 2024-01-25 11:59:25 +01: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
Łukasz 'sil2100' Zemczak
8c4ebae358 Add a largemem subarch that ships a 64k kernel variant by default. 2024-01-22 15:00:58 +01:00
Steve Langasek
6be1e868f0 Drop live-build/ubuntu-server/includes.chroot.ubuntu-server-minimal/etc/hosts
/etc/hosts in an installed system comes from one of several places:
- the netbase package which ships a sane default
- scripts/casper-bottom/18hostname, which is mostly identical to the netbase
  one but sets a hostname to the flavor name
- the installer which writes one to the target fs
- chroot includes in livecd-rootfs

A chroot include is only needed for images that don't include netbase (so
don't inherit from the minimal seed), don't boot casper, and don't run an
installer.

NONE of these conditions are true for the ubuntu-server live image.  And in
addition, the /etc/hosts here differs from the others.

So, remove it.
2023-09-06 17:55:43 -07:00
Michael Hudson-Doyle
4f6f63dd6b Remove additional dependencies from subiquity units as they are now interfering with the boot process. (LP: #2028862) 2023-08-08 13:02:08 +12:00
Loïc Minier
b6c9a4d711 Add support for tegra-igx (similar to tegra) 2023-06-28 09:21:03 +00: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
Łukasz 'sil2100' Zemczak
ac8f964b19 Fix for netboot tarballs generation. 2023-04-13 19:41:16 +02: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
85f93d836a Add intel-iot server image support to devel. 2023-03-17 12:15:05 +01:00
Steve Langasek
4dbeba4ba3 Address the fact that debootstrap doesn't follow Recommends and as a result we're missing several Recommends that should be installed by default and are on upgrades but not on new installs. This is not applied to minimized images, which don't follow Recommends; but does get separately applied to the ubuntu-server full squashfs. 2023-02-24 17:47:51 -08:00
Michael Hudson-Doyle
13ed256581 Fix some issues with the netboot tarballs:
* Fix some issues with the netboot tarballs:
  - Include the signed shim (oops).
  - Make the kernel path on disk and in the bootloader config match (more
    oops).
  - Make paths more architecture dependent as the code in grubnetXXX.efi to
    probe a platform dependent path first doesn't work.
2022-07-28 12:00:35 +12:00
Michael Hudson-Doyle
364e561308 Use the new iso-url= parameter in the bootloader configs in the netboot tarballs. 2022-06-30 14:36:47 +12:00
Michael Hudson-Doyle
fb589ecf00 Produce a tarball of artifacts for netbooting during live-server build. 2022-05-26 14:33:59 +12:00
Michael Hudson-Doyle
b2094f0319 Disable compression and "hash table hardening" for journald in the live installer environment as these features make the journal unreadable using the systemd libraries from 20.04 that are included in the subiquity snap. 2022-02-02 13:51:20 +13:00
Michael Hudson-Doyle
391439d44c Record information about locale support (in particular, whether to install langpacks and which languages have pre-baked squashfses). 2021-09-27 11:06:01 +13:00
Michael Hudson-Doyle
543c40b347 Merge branch 'source-catalog-2' into ubuntu/master 2021-08-18 11:10:01 +12:00
Michael Hudson-Doyle
021c8e063c better minimal ubuntu server description 2021-08-18 08:15:14 +12:00
Michael Hudson-Doyle
cda8c920dd create source catalogs for live server install sources 2021-08-17 16:07:07 +12:00
Michael Hudson-Doyle
b341c81ff3 do the mounting in an initrd script rather than systemd units 2021-08-03 16:36:02 +12:00
Michael Hudson-Doyle
5fda0bb2aa apply dpkg minimizations to minimal layer, and undo them for full layer 2021-08-03 16:36:02 +12:00
Michael Hudson-Doyle
5232f2f8cc fix /media/filesystem mount 2021-08-03 16:36:02 +12:00
Michael Hudson-Doyle
d11c71a686 add a minimal server layer under the full server layer 2021-08-03 16:36:00 +12:00
Michael Hudson-Doyle
bb0bba1793 address review comments 2021-07-08 11:50:22 +12:00
Michael Hudson-Doyle
fc890b15e7 adjust hooks for move of live-server to layers 2021-07-07 19:31:53 +12:00
Michael Hudson-Doyle
e06046aaa0 move includes around for move of live-server to layers 2021-07-07 19:31:53 +12:00
Michael Hudson-Doyle
093fbb1404 Merge branch 'more-subiquity-serial-pain' into ubuntu/master 2021-07-01 09:46:58 +12:00
Michael Hudson-Doyle
48c3a11a70 Make sure the process that prints SSH connection info on s390x has its output connected to the console. (LP: #1933523) 2021-07-01 09:31:31 +12:00
Dan Bungert
5b0825a297 Remove custom final_message
At this point all of the custom final_message is now obsolete.
Remove it, letting us instead use the default final_message.
Leave a note about the above.
2021-06-29 16:43:19 -06:00
Dan Bungert
bfce7c126f Remove reference to password for ssh usage
This reference to a temporary password being logged for the installer
user for SSH usage is obsolete.
2021-06-28 17:02:10 -06:00
Michael Hudson-Doyle
9a983305ee Remove assumption in 032-installer-squashfs.binary that all core snaps needed for subiquity are already in the filesystem layer. (LP: #1933352) 2021-06-24 11:49:21 +12:00
Michael Hudson-Doyle
e1e992d295 Fix overriding of ExecStart in serial-getty@sclp_line0.service.d/subiquity-serial.conf. 2021-06-19 11:44:04 +12:00
Michael Hudson-Doyle
7cd7f1e0bf Merge branch 'ubuntu/master' into live-server-serial-argh 2021-05-06 10:28:28 +12:00
Michael Hudson-Doyle
c64c81d7fe remove the workaround for bug #1893818
subiquity now contains a version of curtin that can cope with the
partition nodes for a multipathed disk going away
2021-05-05 13:58:56 +12:00
Michael Hudson-Doyle
c1cb61a8f6 just plain mask getty@tty1, ExecStart is a list 2021-04-21 14:54:03 +12:00
Michael Hudson-Doyle
7ba371b315 Simplify how serial-getty@.service is customized in the live server installer environment. 2021-04-21 11:38:41 +12:00
Michael Hudson-Doyle
e28938b482 Do not have cloud-init set the installer user's password to something random during boot, as cloud-init now hides the value it was set to much better. Instead, subiquity will reset the password itself. 2021-03-24 14:09:12 +13:00
Michael Hudson-Doyle
d5bc59f2fb Use the correct config keys in suppressing cloud-init output during boot of live server ISO. 2021-03-10 12:03:56 +13:00
Michael Hudson-Doyle
8ab15a145d set new cloud-init option to suppress final bit of output during boot 2021-02-23 11:06:19 +13:00
Michael Hudson-Doyle
52c8985454 Suppress cloud-init output during boot of live server ISO. 2021-02-18 13:08:09 +13:00