Commit Graph

3429 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 2ae75954f8
Merge pull request #666 from mwhudson/snaplist-schema
fix snaplist schema
2020-03-31 23:15:07 +13:00
Michael Hudson-Doyle 57080dac19
Merge pull request #667 from mwhudson/autoinstall-network
update NetworkModel.has_network when non-interactive
2020-03-31 23:14:44 +13:00
Michael Hudson-Doyle 8bf71d1d2c use last console= arg, not first 2020-03-31 23:02:57 +13:00
Michael Hudson-Doyle 26ea8784fd make translateable 2020-03-31 23:02:57 +13:00
Michael Hudson-Doyle 7b76e37ebd only run early commands in "primary" terminal 2020-03-31 23:02:38 +13:00
Michael Hudson-Doyle ceb0b017a4 show the initial screen if any screens are interactive
the idea here is to stop multiple subiquitys from trampling on each other
2020-03-31 23:02:38 +13:00
Michael Hudson-Doyle 1dab065c1d only run a non-interactive install on the "primary" console 2020-03-31 23:02:38 +13:00
Michael Hudson-Doyle 2d59dc05bf tweak command lists
allow commands to be lists or strings
consider errors to be failures (except in error-commands)
2020-03-31 23:02:38 +13:00
Michael Hudson-Doyle 3c6ce8fc6a add some more hints 2020-03-31 23:02:18 +13:00
Michael Hudson-Doyle e59ad99534 make translateable 2020-03-31 22:59:58 +13:00
Michael Hudson-Doyle 657bbe25dc split kernel command line with shlex.split 2020-03-31 22:58:22 +13:00
Michael Hudson-Doyle 07858b5200 skip asking in non-interactive mode if autoinstall on kernel command line 2020-03-31 22:58:07 +13:00
Michael Hudson-Doyle 1f86c05ed5 ask directly for confirmation in non-interactive mode 2020-03-31 22:58:07 +13:00
Michael Hudson-Doyle be4797e81a have the app store the kernel command line 2020-03-31 22:58:07 +13:00
Michael Hudson-Doyle abc8f1dfb2 decouple install confirmation from filesystem view
because, in a partially interactive install, we might not show the
filesystem view at all, but should still ask for confirmation before
starting curtin
2020-03-31 22:58:05 +13:00
Michael Hudson-Doyle 532ea542d9 fix snaplist schema
I wrote something in the schema validation branch but then changed it in
another branch in parallel.
2020-03-31 22:43:37 +13:00
Michael Hudson-Doyle 03661dabec tweak autoinstall command lists
allow commands to be lists or strings
consider errors to be failures (except in error-commands)
2020-03-31 22:42:24 +13:00
Dimitri John Ledkov 91a79037a9
Merge pull request #662 from mwhudson/autoinstall-network
apply network autoinstall config
2020-03-31 09:35:22 +01:00
Dimitri John Ledkov e416dd39f0
Merge pull request #663 from mwhudson/autoinstall-snaps
handle the 'snaps' section of the autoinstall file
2020-03-31 09:32:53 +01:00
Dimitri John Ledkov d69242b2ab
Merge pull request #660 from mwhudson/autoinstall-validation
validate autoinstall data against a schema
2020-03-31 09:15:15 +01:00
Michael Hudson-Doyle 75ee48be24 update NetworkModel.has_network when non-interactive 2020-03-31 19:47:04 +13:00
Michael Hudson-Doyle a15858d934 handle the 'snaps' section of the autoinstall file
went through a few versions of this locally, this one is pleasingly
small in delta.
2020-03-31 17:09:47 +13:00
Michael Hudson-Doyle d717375d9c apply network autoinstall config 2020-03-31 15:58:18 +13:00
Michael Hudson-Doyle 3b76c4dc4a lint 2020-03-30 11:07:26 +13:00
Michael Hudson-Doyle 170f44663e actually validate version field, reduce indentation a bit 2020-03-30 11:05:51 +13:00
Michael Hudson-Doyle 32e79826ad do data loading / validation in a context 2020-03-30 10:35:45 +13:00
Michael Hudson-Doyle 32817ac410 add an invalid autoinstall file 2020-03-30 10:29:01 +13:00
Michael Hudson-Doyle 07e985bbeb more paranoia 2020-03-30 10:27:54 +13:00
Michael Hudson-Doyle 19bee4e8b6 tweak behaviour on failure slightly 2020-03-30 10:26:18 +13:00
Michael Hudson-Doyle b1ab79989d fixity 2020-03-30 10:17:26 +13:00
Michael Hudson-Doyle 0f53b9b1f6 do not capture errors applying autoinstall config
outer handling gets this closer to right now
2020-03-30 10:17:26 +13:00
Michael Hudson-Doyle caf713d289 shuffle run loop around 2020-03-30 10:17:22 +13:00
Michael Hudson-Doyle 0012c5ff70 validate data on loading controllers 2020-03-30 10:15:09 +13:00
Michael Hudson-Doyle 57f0a869d3 validate schema, and fix some bits 2020-03-30 10:15:09 +13:00
Michael Hudson-Doyle ac6d938ffa add command to dump schema out 2020-03-30 10:15:09 +13:00
Michael Hudson-Doyle 716557df03 trivial fixes 2020-03-30 10:15:09 +13:00
Michael Hudson-Doyle a9cb6c0770 type out some more schemas 2020-03-30 10:15:09 +13:00
Michael Hudson-Doyle 75f29cee70 type out some schema stuff 2020-03-30 10:15:09 +13:00
Michael Hudson-Doyle c87e8a15d6
Merge pull request #659 from mwhudson/curtin-update
Curtin update
2020-03-27 14:37:09 +13:00
Michael Hudson-Doyle 7e69fe6d54 allow reformatting of raids 2020-03-27 14:17:37 +13:00
Michael Hudson-Doyle 6622121b4b
Merge pull request #658 from mwhudson/no-cloud-init-if-disabled
do not look at cloud config at all if cloud-init is disabled
2020-03-27 13:52:55 +13:00
Michael Hudson-Doyle e7603d82c9 do not look at cloud config at all if cloud-init is disabled 2020-03-27 13:32:01 +13:00
Michael Hudson-Doyle 100661b60c use wipe/preserve refactor commit from curtin 2020-03-27 13:23:10 +13:00
Michael Hudson-Doyle ecb6f380ac do not wait for cloud-init in dry run mode, fails on travis 2020-03-27 11:58:40 +13:00
Michael Hudson-Doyle 1e6c9c6468
Merge pull request #657 from CanonicalLtd/no-delete-virtual-all-the-time
Only delete virtual devices when config has changed
2020-03-27 11:07:52 +13:00
Dimitri John Ledkov d97bf081ea Only delete virtual devices when config has changed 2020-03-26 21:26:34 +00:00
Michael Hudson-Doyle b799a873d7
Merge pull request #654 from mwhudson/cloud-init-wait
wait for cloud init & extract autoinstall config
2020-03-27 10:11:41 +13:00
Michael Hudson-Doyle e82c6f939a neuter cloud init access in dry-run mode 2020-03-26 12:49:51 +13:00
Michael Hudson-Doyle c616012a39 use better code for getting stuff out of cloud-init 2020-03-26 12:46:54 +13:00
Michael Hudson-Doyle 0189965949 dump using safeyaml 2020-03-26 12:44:00 +13:00