60 Commits

Author SHA1 Message Date
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
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
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
Dimitri John Ledkov
a21a67ab52 Print subiquity ssh login details on s390x line based consoles. 2020-04-16 23:54:27 +01:00
Dimitri John Ledkov
0415e42026 server: networkd applies the first sorted matching network file, thus prefix 'all' fallback networks with 'zz-'. 2020-04-03 12:59:05 +01:00
Michael Hudson-Doyle
7f09a42d85 Stop trying to extract autoinstall config during boot, subiquity will do it instead. 2020-03-10 10:42:32 +13:00
Michael Hudson-Doyle
6e68a3f13c Do not start subiquity until cloud-final and snapd.seeded have completed. 2020-03-06 13:38:52 +01:00
Michael Hudson-Doyle
49e550fb9e Fix autoinstall-extracting runcmd in the case no user-data is passed. 2020-03-05 15:36:19 +01:00
Michael Hudson-Doyle
187fd01c37 re-add scripts-user to cloud_final_modules 2020-03-04 09:24:18 +01:00
Michael Hudson-Doyle
c969c8e4b9 add runcmd to copy autoinstall from user-data to /autoinstall.yaml 2020-03-03 15:08:52 +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
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
Steve Langasek
796a89a3c0 Remove dangling symlink /usr/lib/systemd/system/local-fs.target.wants/media-region.lower.mount. It's unclear why this has just started causing build failures, but the symlink should have been removed in 2.592 with the rest of the MAAS stuff. 2019-06-15 11:09:45 -07:00
Dimitri John Ledkov
67b26519bc Drop trying to mount removed maas squashfs. 2019-06-05 00:03:03 +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
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
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
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
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
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
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
e0809e31f6 Automount a partition of fixed UUID for giving subiquity canned answers. 2017-11-17 15:08:15 +13:00
Michael Hudson-Doyle
1a99680334 Remove snap.subiquity.started from subiquity's After=/Requires= as it
does not fix the race condition they were intended to address and causes
subiquity to be killed when snapd refreshes subiquity (LP: #1724411)
2017-10-18 13:26:08 +13:00
Steve Langasek
bea8a0696e snap.subiquity.started.service must be RemainAfterExit=yes to satisfy
the service dependencies.
2017-10-12 09:23:44 -04:00
Steve Langasek
f58957acd6 Add the SNAP_REEXEC=0 enviroment to the subiquity service as well. 2017-10-12 00:32:44 -04:00
Steve Langasek
9f040f0481 Fix wrong variable name in systemd unit snippets. 2017-10-11 18:24:19 -04:00
Steve Langasek
857f1984c9 export SNAP_REEXEC=0 to our snappy systemd units in the livefs overlay,
to work around apparmor not working reliably against aufs.
2017-10-11 12:46:10 -04:00
Michael Hudson-Doyle
c9128a31e3 add snap.subiquity.started.service to subiquity.service's Requires= 2017-10-09 15:07:56 +13:00