Commit Graph

3812 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 53d06961cc append, do not overwrite logs
The log file names have pids in now, but when subiquity re-execs itself
to fake a snap refresh the pid doesn't change. Having the pre "refresh"
logs get overwritten does not help anything and is sometimes very
annoying.
2020-12-18 12:18:40 +13:00
Michael Hudson-Doyle 2bc274eda0
Merge pull request #864 from mwhudson/dasd-rework-2
fixes for FBA, unformatted, and passed-via virtio dasds
2020-12-17 09:10:06 +13:00
Michael Hudson-Doyle 33bdc89f35 add a test of vendor globbing, improve other tests a bit 2020-12-16 15:39:44 +13:00
Michael Hudson-Doyle 187b68a4ac
Merge pull request #868 from mwhudson/answers-races
tidy up answers handling a bit and fix a race
2020-12-16 12:56:43 +13:00
Michael Hudson-Doyle 50328edf7f actually set up dasd object correctly :/ 2020-12-16 10:24:27 +13:00
Michael Hudson-Doyle 74732158f3 calculate the capacity of an unformatted dasd by hand 2020-12-16 10:24:27 +13:00
Michael Hudson-Doyle 68254bb23c have ptable_for_new_partition return msdos for FBA dasd and vtoc for all others
this has the side effect that dasds passed via virtio get vtoc partition tables
2020-12-16 10:24:27 +13:00
Michael Hudson-Doyle a8c0c5bebd update curtin and probert branches to commits that contain dasd goodness 2020-12-16 10:24:27 +13:00
Michael Hudson-Doyle 007dd3e5ef tidy up answers handling a bit and fix a race 2020-12-16 10:21:32 +13:00
Michael Hudson-Doyle 43601b8d79
Merge pull request #865 from mwhudson/stop-probing-when-filesystem-configured
stop listening to udev events when the filesystem gets configured
2020-12-15 23:47:00 +13:00
Michael Hudson-Doyle ac6c84a78b check udev data directly when processing match: specs
also allow matching on ID_VENDOR
2020-12-09 11:39:55 +13:00
Michael Hudson-Doyle c302c63d08
Merge pull request #866 from mwhudson/cloud-init-wait-server
do not wait forever for cloud-init
2020-12-09 10:27:21 +13:00
Michael Hudson-Doyle 32dbf28767 only wait 10 minutes for cloud-init status --wait to complete, not forever
and show a message to the user when this happens
2020-12-08 21:43:38 +13:00
Michael Hudson-Doyle bbcf050205 move waiting for cloud-init to server, where it makes sense 2020-12-08 21:05:36 +13:00
Michael Hudson-Doyle 0f23e61c59 stop listening to udev events when the filesystem gets configured
Otherwise subiquity kicks off probes when there are the inevitable block
device changes during the installation, which is at best useless but
seems to occasionally cause install failures too.
2020-12-08 12:37:32 +13:00
Michael Hudson-Doyle a8b9a42c21
Merge pull request #863 from MarcusTomlinson/main
Ignore .subiquity directory
2020-11-11 09:49:37 +13:00
Marcus Tomlinson 30089ba86a Ignore .subiquity directory 2020-11-10 17:48:17 +00:00
Dimitri John Ledkov f958015e2c
Merge pull request #855 from mwhudson/lp-1887669
have dependencies/reverse_dependencies consider the relationship betw…
2020-11-09 16:26:37 +00:00
Dimitri John Ledkov 0992e54fb5
Merge pull request #862 from MarcusTomlinson/main
Fix make install_deps and make unit/check
2020-11-09 16:25:54 +00:00
Dimitri John Ledkov 997235886d
Merge pull request #861 from mwhudson/fix-console_conf
trivial fixes for console_conf breakage
2020-11-09 16:22:08 +00:00
Marcus Tomlinson 927c324e0a Fix make install_deps and make unit/check 2020-11-09 12:40:39 +00:00
Michael Hudson-Doyle 00cfee002f trivial fixes for console_conf breakage 2020-11-06 09:54:30 +13:00
Michael Hudson-Doyle 7381df63d5
Merge pull request #859 from mwhudson/lp-1896497
use -report_el_torito as_mkisofs option of xorriso to find command to repack ISO
2020-11-04 15:30:26 +13:00
Michael Hudson-Doyle e42aef6aa8
Merge pull request #854 from mwhudson/client-server-6
fully implement client server model
2020-11-04 15:30:17 +13:00
Michael Hudson-Doyle 6fe600987c pin yarl to 1.5.1 when building the snap too 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle bc81cee393 write some documentation 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 449ad839aa update integration tests 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 303c0d75d6 move reboot controller (the last one!) to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 4367f8f97c move snaplist controller to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 4ab676d984 move ssh controller to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle bd69f2a746 move identity controller to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 4adae88563 move filesystem controller to new world
this cheats a bit and has an instance of FilesystemModel in both the server and the client
2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 50896cc214 add second showing of refresh screen 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 6609114201 move mirror controller to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle c264884c0c move proxy controller to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 7f41803418 move network controller to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle e9071a00ca move zdev controller to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 45a85c554e move keyboard controller to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle aac00dad6c move refresh controller to new world 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 7faa1634ff move controllers with no api presence to server 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 3367b41cf1 split welcome controller into locale (server) and welcome (client) 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 3c30e14313 split installprogress controller into install (server) and progress (client) 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle 92252f8119 split subiquity.controller into client and server versions 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle aad036d925 split subiquity.core into subiquity.client.client and subiquity.server.server 2020-11-04 10:57:22 +13:00
Michael Hudson-Doyle d7a070962b fix shell quoting 2020-11-04 09:30:52 +13:00
Dimitri John Ledkov a70d301cfd
Merge pull request #858 from anonymouse64/feature/uc-snap-routine-console-conf-start
bin/console-conf-wrapper: start snapd console-conf routine after user interacts
2020-11-03 10:31:42 +00:00
Ian Johnson ab27c235b0
bin/console-conf-wrapper: only run if available
Otherwise on a system without support for `snap routine console-conf-start`, console-conf will never actually run. 

Thanks to @xnox for the suggestion.

Co-authored-by: Dimitri John Ledkov <19779+xnox@users.noreply.github.com>
2020-11-02 09:40:22 -06:00
Michael Hudson-Doyle 8987ab792c use -report_el_torito as_mkisofs option of xorriso to find command to repack ISO 2020-10-28 16:32:24 +13:00
Ian Johnson 7cc528ac6d bin/console-conf-wrapper: start snapd console-conf routine after user interacts
After the user has pressed enter to being using console-conf, we should invoke
the snapd routine for console-conf, which currently does the following:
* Unconditionally delays refreshes for 20 minutes from when first invoked.
* Blocks waiting for all pending refreshes to complete, including if those
  involve a reboot.

This is the first step towards a more integrated user story where console-conf
is a part of the first-boot process, and at least will minimize user confusion
where console-conf proceeds asking about network configuration and then just
hangs when snapd starts a refresh as soon as network is available.

The snap routine console-conf-start command was merged to snapd with 
https://github.com/snapcore/snapd/pull/9418 and will be first available in snapd
2.48.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-10-27 15:09:49 -05:00
Michael Hudson-Doyle 2b141380e8
Merge pull request #857 from xnox/fix-serial-crash
welcome: fix crash on serial ip addresses
2020-10-21 11:46:19 +13:00