OSDN Git Service
Calamares CI [Mon, 16 Nov 2020 11:15:52 +0000 (12:15 +0100)]
i18n: [calamares] Automatic merge of Transifex translations
Adriaan de Groot [Sat, 14 Nov 2020 21:13:34 +0000 (22:13 +0100)]
Merge pull request #1575 from gportay/partition-remove-unused-attribute
[partition] Remove unused attribute m_defaultFsType
Gaël PORTAY [Thu, 12 Nov 2020 20:04:54 +0000 (15:04 -0500)]
[partition] Remove unused attribute m_defaultFsType
This attribute is used since the commit
fcd0e8d36 [partition] Apply
partition layout when replacing free space
Adriaan de Groot [Thu, 12 Nov 2020 14:59:56 +0000 (15:59 +0100)]
Merge commit '
a8359696caf07b81b85db8acad2d3f44720d07fa' into calamares
This is the bugfix part (rather than the "clean up this widgets mess")
of issue-1573, ensuring that the LookAndFeelPackage setting is
saved to the target system config file.
Adriaan de Groot [Thu, 12 Nov 2020 14:29:15 +0000 (15:29 +0100)]
[keyboard] When changing layouts, reset variant
- Need to update the variant that is in use, **and**
explicitly update it in the widget, in order to re-load
the keyboard image for the newly-selected layout+variant.
Adriaan de Groot [Thu, 12 Nov 2020 13:50:21 +0000 (14:50 +0100)]
[keyboard] Tell the keyboard preview to update on config changes
These calls to setLayout() and setVariant() got lost in
the transition to Config object, in
5afe5413.
Reported by Harald Sitter.
Adriaan de Groot [Wed, 11 Nov 2020 22:50:33 +0000 (23:50 +0100)]
Merge pull request #1574 from gportay/partition-fix-typo
[partition] Fix typo
Gaël PORTAY [Wed, 11 Nov 2020 17:44:41 +0000 (12:44 -0500)]
[partition] Fix typo
Adriaan de Groot [Wed, 11 Nov 2020 12:06:09 +0000 (13:06 +0100)]
[plasmalnf] Remove unnecessary includes
Adriaan de Groot [Wed, 11 Nov 2020 11:57:40 +0000 (12:57 +0100)]
[plasmalnf] Apply workaround for lookandfeeltool
The lookandfeeltool does not (always?) write the LookAndFeelPackage
key that the KCM does -- and which this module reads on startup
to find the default LnF. This seems to be a regression in recent
lookandfeeltool versions (or in the KCM code that backs it).
Workaround supplied by jghodd.
Fixes #1573
Adriaan de Groot [Wed, 11 Nov 2020 11:45:19 +0000 (12:45 +0100)]
[plasmalnf] Simplify code
- Look-and-Feel job has no status to speak of
- Coding style
Adriaan de Groot [Tue, 10 Nov 2020 11:08:49 +0000 (12:08 +0100)]
Changes: post-release housekeeping
Adriaan de Groot [Tue, 10 Nov 2020 00:19:44 +0000 (01:19 +0100)]
Merge pull request #1563 from LordTermor/calamares
[users] Full name transliteration support for user creation
Artem Grinev [Mon, 9 Nov 2020 22:54:21 +0000 (01:54 +0300)]
[users] Apply code format
Artem Grinev [Mon, 9 Nov 2020 22:47:07 +0000 (01:47 +0300)]
Simplified logic a bit, made punctuation handling more correct
Artem Grinev [Mon, 9 Nov 2020 22:40:08 +0000 (01:40 +0300)]
Improved comment
Artem Grinev [Mon, 9 Nov 2020 22:23:10 +0000 (01:23 +0300)]
Changed TRANSLITERATOR_ID type to array
Adriaan de Groot [Mon, 9 Nov 2020 15:19:03 +0000 (16:19 +0100)]
Merge branch 'issue-1569' into calamares
FIXES #1569
Adriaan de Groot [Mon, 9 Nov 2020 15:08:19 +0000 (16:08 +0100)]
[users] Consume error information from libpwquality
Previously, the auxerror information was never stored, and
the messages were all un-numbered or un-explained.
Now, consume that information and store it when check()
is called, ready to be used when (possibly much later,
or after a translation change) explanation() is called.
Adriaan de Groot [Mon, 9 Nov 2020 14:42:22 +0000 (15:42 +0100)]
[users] m_auxerror never set, always nullptr
Adriaan de Groot [Mon, 9 Nov 2020 14:40:23 +0000 (15:40 +0100)]
[users] Remove unused PWQuality method
Adriaan de Groot [Mon, 9 Nov 2020 14:14:54 +0000 (15:14 +0100)]
i18n: update english translations
Adriaan de Groot [Mon, 9 Nov 2020 14:14:41 +0000 (15:14 +0100)]
[users] Translate PWQuality error messages with numbers
Adriaan de Groot [Mon, 9 Nov 2020 12:41:56 +0000 (13:41 +0100)]
CI: require a sufficiently-recent JSON-Schema
Adriaan de Groot [Mon, 9 Nov 2020 12:08:07 +0000 (13:08 +0100)]
i18n: translation stats
(This does not change the overall list of available languages)
Calamares CI [Mon, 9 Nov 2020 11:27:05 +0000 (12:27 +0100)]
i18n: [python] Automatic merge of Transifex translations
Calamares CI [Mon, 9 Nov 2020 11:27:04 +0000 (12:27 +0100)]
i18n: [calamares] Automatic merge of Transifex translations
Adriaan de Groot [Mon, 9 Nov 2020 10:39:38 +0000 (11:39 +0100)]
Changes: pre-release housekeeping
Adriaan de Groot [Mon, 9 Nov 2020 10:38:38 +0000 (11:38 +0100)]
[users] Add test for jobs-creation
- This tries to avoid the now-fixed situation where a sudoersGroup job
is not created at all (because of a logic error).
- While here, coding style
Adriaan de Groot [Fri, 6 Nov 2020 21:28:37 +0000 (22:28 +0100)]
Merge branch 'fix-sudo-settings' into calamares
Adriaan de Groot [Fri, 6 Nov 2020 21:27:46 +0000 (22:27 +0100)]
[users] Missing negation
Adriaan de Groot [Fri, 6 Nov 2020 21:27:34 +0000 (22:27 +0100)]
[users] Test for setting / resetting sudo settings
Adriaan de Groot [Fri, 6 Nov 2020 21:25:40 +0000 (22:25 +0100)]
Merge pull request #1570 from gportay/mount-skip-if-filesystem-is-unformatted
[mount] Ignore unformatted filesystems only
Adriaan de Groot [Fri, 6 Nov 2020 13:38:12 +0000 (14:38 +0100)]
[users] Log when sudo is skipped
Gaël PORTAY [Fri, 6 Nov 2020 10:56:29 +0000 (05:56 -0500)]
[mount] Ignore unformatted filesystems only
Mount guesses the filesystem if it is unset or if it is set to auto,
thanks to blkid. That is the case for the bind mountpoints like /dev or
/run/udev in mount.conf. See `mount(8)` for more details.
Calamares CI [Fri, 6 Nov 2020 00:14:28 +0000 (01:14 +0100)]
i18n: [calamares] Automatic merge of Transifex translations
Adriaan de Groot [Fri, 6 Nov 2020 00:10:27 +0000 (01:10 +0100)]
[keyboard] Pre-select pc105
Adriaan de Groot [Wed, 4 Nov 2020 23:33:45 +0000 (00:33 +0100)]
[locale] Filter zones combo always
The drop-down of zones was initially unfiltered, so you could start
in Europe/Amsterdam and the zones drop-down would also show Australian
zones; picking Perth would have weird effects, since Europe/Perth
doesn't exist and so you'd end up in New York instead.
- set the filtering region immediately, rather than only when the
region changes.
Adriaan de Groot [Wed, 4 Nov 2020 23:09:23 +0000 (00:09 +0100)]
[libcalamares] Reduce object churn
- we don't need to allocate a new translator each time the language changes
Adriaan de Groot [Wed, 4 Nov 2020 23:00:29 +0000 (00:00 +0100)]
Changes: apply coding style
Adriaan de Groot [Wed, 4 Nov 2020 22:36:33 +0000 (23:36 +0100)]
Enable keyboard-model and layout-name translations.
SEE #1515
Adriaan de Groot [Wed, 4 Nov 2020 17:30:48 +0000 (18:30 +0100)]
i18n: update Tajik keyboard translations
- real ones this time, not my made-up nonsense
Adriaan de Groot [Wed, 4 Nov 2020 16:09:56 +0000 (17:09 +0100)]
Merge branch 'fix-keyboardq' into calamares
Various file writes were not being checked, and the code
was a bit tangled; specifically keyboardq did **not**
configure properly on KaOS and now seems ok.
Adriaan de Groot [Wed, 4 Nov 2020 15:36:52 +0000 (16:36 +0100)]
[keyboard] Apply coding style
Adriaan de Groot [Wed, 4 Nov 2020 15:31:35 +0000 (16:31 +0100)]
[keyboard] Improve debug-logging for writing etc/default
Adriaan de Groot [Wed, 4 Nov 2020 15:29:57 +0000 (16:29 +0100)]
[keyboard] Improve debug-logging for writing X11 config
Philip Müller [Wed, 4 Nov 2020 15:18:00 +0000 (16:18 +0100)]
Merge pull request #1568 from gportay/partition-fix-typo
[partition] Fix typo
Adriaan de Groot [Wed, 4 Nov 2020 15:16:28 +0000 (16:16 +0100)]
[keyboard] Improve debug-logging for vconsole-config
Adriaan de Groot [Wed, 4 Nov 2020 15:09:02 +0000 (16:09 +0100)]
Merge pull request #1567 from gportay/umount-fix-list-of-mount-points-to-unmount
[umount] Fix list of mount-points to unmount
Gaël PORTAY [Wed, 4 Nov 2020 14:56:06 +0000 (09:56 -0500)]
[partition] Fix typo
Gaël PORTAY [Tue, 3 Nov 2020 21:53:21 +0000 (16:53 -0500)]
[umount] Fix list of mount-points to unmount
The root mount-point can end with a / while the mount-point read from
the file /etc/mtab does not end with a /.
This leads to skip the unmounting of the root mount-point and causes the
removal of the root mountpoint directory to fail with EBUSY because it
is still mounted.
This uses the python functions os.path.normpath() to normalize the root
mount-point (i.e. to drop the trailing /) and os.path.commonprefix() to
determine the longest common prefix between the two mount-points. If the
returned prefix is identical to the normalized root mount-point then the
mount-point must be added to the list of the mount-points to unmount.
More generally, the python modules should rely on the os.path functions
to compare for paths instead of using strings. It covers this way lots
of corner cases (path with "//", "/../", "/./", ...).
Adriaan de Groot [Wed, 4 Nov 2020 13:03:14 +0000 (14:03 +0100)]
[keyboard] Refactor writing-various-files
- put the writing of each kind of file in its own block -- this should
become separate functions -- so that variables become more local
and debugging can be improved.
- while here, fix the error message for /etc/default/keyboard:
it would complain and name the vconsole file path if it ever failed.
Adriaan de Groot [Wed, 4 Nov 2020 12:39:23 +0000 (13:39 +0100)]
[keyboard] Check for successful file-write
Adriaan de Groot [Wed, 4 Nov 2020 12:20:14 +0000 (13:20 +0100)]
Merge branch 'issue-1327' into calamares
FIXES #1327
FIXES #1267
Generally, flags-manipulation was a mess and restoring the
value-on-disk impossible.
Adriaan de Groot [Wed, 4 Nov 2020 11:32:51 +0000 (12:32 +0100)]
[partition] Log when an EFI problem has been solved
Adriaan de Groot [Wed, 4 Nov 2020 08:59:35 +0000 (09:59 +0100)]
[partition] static-assert that our shortcut makes sense
Artem Grinev [Wed, 4 Nov 2020 00:37:25 +0000 (03:37 +0300)]
[users] Remove ' from transliterated string
Artem Grinev [Wed, 4 Nov 2020 00:24:58 +0000 (03:24 +0300)]
[users] Name cleanup after transliteration
Artem Grinev [Wed, 4 Nov 2020 00:21:31 +0000 (03:21 +0300)]
[users] New transliterator ID
Adriaan de Groot [Wed, 4 Nov 2020 00:16:36 +0000 (01:16 +0100)]
[partition] Simplify EFI-flags checking with KPMCore 4
Adriaan de Groot [Tue, 3 Nov 2020 23:58:11 +0000 (00:58 +0100)]
[partition] Simplify flags calculations
- factor out the flags-we-want from the flags-we-already-have
- the use of ->activeFlags() meant that the state on *disk* was
being compared with the flags-we-want; if a partition was re-edited,
then you couldn't change the flags back to the state-on-disk
(eg. enable a flag, then change your mind and disable it).
- set the flags before refreshing the partition, because the
refresh checks for EFI bootability and that needs the new flags,
not the old ones.
Adriaan de Groot [Tue, 3 Nov 2020 23:43:32 +0000 (00:43 +0100)]
[partition] Massage logging while checking for EFI boot
Adriaan de Groot [Tue, 3 Nov 2020 23:32:21 +0000 (00:32 +0100)]
[partition] Explain underlying type for flags variant
Adriaan de Groot [Tue, 3 Nov 2020 23:14:05 +0000 (00:14 +0100)]
[partition] When flags are explicitly invalid, return early
Adriaan de Groot [Tue, 3 Nov 2020 22:46:07 +0000 (23:46 +0100)]
[partition] Improve logging readability
Calamares CI [Tue, 3 Nov 2020 14:07:22 +0000 (15:07 +0100)]
i18n: [python] Automatic merge of Transifex translations
Calamares CI [Tue, 3 Nov 2020 14:07:22 +0000 (15:07 +0100)]
i18n: [calamares] Automatic merge of Transifex translations
Adriaan de Groot [Tue, 3 Nov 2020 14:01:13 +0000 (15:01 +0100)]
Changes: credits adjustment
Adriaan de Groot [Tue, 3 Nov 2020 13:29:22 +0000 (14:29 +0100)]
Merge pull request #1565 from Chrysostomus/calamares
[initcpiocfg] Use graphical decryption prompt with plymouth
Adriaan de Groot [Tue, 3 Nov 2020 12:03:01 +0000 (13:03 +0100)]
Merge branch 'document-1523' into calamares
FIXES #1523
Adriaan de Groot [Tue, 3 Nov 2020 12:02:49 +0000 (13:02 +0100)]
[users] Expand schema to cover new possibilities
Chrysostomus [Tue, 3 Nov 2020 11:57:19 +0000 (13:57 +0200)]
Regular plymouth hook is also still needed
Chrysostomus [Tue, 3 Nov 2020 11:55:24 +0000 (13:55 +0200)]
Use graphical decryption prompt with plymouth as adviced here: https://wiki.archlinux.org/index.php/plymouth#The_plymouth_hook
Adriaan de Groot [Tue, 3 Nov 2020 11:54:19 +0000 (12:54 +0100)]
[users] Expand the example config with new possibilities
Adriaan de Groot [Tue, 3 Nov 2020 11:48:12 +0000 (12:48 +0100)]
[users] Correct terminology in configuration documentation
Adriaan de Groot [Tue, 3 Nov 2020 10:52:23 +0000 (11:52 +0100)]
CMake: pre-release housekeeping
Adriaan de Groot [Tue, 3 Nov 2020 10:16:45 +0000 (11:16 +0100)]
i18n: timezone translations for Vietnamese
Adriaan de Groot [Mon, 2 Nov 2020 22:25:53 +0000 (23:25 +0100)]
Merge pull request #1560 from gportay/partition-mount-make-mountPoint-and-filesystem-optionals
[partition,mount] Make mountPoint and filesystem optionals
Adriaan de Groot [Mon, 2 Nov 2020 22:25:10 +0000 (23:25 +0100)]
Merge branch 'fix-partition-layout' into calamares
Adriaan de Groot [Mon, 2 Nov 2020 21:32:44 +0000 (22:32 +0100)]
[partition] Initialize the filesystem type, not the partition type
- Passing FileSystem::Type to the QString constructor for
partition type is not what I intended.
Adriaan de Groot [Mon, 2 Nov 2020 20:35:43 +0000 (21:35 +0100)]
[partition] Migrate the defaultFS type
- remove the m_defaultFSType from PartitionLayout, because it is
set on construction -- which is too early, before the configuration
has been read.
- make the default FS explicit in the init() calls which pass in
a configuration; this needs support in the intermediate
PartitionCoreModule.
Adriaan de Groot [Mon, 2 Nov 2020 15:21:12 +0000 (16:21 +0100)]
Docs: typo (thanks jdfthetech)
Adriaan de Groot [Mon, 2 Nov 2020 15:01:10 +0000 (16:01 +0100)]
[partition] Set FS type explicitly if no layout is given
- the "simple" constructor for PartitionEntry left the FS type
set as the constructor left it -- which is Unknown by default.
This leads to install failures in systems that don't set a
special layout but just want a single / -- because the FS is
set to Unknown.
- massage the constructor and consumer of the code, push
Ext4 FS in the tests and use the configured default in production.
Artem Grinev [Mon, 2 Nov 2020 14:53:05 +0000 (17:53 +0300)]
Explanation why ICU is needed for usersq module
Adriaan de Groot [Mon, 2 Nov 2020 14:40:32 +0000 (15:40 +0100)]
[partition] Improve constructors for layout
- initialize flags by default
- the copy constructor was just doing the default thing,
so make that explicit
Gaël PORTAY [Mon, 2 Nov 2020 13:57:58 +0000 (08:57 -0500)]
[partition] Ignore unformatted filesystem
Gaël PORTAY [Sat, 31 Oct 2020 12:09:13 +0000 (08:09 -0400)]
[partition] Make filesystem optional and default to unformatted
Gaël PORTAY [Sat, 31 Oct 2020 11:19:53 +0000 (07:19 -0400)]
[mount] Ignore empty or unformatted filesystems
Gaël PORTAY [Sat, 31 Oct 2020 11:18:30 +0000 (07:18 -0400)]
[mount] Ignore empty mountpoints
Gaël PORTAY [Sat, 31 Oct 2020 08:44:49 +0000 (04:44 -0400)]
[mount] Print a warning if mount failure
The return of the call to libcalamares.utils.mount is never tested and
it may fail silently; this causes some mounpoints to be missing.
This adds a warning if mountpoint cannot be mounted.
chcon: failed to get security context of '/tmp/verity': Operation not supported
06:44:23 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
Running "env" ("mount", "-t", "unformatted", "/dev/sdb2", "/tmp/calamares-root-kv8dqgb5/tmp/verity")
.. Finished. Exit code: 32
.. Target cmd: ("mount", "-t", "unformatted", "/dev/sdb7", "/tmp/calamares-root-kv8dqgb5/tmp/verity") output:
mount: /tmp/calamares-root-kv8dqgb5/tmp/verity: unknown filesystem type 'unformatted'.
Gaël PORTAY [Wed, 17 Jun 2020 18:16:20 +0000 (14:16 -0400)]
[partition] Make mountPoint optional
Some devices cannot be mounted (as DM_verity_hash), therefore, it is
nosense to set a mountPoint for them.
Adriaan de Groot [Mon, 2 Nov 2020 13:10:35 +0000 (14:10 +0100)]
[users] Shuffle library order to satisfy CI build
Adriaan de Groot [Mon, 2 Nov 2020 12:08:30 +0000 (13:08 +0100)]
Merge branch 'issue-1523' into calamares
Adriaan de Groot [Mon, 2 Nov 2020 11:27:50 +0000 (12:27 +0100)]
[users] Run an expected-to-fail test in creating groups
Adriaan de Groot [Mon, 2 Nov 2020 11:11:13 +0000 (12:11 +0100)]
[users] Expand tests for groups a little
Adriaan de Groot [Mon, 2 Nov 2020 11:01:02 +0000 (12:01 +0100)]
CMake: comment on BUILD_AS_TEST
Adriaan de Groot [Mon, 2 Nov 2020 10:43:07 +0000 (11:43 +0100)]
Merge pull request #1561 from gportay/partition-set-swap-partition-name
[partition] Allow a configurable swap Partition name
Adriaan de Groot [Mon, 2 Nov 2020 10:39:44 +0000 (11:39 +0100)]
Merge pull request #1562 from gportay/partition-group-efi-things-together
[partition] Group EFI things together
Artem Grinev [Mon, 2 Nov 2020 01:01:01 +0000 (04:01 +0300)]
[users] Cleaned error handling a bit
Artem Grinev [Mon, 2 Nov 2020 00:52:37 +0000 (03:52 +0300)]
[users] Construct icu::UnicodeString from QString's utf16 chars directly