Maciej Borzecki
5d77d71499
subiquitycore: allow overriding input/output when creating screens
...
The interaction with snap-recovery-chooser happens over stdin/stdout. The early
setup code in console-conf will attempt to restore sys.stdin/sys.stdout and hook
them up to the current tty.
The patch allows passing input/output streams explicitly as parameters to the
constructors.
Also, default to sys.stdin/sys.stdout and pass both streams explicitly when
constructing urwid.raw_display.Screen(), to workaround the bug in their
constructor. THe constructor is defined as follows:
class Screen(BaseScreen, RealTerminal):
def __init__(self, input=sys.stdin, output=sys.stdout):
What means, that even if we override sys.stdout/sys.stdin globally in our setup
code, this will have no effect as `input` and `output` already got their values.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-03-24 13:32:52 +01:00
Michael Hudson-Doyle
f0d6beba63
read autoinstall from cloud config
2020-03-20 15:40:04 +13:00
Michael Hudson-Doyle
defd3d7328
wait for cloud-init at startup
2020-03-20 15:39:06 +13:00
Michael Hudson-Doyle
aca4c513fd
add cloud-init to stage-packages
2020-03-20 14:48:16 +13:00
Michael Hudson-Doyle
9636b7a9ef
Merge pull request #653 from mwhudson/20.03.1-oopsies
...
20.03.1 oopsies
2020-03-20 10:54:12 +13:00
Michael Hudson-Doyle
31ce375a1d
display messages when no big disks and no disks are found
...
probably could do with wordsmithing but better than crashing
2020-03-20 10:25:27 +13:00
Michael Hudson-Doyle
470be04f46
don't offer tiny disks for the guided options
2020-03-20 10:12:48 +13:00
Michael Hudson-Doyle
3856a11186
fix deleting virtual network devices
2020-03-20 09:18:25 +13:00
Michael Hudson-Doyle
cc52bb62a5
fix enabling dhcp on a virtual interface
2020-03-20 09:17:29 +13:00
Michael Hudson-Doyle
ac587f9bf6
remove /target after unmounting it
2020-03-20 09:17:23 +13:00
Michael Hudson-Doyle
0967777a2d
increase block probe timeout
...
Seeing a few error reports with this timing out and they look sort of
real from the logs. Maybe probing is slow just after startup when so
much other stuff is going on? Let's just increase the timeout and see if
they go away.
2020-03-20 09:16:56 +13:00
Michael Hudson-Doyle
293cb187a6
fix formatting an unformatted, pre-existing raid
2020-03-20 08:41:20 +13:00
Michael Hudson-Doyle
26e18679de
Merge pull request #652 from mwhudson/release-tweaks
...
Release tweaks
2020-03-17 12:26:19 +13:00
Michael Hudson-Doyle
7596e63a9f
pass **kw args to arun_command in run_command_in_foreground
...
this makes the debug shell run in / rather than /snap/subiquity/whatever
2020-03-17 12:23:06 +13:00
Michael Hudson-Doyle
11374103dc
pass check=True to right function when cancelling unattended-upgrades
2020-03-17 12:21:17 +13:00
Dimitri John Ledkov
828febd0b6
Merge pull request #651 from mwhudson/restart-after-fail-snafu
...
fix various restarting snafus
2020-03-16 13:59:08 +00:00
Dimitri John Ledkov
f9a504674b
Merge pull request #636 from bboozzoo/bboozzoo/snapd-chooser-integration
...
bin/console-conf-wrapper: detect whether snapd recovery chooser should run
2020-03-16 13:54:24 +00:00
Michael Hudson-Doyle
b4ab4d8f1b
Only mark definitively seen screens as configured.
...
Mark a screen as configured if:
- last-screen is present
- the screen was before the screen last-screen indicates
2020-03-16 16:37:25 +13:00
Michael Hudson-Doyle
94611c58e2
remove last-screen file before restarting or exiting
...
unless we are restarting because of a snap refresh.
ths lead to all kinds of confusion after e.g. a ui crash after a snap refresh
2020-03-16 16:37:16 +13:00
Michael Hudson-Doyle
499cd78c1e
Revert "fix installation hang after refreshing snap"
...
This reverts commit 910b00b0c7
.
This approach failed rather badly in the case of refreshing the snap,
then trying to restart after a failed install -- all models were
considered to be configured, which means the install restarts
straightaway and then promptly fails.
2020-03-16 16:34:02 +13:00
Steve Langasek
eca2728dfa
Merge pull request #650 from xnox/i18n-docs
...
Update i18n docs
2020-03-11 15:35:56 -07:00
Dimitri John Ledkov
88dd0e021f
Update clean target to regenerate .pot
2020-03-10 12:00:13 +00:00
Dimitri John Ledkov
a90be83685
Update i18n docs
2020-03-09 10:03:17 +00:00
Michael Hudson-Doyle
4147e02754
Merge pull request #649 from mwhudson/no-autoinstall-merging
...
stop merging autoinstall files in subiquity
2020-03-06 17:38:51 +01:00
Michael Hudson-Doyle
3244c378ae
stop merging autoinstall files in subiquity
...
we rely on cloud-init for this now
2020-03-06 10:29:21 +01:00
Dimitri John Ledkov
0306ad2d56
Merge pull request #645 from xnox/more-series
...
Try adding eoan & focal again
2020-03-06 01:48:25 +00:00
Dimitri John Ledkov
897fe56213
Try overriding zfs-mount.service
2020-03-05 16:53:35 +00:00
Michael Hudson-Doyle
04e1034ae3
Merge pull request #629 from mwhudson/autoinstall-write-config
...
write autoinstall config at end of install
2020-03-05 16:34:53 +01:00
Michael Hudson-Doyle
9e602a0e90
Merge pull request #646 from mwhudson/ai-fs-config
...
a few autoinstall fixes
2020-03-05 16:34:12 +01:00
Dimitri John Ledkov
4793ac55e8
Merge remote-tracking branch 'origin/master'
2020-03-05 14:16:06 +00:00
Dimitri John Ledkov
b3c265020b
Update translations
2020-03-05 14:15:34 +00:00
Dimitri John Ledkov
5de53ad9dd
Merge pull request #648 from yarons/patch-1
...
Added localization link to the README
2020-03-05 13:43:12 +00:00
Yaron Shahrabani
63b07f9f7d
Updated link to the correct location
...
Sorry for that, I didn't notice the localization is managed inside the Ubuntu project.
2020-03-05 13:34:29 +02:00
Yaron Shahrabani
13d90f0a04
Added Localization platform link to README
...
Feel free to change the sentence, it's only an idea.
2020-03-05 13:20:02 +02:00
Dimitri John Ledkov
68a71d36d1
releasing package subiquity version 19.12.2+git106g3d9374ad
2020-03-05 09:51:29 +00:00
Michael Hudson-Doyle
40e0342342
properly set up default storage autoinstall in interactive case
2020-03-05 10:28:51 +01:00
Michael Hudson-Doyle
8cdb472f21
fix default storage autoinstall config
2020-03-05 10:28:51 +01:00
Michael Hudson-Doyle
51bffa8387
load mounts and don't set preserve=true when loading autoinstall config
2020-03-05 10:28:14 +01:00
Michael Hudson-Doyle
da0f0bc70b
fix some ssh bits
2020-03-05 10:27:19 +01:00
Dimitri John Ledkov
9a4a79c0c1
Try adding eoan & focal again
2020-03-05 09:23:20 +00:00
Dimitri John Ledkov
3d9374adaf
Merge pull request #633 from meskobalazs/patch-1
...
Typos in a localizable string
2020-03-05 09:08:12 +00:00
Michael Hudson-Doyle
c3b3615d6f
support explicit storage configs for autoinstall
2020-03-05 08:25:45 +01:00
Michael Hudson-Doyle
3722e9cef2
write autoinstall-user-data to live session /var/log/installer
2020-03-05 08:02:50 +01:00
Michael Hudson-Doyle
59cca21a11
write the autoinstall to something more user-data like
2020-03-04 16:25:42 +01:00
Michael Hudson-Doyle
163b81b0fc
implement some make_autoinstall methods
2020-03-04 16:17:38 +01:00
Michael Hudson-Doyle
4ea4b750ad
infrastructure for writing an autoinstall.yaml config file at the end of install
2020-03-04 16:17:38 +01:00
Michael Hudson-Doyle
b002a4b496
Merge pull request #643 from mwhudson/cdl-not-ldl
...
format dasds with cdl not ldl
2020-03-04 16:13:31 +01:00
Michael Hudson-Doyle
bd50b17f3c
Merge pull request #644 from mwhudson/moar-restarting
...
restart subiquity when snap refresh completes
2020-03-04 16:08:13 +01:00
Michael Hudson-Doyle
05dd8c3d48
restart subiquity when snap refresh completes
...
so that we restart even if systemd does not do it for us
2020-03-04 14:45:10 +01:00
Michael Hudson-Doyle
774fa7b7be
format dasds with cdl not ldl
2020-03-04 14:00:11 +01:00