Michael Hudson-Doyle
443d0f3231
copy /cdrom/.disk/info to /var/log/installer/media-info
...
for https://bugs.launchpad.net/bugs/1825576
2019-04-26 12:38:29 +12:00
Dimitri John Ledkov
9347bb3ae7
Merge pull request #464 from mwhudson/add-design-doc
...
start a design document
2019-04-26 00:18:12 +01:00
Michael Hudson-Doyle
e1981ecaeb
a few updates
2019-04-26 10:40:04 +12:00
Dimitri John Ledkov
1b88e7d193
Merge pull request #467 from paride/ssh-install-server
...
SSHController: the keyword to install openssh-server is install_server
2019-04-23 10:52:24 +01:00
Paride Legovini
099e1a6c07
SSHController: the keyword to install openssh-server is install_server
...
LP: #1825165
2019-04-18 10:59:23 +02:00
Michael Hudson-Doyle
01653c6d18
Merge pull request #466 from mwhudson/dont-call-RefreshController.done-twice
...
fix race in refresh view that can lead to done being called twice
2019-04-18 13:12:13 +12:00
Michael Hudson-Doyle
9bbb6536b8
fix race in refresh view that can lead to done being called twice
...
The symptom of this is that the post install steps don't get run.
If you get to the refresh screen before the check for a snap update is
completed, you are shown a screen that indicates this. If the check
completes and shows no update, you are moved onto the next screen. The
problem is, this happens even if the user has already clicked the
"Continue without updating" button! This means (if the timing works out)
that the SSH screen gets skipped without its done method being called
and the postinstall steps never start because they are endlessly waiting
for the ssh config to be decided on.
Fortunately the fix is much simpler than the diagnosis: don't hang on to
the view after we stop showing it, so that when the check completes we
don't call methods on the view that can call back into the controller's
done method.
This isn't a CI only race, it could happen to a user, especially if they
require a proxy to talk to the snap store :/
2019-04-18 12:54:40 +12:00
Michael Hudson-Doyle
63fe970515
Merge pull request #465 from mwhudson/moar-next-screen-logging
...
add some logging around moving between screens
2019-04-18 10:28:35 +12:00
Michael Hudson-Doyle
3e8bc81190
add some logging around moving between screens
...
my best guess at why CI is currently hanging sometimes is that the
'next-screen' signal is being sent too often / too early. add some
logging around this so that we will be able to confirm / deny this by
reading the logs.
2019-04-18 10:22:05 +12:00
Michael Hudson-Doyle
77139697d6
start a design document
2019-04-17 20:05:35 +12:00
Dimitri John Ledkov
aacd9d5aad
Merge pull request #463 from xnox/fix-maas-region-install
...
MAAS Region install fails to open shared memory segment.
2019-04-16 14:04:24 +01:00
Dimitri John Ledkov
ca32f07b2a
Unmount /dev/shm too.
2019-04-16 13:40:29 +01:00
Dimitri John Ledkov
9f78f379e4
MAAS Region install fails to open shared memory segment.
2019-04-16 12:49:43 +01:00
Michael Hudson-Doyle
8177657276
Merge pull request #462 from mwhudson/step_done-logging
...
add some logging to _step_done
2019-04-16 23:42:40 +12:00
Michael Hudson-Doyle
d179fbb5bc
add some logging to _step_done
2019-04-16 22:55:23 +12:00
Michael Hudson-Doyle
8be843c2a8
Merge pull request #461 from mwhudson/hostname-ffs
...
write hostname/hosts/machine-id earlier
2019-04-16 11:34:59 +12:00
Michael Hudson-Doyle
496c3dcb2e
write hostname/hosts/machine-id earlier
...
cloud-init may end up writing them too late
2019-04-16 11:27:09 +12:00
Dimitri John Ledkov
f1061785d2
Merge pull request #460 from xnox/machine-id
...
Copy machine-id into target, for it to stay the same machine.
2019-04-15 20:55:01 +01:00
Dimitri John Ledkov
5f9948f2bf
Copy machine-id into target, for it to stay the same machine.
2019-04-15 16:25:07 +01:00
Michael Hudson-Doyle
35e5ce47c9
Merge pull request #459 from mwhudson/preserve_hostname
...
tell cloud-init to leave /etc/hostname alone
2019-04-15 15:05:09 +12:00
Michael Hudson-Doyle
bea97b4b18
Merge pull request #458 from mwhudson/copy-logs-later
...
copy logs to target system right at the end
2019-04-15 15:03:33 +12:00
Michael Hudson-Doyle
696f6fb929
tell cloud-init to leave /etc/hostname alone
2019-04-15 14:56:11 +12:00
Michael Hudson-Doyle
d8396ea2d7
copy logs to target system right at the end
2019-04-15 14:55:41 +12:00
Michael Hudson-Doyle
861d9bc97a
Merge pull request #457 from mwhudson/mount-action-ordering
...
enforce that actions for mounting a parent of a path are emitted first
2019-04-15 14:12:07 +12:00
Michael Hudson-Doyle
0558265d77
enforce that actions for mounting a parent of a path are emitted first
2019-04-15 14:06:01 +12:00
Michael Hudson-Doyle
2a9cd3590b
Merge pull request #456 from mwhudson/reboot-button-tweaks
...
Reboot button tweaks
2019-04-15 12:44:46 +12:00
Michael Hudson-Doyle
62957efc07
fix clicking reboot when curtin itself errors
2019-04-15 12:12:10 +12:00
Michael Hudson-Doyle
fd00caea10
change label of reboot button while upgrade is running
...
also clean up how buttons are handled on final view in general
2019-04-15 12:10:15 +12:00
Michael Hudson-Doyle
7eacef3fbb
Merge pull request #455 from xnox/lock-answers
...
Lock answers file.
2019-04-15 10:16:36 +12:00
Michael Hudson-Doyle
17bc6a9b36
Merge pull request #453 from mwhudson/no-snaplist-oops
...
emit snap-config-done signal when skipping snap list
2019-04-15 10:15:00 +12:00
Michael Hudson-Doyle
ee920eb496
fix lint
2019-04-15 10:07:59 +12:00
Michael Hudson-Doyle
f4148d19a1
Merge pull request #452 from mwhudson/lp-1824404
...
do not crash when the ssh keys are downloaded after curtin fails
2019-04-15 10:05:56 +12:00
Michael Hudson-Doyle
eebfbdb5a1
emit snap-config-done signal when skipping snap list
...
otherwise postinstall steps never run!
2019-04-15 10:05:34 +12:00
Michael Hudson-Doyle
452b03b7e8
Merge pull request #454 from mwhudson/no-network-no-snaps
...
do not show the snaplist if there is no network
2019-04-15 10:04:38 +12:00
Dimitri John Ledkov
488f6fd2c0
Lock answers file.
2019-04-12 17:36:12 +01:00
Michael Hudson-Doyle
0b9af813e5
do not show the snaplist if there is no network
2019-04-12 16:12:14 +12:00
Michael Hudson-Doyle
b8265b626a
do not crash when the ssh keys are downloaded after curtin fails
...
https://bugs.launchpad.net/subiquity/+bug/1824404
2019-04-12 14:42:57 +12:00
Michael Hudson-Doyle
d4e8cb7ffa
fix typo in looking for refresh channel in kernel commandline
2019-04-12 14:26:01 +12:00
Michael Hudson-Doyle
357bbbeb21
Merge pull request #451 from mwhudson/refactor-postinstall-tasks
...
(interruptibly) install security updates after install
2019-04-12 11:23:07 +12:00
Michael Hudson-Doyle
52283ae465
Merge pull request #444 from mwhudson/one-action-list
...
Use a single list on FilesystemModel to store all the actions
2019-04-12 11:22:53 +12:00
Michael Hudson-Doyle
74f5533742
Merge pull request #446 from mwhudson/show-subiquity-versions
...
show subiquity versions in upgrade screen
2019-04-12 11:22:35 +12:00
Michael Hudson-Doyle
59c9d78fbf
vorlon-approved wording (tm)
2019-04-12 11:21:40 +12:00
Michael Hudson-Doyle
e97ed86304
run unattended-upgrades -v so some stuff ends up in the "view full log" screen
2019-04-12 00:03:52 +12:00
Michael Hudson-Doyle
3e61bed4e2
download and install updates at the end of the install
...
This uses the machinery in the previous commit to run
unattended-upgrades in the installed system after everything else is
done and have clicking the 'reboot' button stop unattended-upgrades and
wait until it exits before actually rebooting.
2019-04-11 23:20:44 +12:00
Michael Hudson-Doyle
6d6867bdf2
check exit codes of some post install steps
2019-04-11 23:06:54 +12:00
Michael Hudson-Doyle
4929de62f2
refactor postinstall steps
...
<mwhudson> my kingdom for a more explicit state machine representation
... and here it is. Some of this is somewhat over-engineered, but the
next commit will use some of the unused machinery.
(I also hope this can be made useable one day for things like the
refresh screen, which bounce between foreground and background tasks as
it makes requests to snapd).
2019-04-11 23:06:51 +12:00
Dimitri John Ledkov
901fef8705
Merge pull request #449 from mwhudson/lvm-encrypted-edit
...
fix editing encrypted/passphrase of vg
2019-04-11 00:41:26 +01:00
Dimitri John Ledkov
c8eaba5676
Merge pull request #448 from mwhudson/answers-refresh-channel
...
allow answers to override the channel subiquity is refreshed from
2019-04-11 00:41:09 +01:00
Dimitri John Ledkov
5c90e5efda
Merge pull request #450 from mwhudson/no-network-no-proxy
...
do not use apt proxy during no-network install
2019-04-11 00:40:03 +01:00
Michael Hudson-Doyle
a8e153b896
do not use apt proxy during no-network install
2019-04-11 10:59:13 +12:00