88 Commits

Author SHA1 Message Date
Loïc Minier
a81a1c20c7 Add support for arm64+tegra-jetson flavor. (LP: #2091392) 2024-12-13 17:54:01 +00:00
Utkarsh Gupta
c8ee3dddba 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.

(cherry picked from commit 7535bf7bc729b52d28a0a5a44b3aa8362ca9397d)
2024-08-21 12:06:39 +05:30
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
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
Ł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
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
Ł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
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
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
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
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
b677bdbcc6 Remove 68-del-part-nodes.rules from installer squashfs to work around it breaking curtin. (LP: #1893818) 2020-10-15 08:33:23 +13:00
Steve Langasek
37f5f8881f Revert "Revert "Remove fstab from squashfs images""
This reverts commit d9de2701897608710ed97e206ee29f28af8cc82a.
2020-08-27 12:17:22 -07:00
Steve Langasek
d9de270189 Revert "Remove fstab from squashfs images"
This reverts commit f96e874ed12e7e080111d27aa14c4f97aa6bec87.
2020-08-12 11:35:06 -07:00
Dimitri John Ledkov
6e6ab16bf2
live-server: remove duplicate snaps, due to overlayfs vs snap-preseed. 2020-07-17 21:17:34 +01:00
Balint Reczey
f96e874ed1 Remove fstab from squashfs images
The default fstab is not valid, since squashfs does not support labels.

LP: #1877078
2020-06-16 22:14:59 +02:00
Dimitri John Ledkov
a21a67ab52 Print subiquity ssh login details on s390x line based consoles. 2020-04-16 23:54:27 +01:00
Michael Hudson-Doyle
0dc12a1122 remove stuff for copying autoinstall files around 2020-03-03 15:08:52 +01:00
Michael Hudson-Doyle
f6e5da24f9 enable cloud-init in live session on all architectures 2020-03-03 15:08:45 +01:00
Dimitri John Ledkov
d7045b2e09 Fixup subiquity:
- drop ds-identify policy, not needed with improved cloud config
  - drop disabling network, doesn't work with ip=
  - fixup setting up the INSTALLER_ROOT mountpoint
2020-02-10 23:50:03 +00:00
Dimitri John Ledkov
3b1047fbc2 Configure a better nocloud datasource for subiquity cloud-init. 2020-02-07 22:11:54 +00:00
Dimitri John Ledkov
e062389eb9 * On s390x subiquity:
- enable cloud-init
  - make cloud-init handle the default/baked in networking configuration
  - install and enable openssh-server for the installation only
  - provide cloud.cfg that generates random installer user password
  - disable subiquity on sclp_line0 line based console
2020-01-29 14:16:00 +00:00
Michael Hudson-Doyle
1be2ba1779 oops 2019-11-22 13:42:22 +13:00
Michael Hudson-Doyle
547eb7bda8 copy /autoinstall.yaml in initrd to /run/initrd-autoinstall.yaml if present 2019-11-22 13:42:22 +13:00
Michael Hudson-Doyle
377e7b4ddd mount a filesystem with label autoinstall at /autoinstall for live-server
This is one of the ways an autoinstall file can be provided.
2019-11-22 13:42:22 +13:00
Dimitri John Ledkov
f918cd5eb1 Subiquity: install linux-firmware in the installer layer, to make firmware blobs available in the live session. LP: #1847835 2019-10-13 20:53:04 +01:00
Dimitri John Ledkov
4c534bc6be subiquity: Use LazyUnmount=yes on memorymapped /usr/lib/modules.
Subiquity images mount /usr/lib/modules from a squashfs, which systemd
tries to unmount on shutdown, whilst they are still being in use. As
systemd-udevd kmod built-in's libkmod has modules.* files
memorymapped. This produces an warning on shutdown, flooding the
screen with messages as systemd switches to a more verbose
output. Specify LazyUnmount=yes on that mount, such that unmount call
succeeds without flooding the shutdown log.
2019-10-08 19:04:20 +01:00
Dimitri John Ledkov
095c8f4696 Install s390-tools-zkey into the installer layer for zkey support in subiquity. 2019-06-20 23:26:13 +01:00
Dimitri John Ledkov
9d7b6a8e7e Drop maas hook from server-live. 2019-05-16 13:09:25 +02:00
Dimitri John Ledkov
aa58b069ed Set executable bit on kernel-bits.binary 2019-05-16 13:05:56 +02:00
Dimitri John Ledkov
ba49d6db5f Use snap-tool to seed subiquity snap. 2019-05-16 13:03:30 +02:00
Dimitri John Ledkov
d13964805e
Fix ubuntu-server-live images to generate initrd with casper UUID. Whilst configs are sources, the variables are not exported into the environment by default. Thus when casper hook is executed, it had no idea that it should generate UUID. 2019-04-25 17:07:02 +01:00
Dimitri John Ledkov
1ab438750d
Revert "subiquity: fix name of mdoules.squashfs to mount"
This reverts commit 98e0b1031d931cbe87f3744613f05557e3bc9acf.
2019-03-20 00:57:41 +00:00
Dimitri John Ledkov
98e0b1031d
subiquity: fix name of mdoules.squashfs to mount
ubuntu-cdimage/debian-cd/tools/add_live_filesystem helpfully adds a
'filesystem.' prefix to the squashfs, hence the name of the file
didn't match what's on disk.
2019-03-18 14:18:27 +00:00
Dimitri John Ledkov
37d9b77b95
subiquity: make subiqutiy_config.mount optional
Remove wants from local-fs.target, add wants from the uuid device instead.

Tested by applying these changes from pre-pivot-root by modifying
/root files in place whilst booting with break=bottom.
2019-02-18 10:26:08 +01:00
Michael Hudson-Doyle
625ace8483 Do not include curtin in the live-server installer.squashfs as the version of subiquity that includes it in the snap has now been released to stable. 2018-12-18 15:18:04 +13:00
Michael Hudson-Doyle
1b93df3ae8 A few simple tweaks to reduce size of live servers installer.squashfs
- Do not run apt-get update (which can bring in package lists if we are
    unlikely wrt publisher schedules).
  - Run apt-get clean to clear out downloaded debs of curtin/casper and
    dependencies.
  - Do not install user-setup.
  - Use the core snap from the base filesystem if present.
2018-12-17 13:51:58 +13:00