64 Commits

Author SHA1 Message Date
Łukasz 'sil2100' Zemczak
e1d51ec263 Adjust the PROJECT name in the live-server hooks for SUBARCH. 2022-06-10 17:53:21 +02:00
Łukasz 'sil2100' Zemczak
7410fc4a3e Additional changes were needed for the server-live hooks, since those were exiting early for SUBARCH images. 2022-06-10 16:46:10 +02:00
Michael Hudson-Doyle
f274748101 live-build/ubuntu-server/hooks/032-installer-squashfs.binary: be more careful in deleting snaps that snap-preseed has copied up into the live installer layer. (LP: #1952093) 2021-11-25 13:28:52 +13:00
Łukasz 'sil2100' Zemczak
e88f07a6e8 enable hwe variant 2021-01-26 15:46:11 +01:00
Dimitri John Ledkov
56a7169ebe
live-server: remove duplicate snaps, due to overlayfs vs snap-preseed.
(cherry picked from commit 6e6ab16bf268c038392e9f4aa7b8398a53af65d5)
2020-10-05 10:32:08 +01: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
Michael Hudson-Doyle
1e9fc65863 Use right lsb_release argument for HWE kernel name (-sc -> bionic, need -sr -> 18.04). 2018-12-17 13:49:01 +13:00
Michael Hudson-Doyle
460332296b remove cloud-initramfs-copymods before installing kernel 2018-12-13 11:23:15 +13:00
Michael Hudson-Doyle
7167e3718b add initramfs hook to record kernel metapackage & mount modules 2018-12-13 11:22:34 +13:00
Michael Hudson-Doyle
5565e3a3d8 add hook to create kernel/initrd/modules for ISO 2018-12-13 11:18:55 +13:00
Michael Hudson-Doyle
e3e2e5f9ff do not unmount the installer overlay in 032-installer-squashfs.binary
so that a new hook can create yet further overlays on top of it
2018-12-13 11:10:44 +13:00
Dimitri John Ledkov
93df6705a0 Revert "Do not mount result, on top of lowerdir, appears to fail in
disco." the actual problem is in live-build with merged-usr and
copying over chroot/binary includes.
2018-11-12 20:39:25 +00:00
Dimitri John Ledkov
1b424926db Do not mount result, on top of lowerdir, appears to fail in disco. 2018-11-08 14:54:20 +00:00
Dimitri John Ledkov
e24dccadcc mount_overlay only takes 3 args 2018-11-08 14:53:43 +00:00
Cody Shepherd
5bee1ade70 Ensure pre-seeded snaps are now published in the image manifests. 2018-10-22 10:21:50 -07:00
Dimitri John Ledkov
f32b6ed261 Clear maas role password 2018-04-19 14:52:39 +01:00
Dimitri John Ledkov
3ed266091c Ensure MAAS squashfsi are clean of passwords. LP: #1764991. 2018-04-19 13:29:33 +01:00
Michael Hudson-Doyle
8ece245153 In the live-server build, prevent casper from mounting any existing swap
partitions from drives we might later be installing to.
2018-03-15 20:26:00 +13:00
Dimitri John Ledkov
9df3a91e26 ubuntu-server: generate multi-lowerdir overlayfs for
maas-rack-controller, and full maas. To be used in subiquity for maas
install options.
2018-03-01 13:33:42 +00:00
Michael Hudson-Doyle
4407aaf1ae it is config/common, not config/binary, grr 2018-02-23 14:58:03 +13:00
Michael Hudson-Doyle
27eaa9328a source config/binary in 032-installer-squashfs.binary 2018-02-23 13:38:15 +13:00
Michael Hudson-Doyle
b163743456 call recreate_initramfs with the argument it needs 2018-02-23 09:41:50 +13:00
Michael Hudson-Doyle
416ef912ed make another possibly more generally useful function 2018-02-23 09:30:29 +13:00
Michael Hudson-Doyle
c85cae9bfe respond to some review feedback 2018-02-23 09:18:33 +13:00
Michael Hudson-Doyle
d46e397b24 merge trunk 2018-02-22 13:58:12 +13:00
Michael Hudson-Doyle
d1b26ce330 Override JobRunningTimeoutSec to 0s on the .device unit that
subiquity_config.mount depends on to avoid a 5s delay on switching to a
new VT when there is no device there (LP: #1750117)
2018-02-20 15:22:43 +13:00
Michael Hudson-Doyle
3ecbd2802e tweaks before review 2017-12-13 22:32:22 +13:00
Michael Hudson-Doyle
8c8b16b5e6 sigh 2017-12-13 19:27:37 +13:00
Michael Hudson-Doyle
0113b9aad7 self-review 2017-12-13 16:13:14 +13:00
Michael Hudson-Doyle
b913dcdf1c gen the initramfs with the right options and repack it with lzma 2017-12-13 15:42:37 +13:00