Michael Hudson-Doyle
24abf5dd4e
fix some lint found by new version of flake8
2020-05-12 10:41:54 +12:00
Michael Hudson-Doyle
d607379876
do not set preserve_hostname if there is no hostname set
...
only applicable in the autoinstall case
2020-05-11 21:32:02 +12:00
Michael Hudson-Doyle
ba7d0c5924
last two {}s in the pot file
2020-05-11 17:05:19 +12:00
Michael Hudson-Doyle
6f8bab49e5
log commands as executed
2020-05-11 16:30:29 +12:00
Michael Hudson-Doyle
19465dc51c
more translatability improvements
2020-05-11 15:00:42 +12:00
Michael Hudson-Doyle
29a0af5665
oops
2020-05-08 15:49:21 +12:00
Michael Hudson-Doyle
a05b030085
fix lint
2020-05-08 15:44:07 +12:00
Michael Hudson-Doyle
21ed91d7d3
add comments, contexts for some translatable strings
...
from scanning though about one third of subiquity.pot
2020-05-08 15:40:59 +12:00
Michael Hudson-Doyle
59c47254e7
use pgettext in one place, add support for extracting it
2020-05-08 15:13:15 +12:00
Michael Hudson-Doyle
33bdc90780
copy gettext.py from python 3.8 and use it
2020-05-08 15:09:46 +12:00
Michael Hudson-Doyle
3060a03bd6
make some things slightly better
2020-05-08 15:06:24 +12:00
Michael Hudson-Doyle
48736606ec
inline streamlined version of build_i18n & intltool into our setup.py
...
I found the layers and layers of other tools just confusing.
"python3 setup.py build" generates an identical (apart from timestamp)
POT file and an identical build directory before and after this change.
2020-05-08 15:01:06 +12:00
Michael Hudson-Doyle
758def3bf1
Merge pull request #760 from mwhudson/curtin-update
...
update to curtin master
2020-05-07 12:56:46 +12:00
Michael Hudson-Doyle
cb0f77c33e
update to curtin master
2020-05-07 12:48:53 +12:00
Dimitri John Ledkov
6a5e36ed11
Merge pull request #758 from xnox/update-18n
...
Update 18n
2020-05-06 13:30:40 +01:00
Dimitri John Ledkov
9731105bd1
Merge pull request #757 from mwhudson/better-i18n
...
attempt to make providing a good translation easier
2020-05-06 13:30:27 +01:00
Dimitri John Ledkov
44d49265ba
i18n: update translations
...
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
2020-05-06 13:24:15 +01:00
Dimitri John Ledkov
000a94d891
i18n: Update POTFILES.in
...
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
2020-05-06 13:23:38 +01:00
Dimitri John Ledkov
2e85a2ecd6
i18n: add scripts to help with translation updates.
...
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
2020-05-06 13:22:13 +01:00
Michael Hudson-Doyle
2d65fe4f16
attempt to make providing a good translation easier
...
* annotate a few missed string literals with _()
* try to consistently use named placeholders when formatting strings
for display (i.e. _("frob the {thing}") not _("frob the {}")
* run selector values, form captions and form help through _() before
display
* use ngettext in one place. not sure if there need to be more...
* reduce cuteness about how strings are constructed in a few places
2020-05-06 21:16:24 +12:00
Michael Hudson-Doyle
3ca6eee7c8
Merge pull request #756 from mwhudson/autoinstall-mirror-geoip-disable
...
allow autoinstalls to disable geoip
2020-05-06 19:35:06 +12:00
Michael Hudson-Doyle
bdb9d07867
Merge pull request #755 from mwhudson/in-target-late-commands
...
set $TARGET_MOUNT_POINT when running late-commands
2020-05-06 19:34:51 +12:00
Michael Hudson-Doyle
cb3a321128
allow autoinstalls to disable geoip
...
I initialized things in the wrong order
2020-05-06 19:22:40 +12:00
Michael Hudson-Doyle
d7e295d500
set $TARGET_MOUNT_POINT when running late-commands
...
so one does not have to pass --target to curtin in-target in a
late-command
2020-05-06 19:21:27 +12:00
Michael Hudson-Doyle
10035ab28f
Merge pull request #754 from mwhudson/no-curtin-networking
...
disable curtin networking entirely
2020-05-06 16:32:31 +12:00
Michael Hudson-Doyle
70a1abb6c3
disable curtin networking entirely
...
this does not actually have much effect, because we write out a config file
that disables cloud-init networking anyway, but it is confusing to still have
a curtin-written cloud-init networking config too
2020-05-06 10:31:44 +12:00
Michael Hudson-Doyle
ab800a6fb8
Merge pull request #753 from mwhudson/lp-1876902
...
fix crash on using f1 to open help menu
2020-05-06 06:40:10 +12:00
Michael Hudson-Doyle
dc4db6f88c
fix crash on using f1 to open help menu
2020-05-06 06:39:24 +12:00
Michael Hudson-Doyle
5d05a7b95e
Merge pull request #752 from mwhudson/lp-1876874
...
round autoinstall partition sizes using percentages down to a megabyte boundary
2020-05-05 23:12:24 +12:00
Michael Hudson-Doyle
ba106bbbed
tests
2020-05-05 23:05:59 +12:00
Michael Hudson-Doyle
bc6e859109
round autoinstall partition sizes using percentages down to a megabyte boundary
...
https://bugs.launchpad.net/subiquity/+bug/1876874
2020-05-05 23:02:16 +12:00
Michael Hudson-Doyle
1404fee270
Merge pull request #751 from mwhudson/context-fixes
...
improve with_context helper a bit, use it more
2020-05-05 17:01:35 +12:00
Michael Hudson-Doyle
4e3996f3f8
improve with_context helper a bit, use it more
...
the decorated function must now be called with keyword arguments
2020-05-05 16:20:03 +12:00
Michael Hudson-Doyle
449f459ecb
Merge pull request #750 from mwhudson/autoinstall-no-net
...
fix autoinstall crash with no network
2020-05-05 16:14:29 +12:00
Michael Hudson-Doyle
881be5ea52
fix autoinstall crash with no network
2020-05-05 14:43:06 +12:00
Michael Hudson-Doyle
d19de79e4c
Merge pull request #746 from mwhudson/copy-autoinstall-netpan-to-target
...
copy autoinstall netplan to target
2020-05-04 20:04:15 +12:00
Michael Hudson-Doyle
86376a4b78
be more intelligent about waiting for nics to get dhcp address when no autoinstall config is provided
2020-05-04 19:39:08 +12:00
Michael Hudson-Doyle
4891d76aca
actually write the netplan from the autoinstall config to the target system
...
I got lost in a forest of similarly named methods :(
2020-05-04 19:37:43 +12:00
Michael Hudson-Doyle
9ea34e8b0d
Merge pull request #749 from mwhudson/better-nested-contexts
...
make it easier to nest contexts appropriately
2020-05-04 19:36:26 +12:00
Michael Hudson-Doyle
f814d9514f
use more general context machinery to feed install events to progress view
2020-05-04 19:05:42 +12:00
Michael Hudson-Doyle
6752cb2e68
generalize, simplify core event handling
2020-05-04 18:44:47 +12:00
Michael Hudson-Doyle
bc37b2c628
add a helper to make it easier to next contexts appropriately
...
i want this to help debug another branch i am working on!
2020-05-04 18:44:47 +12:00
Michael Hudson-Doyle
89af2709a7
Merge pull request #748 from mwhudson/fix-install-confirmation
...
fix install confirmation
2020-05-04 18:42:35 +12:00
Michael Hudson-Doyle
d9bed483a6
fix install confirmation
...
this is a global overlay now but i forgot to update its code
2020-05-04 18:32:19 +12:00
Michael Hudson-Doyle
355d08f270
Merge pull request #747 from mwhudson/lp-1876605
...
raid fixes
2020-05-04 15:43:29 +12:00
Michael Hudson-Doyle
4564871ad2
fix tests
2020-05-04 15:28:42 +12:00
Michael Hudson-Doyle
81b459cb99
make spare_devices optional in autoinstall config
2020-05-04 14:18:42 +12:00
Michael Hudson-Doyle
8a84e470c5
make sure the size of a partition gets set to int
2020-05-04 14:16:03 +12:00
Michael Hudson-Doyle
d15e5f25fa
remove mistakenly added backup files
2020-05-01 13:45:59 +12:00
Michael Hudson-Doyle
4359378b3b
Merge pull request #744 from mwhudson/global-overlays
...
add and use the concept of a "global overlay"
2020-05-01 13:38:26 +12:00