82 Commits

Author SHA1 Message Date
Dimitri John Ledkov
67b26519bc Drop trying to mount removed maas squashfs. 2019-06-05 00:03:03 +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
036d7d2949
Make serial-subiquity@ use the same codepath as tty1 subiquity.
Such that subiquity runs in the correct environment.
Depends on: https://github.com/CanonicalLtd/subiquity/pull/428
2019-03-21 12:27:15 +00: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
Balint Reczey
73409ddb77 Add .keep files to preserve empty directories 2018-12-12 15:36:25 +01:00
Dimitri John Ledkov
75b9ab1664 Move overlay include.binary /lib to /usr/lib. 2018-11-13 11:25:52 +00: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
Michael Hudson-Doyle
ae4a760edb Fix live-server journald config snippet to actually disable journald rate
limiting.
2018-08-28 10:55:19 +12:00
Michael Hudson-Doyle
c9aaddd56a Disable journald rate limiting in the live-server live session.
(LP: #1776891)
2018-06-15 14:36:24 +12:00
Michael Hudson-Doyle
4bee7b1898 remove "optional: true" from 00-installer-config.yaml 2018-05-22 11:42:39 +12:00
Michael Hudson-Doyle
eca9613bf3 Symlink systemd-networkd-wait-online to /bin/true in the live installer
live session to avoid depending on buggy systemd behaviour.
2018-04-30 20:01:54 +12: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
Dimitri John Ledkov
466607c590 In subiquity image, mount additional squashfs in /media. 2018-04-11 14:20:18 +02:00
Dimitri John Ledkov
8d5af150cd Make subiquity installer boot quicker, by making dhcp interfaces
optional, such that wait-online is not blocking bringing up the
installer UI.
2018-04-03 14:56:34 +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
Michael Hudson-Doyle
a5a4f4e0d8 * Rename the directory containing the systemd override file for subiquity to
the correct name :/
* Add Environment=SNAP_REEXEC=0 to the above override file.
* Remove the snap.subiquity.started overrides, that service is long gone.
2018-03-15 13:22:22 +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
b01a9b0d7a leave getty@tty1 in a state where it can be re-enabled 2018-02-13 14:53:10 +13:00
Michael Hudson-Doyle
62a6e6270f shuffle subiquity service definition to a mix of a snapd-generated service file (not in this branch) and an overlay (in this branch) 2018-02-09 15:08:51 +13:00
Michael Hudson-Doyle
a7f8044a85 Disable the snapd.refresh.timer in the live server session. 2018-02-08 13:43:36 +13:00
Michael Hudson-Doyle
6ca49ecf0f remove some commented out gunk from .service files 2018-01-31 21:41:32 +13:00
Michael Hudson-Doyle
ec1f465e2c fix path in serial-subiquity@.service 2018-01-16 13:14:46 +13:00
Michael Hudson-Doyle
2ebe4ec60d run subiquity on the serial console 2018-01-15 14:56:49 +13:00
Michael Hudson-Doyle
7c1c7a80c2 enable networkd for live-server systems
the logic for doing this is the same as why it is done for cloud-images, for which
see http://bazaar.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk/revision/1520

I think this behaviour is a bug in cloud-init (see lp:#1737630) but this is a good
workaround in the mean time
2017-12-21 11:00:22 +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