Commit Graph

3315 Commits

Author SHA1 Message Date
Maciej Borzecki 06de80cf60 debian/console-conf@.service: use triggering conditions, make recovery marker file one
Use triggering conditions for controlling when console-conf should run. We
effectively want it to start if there is no /var/lib/console-conf/complete
file *or* the snapd recovery marker file exists.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-05-13 18:24:27 +02:00
Michael Hudson-Doyle 71ee369c7f
Merge pull request #765 from mwhudson/no-live-session-no-error-reports
do not generate a crash report if we are not in a live session
2020-05-12 22:52:09 +12:00
Michael Hudson-Doyle 7db70650fe write the dm_crypt key to a keyfile, not curtin config 2020-05-12 16:53:38 +12:00
Michael Hudson-Doyle 936e3877bb slightly change how to customize the serialization of a particular field 2020-05-12 16:16:21 +12:00
Michael Hudson-Doyle ec9158f4be do not generate a crash report if we are not in a live session
Some people for whatever reason have subiquity installed on their systems
and their error reports flood the tracker.
2020-05-12 10:59:38 +12:00
Michael Hudson-Doyle 50bb413507
Merge pull request #764 from mwhudson/new-lint-fixes
fix some lint found by new version of flake8
2020-05-12 10:59:18 +12:00
Michael Hudson-Doyle 24abf5dd4e fix some lint found by new version of flake8 2020-05-12 10:41:54 +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
Michael Hudson-Doyle 9687f74adb
Merge pull request #745 from mwhudson/update-probert
update probert to drop --mknodes from vgscan invocation
2020-05-01 13:37:54 +12:00
Michael Hudson-Doyle f3a0ba12bd update probert to drop --mknodes from vgscan invocation 2020-05-01 13:37:04 +12:00
Michael Hudson-Doyle 2aa3bea55e add and use the concept of a "global overlay"
a problem with my previous merge was that the top overlay was always
removed when the install finished, but if the user had opened a help
topic in the mean time that was the wrong thing to do. also if the
view was switched under the install notification (which is a bit
unlikely but could happen) the dialog would disappear.

this finally pushed me to generically handle "global overlays" that are
not tied to the underlying, controller-controlled view. there are a few
of these now:

 * help dialogs
 * error reports
 * the "are you sure?" install confirmation
 * now the install notification

this adds an api for adding and removing them, and the api for removing
them includes which overlay to remove.
2020-05-01 12:54:23 +12:00
Michael Hudson-Doyle 2a53fce963 add a dry-run hot key for pretending to run an install 2020-05-01 12:51:28 +12:00
Michael Hudson-Doyle 5dc2895481 add the ability to remove a particular overlay, not just the top one 2020-05-01 12:46:45 +12:00