Foster "Forst" Snowhill
304719eb4d
snapcraft: unminimize iso-codes package
...
When building the snap in a clean environment, we start with a minimised core image. This image excludes translation
files, which are needed for the "languagelists" step. The following error will show up when building:
Building languagelists
do not know native name for oc
Failed to run 'override-build': Exit code was 1.
This is due to translation files being excluded by default in /etc/dpkg/dpkg.cfg.d/excludes on minimised systems:
# Drop all translations
path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo
We now comment this line and reinstall the "iso-codes" package.
2020-08-02 18:05:29 +02:00
Dimitri John Ledkov
5de9df3e7d
Merge pull request #808 from xnox/lp-1889749
...
Revert "add all documented fields to filesystem model classes"
2020-07-31 15:03:40 +01:00
Dimitri John Ledkov
c1ed2b5196
Revert "add all documented fields to filesystem model classes"
...
The above commit introduced regression
https://bugs.launchpad.net/subiquity/+bug/1889749
This means that https://bugs.launchpad.net/subiquity/+bug/1889749
remains unfixed.
This reverts commit 73f311690e
.
2020-07-31 14:56:12 +01:00
Michael Hudson-Doyle
38728771d5
Merge pull request #805 from xnox/fix-empty-seed
...
snaplist: fix snaplist with filesystem without snaps
2020-07-30 07:44:38 +12:00
Dimitri John Ledkov
c7aff1fed5
snaplist: fix snaplist with filesystem without snaps
...
When no snaps are seeded in the filesystem, empty string is returned,
which yaml safe load interprets as None.
But snapd seed.yaml is defined as a dictionary with snaps key. Ensure
that when no seed.yaml is present (or readable), that at least an
empty dictionary is returned, such that later calls to `.get("snaps",
[])` succeed.
LP: #1889429
2020-07-29 16:26:12 +01:00
Michael Hudson-Doyle
2e5456fd55
add subiqity.common package and more error report handling to it
...
Both the subiquity client and server are going to want to use this code,
so move it somewhere more neutral.
2020-07-28 14:02:32 +12:00
Michael Hudson-Doyle
3d4158dde3
Merge pull request #793 from eliasp/typo-minumum
...
Fix typo (minumum > minimum)
2020-07-28 09:34:35 +12:00
Michael Hudson-Doyle
210cdcb51b
Move the code for setting up the screen to its own file
...
Looking at this code thinking about the coming client / server split
made me realise that we could start by at least moving this
functionality to a more encapsulated place.
2020-07-27 23:40:17 +12:00
Michael Hudson-Doyle
16e080392e
Merge pull request #803 from mwhudson/no-eoan
...
test on groovy and not eoan
2020-07-27 11:24:16 +12:00
Michael Hudson-Doyle
2c6a714cbc
test on groovy and not eoan
2020-07-27 11:17:50 +12:00
Michael Hudson-Doyle
ad6dd2b5cb
Merge pull request #796 from xnox/stop-subiquity
...
Stop subiquity-service on non-installer media.
2020-07-27 11:17:06 +12:00
Michael Hudson-Doyle
9b533ad522
Merge pull request #801 from mwhudson/lp-1887997
...
fix some simple crashes seen in the error tracker
2020-07-27 10:34:50 +12:00
Michael Hudson-Doyle
6edeeb5f93
Merge pull request #799 from mwhudson/lp-1886816
...
a snap refresh failure means the refresh state is unknown
2020-07-27 10:23:33 +12:00
Michael Hudson-Doyle
4ee279cbd9
Merge pull request #802 from mwhudson/inject-subiquity-snap-tweaks
...
clean up the xorriso arguments in inject-subiquity-snap a bit
2020-07-27 10:22:18 +12:00
Michael Hudson-Doyle
d9cea264f1
clean up the xorriso arguments in inject-subiquity-snap a bit
2020-07-22 15:06:29 +12:00
Michael Hudson-Doyle
1b075af043
be more careful accessing local_help method
...
not really sure how this happens, but there are some crashes in the error tracker
so...
2020-07-22 12:33:00 +12:00
Michael Hudson-Doyle
1257ead61b
fix crash on checking for update failing
2020-07-22 12:29:05 +12:00
Michael Hudson-Doyle
6b26b668be
fix formatting of error message
2020-07-22 12:27:04 +12:00
Michael Hudson-Doyle
744787ae7c
fix editing a logical volume
2020-07-22 12:25:04 +12:00
Dimitri John Ledkov
616794857d
Stop subiquity-service on non-installer media.
2020-07-20 15:03:38 +01:00
Michael Hudson-Doyle
c0d3138b48
a snap refresh failure means the refresh state is unknown
...
for https://bugs.launchpad.net/subiquity/+bug/1886816
2020-07-15 20:45:41 +12:00
Michael Hudson-Doyle
317648aec4
Merge pull request #794 from mwhudson/lp-1881588
...
use snapd apis to check for users
2020-07-10 08:37:51 +12:00
Michael Hudson-Doyle
0c9737097a
fix get_device_owner return value
2020-07-09 23:22:20 +12:00
Michael Hudson-Doyle
57cd4c3e4c
changes suggested in review
2020-07-09 10:47:46 +12:00
Michael Hudson-Doyle
164c575f2a
use snapd apis to check for a user and (minimally) handle a managed system with no owner
2020-07-03 15:55:07 +12:00
Michael Hudson-Doyle
6fc5aaefcb
Merge pull request #795 from mwhudson/lp-1885644
...
add all documented fields to filesystem model classes
2020-07-03 08:59:05 +12:00
Michael Hudson-Doyle
73f311690e
add all documented fields to filesystem model classes
...
This lets autoinstall configs set them, even though nothing in subiquity
can set them yet.
2020-07-02 16:35:17 +12:00
Michael Hudson-Doyle
9271f17dd2
move subiquity.snapd to subiquitycore.snapd
2020-07-02 12:56:49 +12:00
Elias Probst
cc630d7d0c
Fix typo (minumum > minimum)
2020-06-29 14:23:12 +00:00
Michael Hudson-Doyle
eb1293cd84
Merge pull request #792 from mwhudson/lp-1884027
...
set PYTHONIOENCODING to utf-8 in snapcraft.yaml for subiquity{,-service}
2020-06-18 21:37:44 +12:00
Michael Hudson-Doyle
c6fecae958
set PYTHONIOENCODING to utf-8 in snapcraft.yaml for subiquity{,-service}
...
for https://bugs.launchpad.net/ubuntu-z-systems/+bug/1884027
Not really sure why this only shows up now.
2020-06-18 21:36:21 +12:00
Michael Hudson-Doyle
34acb8e7da
Merge pull request #790 from mwhudson/datasource-None
...
use the "None" datasource for on-first-boot configuration
2020-06-16 14:14:45 +12:00
Michael Hudson-Doyle
bbfcdd7b25
sort installer cloud config after 90_dpkg.cfg
2020-06-16 13:55:30 +12:00
Michael Hudson-Doyle
13dca88a54
Merge pull request #791 from wedi/match_smallest
...
Add disk size match smallest
2020-06-16 09:58:22 +12:00
Dirk Weise
33e16fbbe5
Add disk size match smallest
2020-06-15 21:01:42 +02:00
Dimitri John Ledkov
fe012f20dc
Merge pull request #781 from mwhudson/update-translations
...
update translations from launchpad
2020-06-15 11:22:26 +01:00
Michael Hudson-Doyle
74c26447bc
Merge pull request #777 from mwhudson/better-esp-detection
...
Better esp detection
2020-06-15 16:06:56 +12:00
Michael Hudson-Doyle
d9d57e53a0
be a bit more defensive
2020-06-15 15:53:11 +12:00
Michael Hudson-Doyle
2a3afa5c19
use any() instead of a for loop in a few places
...
suggested in review
2020-06-15 15:36:29 +12:00
Michael Hudson-Doyle
820315e02c
look at the typecode to detect an ESP on MBR
2020-06-15 15:32:42 +12:00
Michael Hudson-Doyle
f0661f39b9
add a property to tell if a partition is an ESP
...
the only change in behaviour is that you can now delete bootloader
partitions that apply to the booted system.
2020-06-15 15:32:42 +12:00
Michael Hudson-Doyle
a9425e6f54
Merge pull request #789 from mwhudson/autoinstall-shell
...
allow starting a shell when connecting to a session running an autoinstall
2020-06-15 15:31:27 +12:00
Michael Hudson-Doyle
2ddde49a43
use the "None" datasource for on-first-boot configuration
...
Using the NoCloud source meant that a filesystem label of "cidata"
(probably containing autoinstall config) could override the cloud-init
nocloud seed subiquity wrote and then users would not get created. So
instead write cloud config directly that hardcodes using the
DataSourceNone source and config for it.
https://bugs.launchpad.net/subiquity/+bug/1879103
2020-06-15 15:07:03 +12:00
Michael Hudson-Doyle
cfb31695cf
allow starting a shell when connecting to a session running an autoinstall
2020-06-12 15:35:59 +12:00
Michael Hudson-Doyle
b8c9ca2484
add mirror to examples/autoinstall.yaml
2020-06-12 15:31:15 +12:00
Michael Hudson-Doyle
4de58b2554
Merge pull request #788 from mwhudson/lp-1881887
...
do not crash in NetworkController._data_ready if ui.body is not a widgetwrap
2020-06-12 15:18:36 +12:00
Michael Hudson-Doyle
97b5c64805
do not crash in NetworkController._data_ready if ui.body is not a widgetwrap
...
for https://bugs.launchpad.net/subiquity/+bug/1881887
2020-06-12 15:01:58 +12:00
Michael Hudson-Doyle
b4e9269e9e
Merge pull request #787 from mwhudson/refresh-crash
...
catch errors raised by checking for a snap update
2020-06-12 14:57:27 +12:00
Michael Hudson-Doyle
7314d1a197
Merge pull request #786 from mwhudson/help-crash
...
fix crash on opening a help topic when a help topic is already open
2020-06-12 14:50:05 +12:00
Michael Hudson-Doyle
5016f228f7
catch errors raised by checking for a snap update
...
I am not sure when I dropped this :(
2020-06-12 14:44:36 +12:00