abalfoort
73d09977fc
Support unencrypted boot partition
2022-04-21 16:39:07 +02:00
Adriaan de Groot
33b4fd3a20
[localecfg] It's ok to have a missing /etc/locale.gen for reading
2022-04-19 08:25:34 +02:00
Adriaan de Groot
b0837b1a98
Docs: reformat table of GS keys
...
- add fullname key
- make table a little easier-on-the-eyes in text mode
While here, merge some 3.3 updates; just don't talk about PythonQt
any more.
2022-04-13 14:40:00 +02:00
Victor Fuentes
cc3ab110ee
[users] add fullname to global storage
2022-04-12 23:38:51 -04:00
Adriaan de Groot
baf8ef2c33
[bootloader] Document Debian GRUB
2022-04-12 12:38:20 +02:00
Adriaan de Groot
9c58f49c49
Merge branch 'issue-1654' into calamares
...
FIXES #1654
2022-04-11 15:08:33 +02:00
Adriaan de Groot
3b02115f8e
[users] Expand test to demo other template-keys
2022-04-11 15:03:48 +02:00
Adriaan de Groot
dad12a0e02
[users] Simplify test, fewer magic numbers
2022-04-11 14:55:05 +02:00
Adriaan de Groot
c28ba5ffb2
[users] Fix up test to match new strings written to /etc/hosts
2022-04-11 14:51:52 +02:00
Adriaan de Groot
9ca6d3c715
[users] Document new template setting for hostname
2022-04-11 14:26:29 +02:00
Adriaan de Groot
b95eb55994
[users] Add a template for hostname suggestion
2022-04-11 14:12:05 +02:00
Adriaan de Groot
1a8fc1feec
[users] Settle on 'hostname' as a single word for camel-casing
2022-04-11 12:16:03 +02:00
Adriaan de Groot
92b1341730
[users] Document new hostname.location setting
...
- add to schema
- add to tests
- mention in CHANGES
2022-04-11 12:05:00 +02:00
Adriaan de Groot
3524d4a0d0
[users] Add "transient" for hostname-location
2022-04-11 11:47:47 +02:00
Adriaan de Groot
3b0aa69ad3
[users] Write 127.0.1.1 entry only if there is a hostname
2022-04-11 11:39:14 +02:00
Adriaan de Groot
9299bedd7e
[users] Hostname is empty if it will not be set
2022-04-11 11:37:56 +02:00
Adriaan de Groot
a12c6de2ef
[users] Don't set GS hostname if hostname.location is None
2022-04-11 11:29:23 +02:00
Adriaan de Groot
2f78a37426
[welcome] Use cDebug() for logging
2022-04-11 11:19:38 +02:00
Adriaan de Groot
c5c546d290
[users] Warnings-- about unreachable code
2022-04-11 11:13:45 +02:00
Adriaan de Groot
854c711ac6
[users] Untangle setting-hostname from writing-/etc/hosts
...
Exactly one kind of setting-hostname is done, and that's
entirely independent of writing /etc/hosts. Don't make it
a set of flags, use an enum and a bool.
2022-04-11 11:10:40 +02:00
Adriaan de Groot
6a6aa8867b
[users] hostname.X takes precedence over legacy settings
2022-04-11 10:49:16 +02:00
Adriaan de Groot
b653b13002
[users] Hide hostname box when set to None
...
If the hostname will not be written, hide the input box.
While here, improve some naming in the designer file.
2022-04-11 10:42:00 +02:00
Adriaan de Groot
99bf5497ca
[users] Document change to config, document TODO:3.3
2022-04-11 10:14:32 +02:00
Adriaan de Groot
8a8ac4fe2b
[users]: update config schema
2022-04-08 16:35:47 +02:00
Adriaan de Groot
4494a4b35a
[users] Expand tests with some legacy-settings
2022-04-08 11:30:57 +02:00
Adriaan de Groot
04f38ea661
[users] Put hostname settings in a *hostname* key
...
Move settings into a structured setting for *hostname*, with suitable
sub-keys. Legacy settings remain supported, produce a warning.
2022-04-08 11:30:57 +02:00
Adriaan de Groot
db3160145e
Merge remote-tracking branch 'origin/issue-1904' into calamares
...
This is mostly a confirmation that the subsequent changes
to #1905 were correct; the "name" key set in a partition
configuration is applied to the partition.
FIXES #1904
2022-03-21 15:09:50 +01:00
Adriaan de Groot
6f28120401
[partition] Fix typo in example configuration
2022-03-21 14:16:54 +01:00
Adriaan de Groot
1ee82e390b
[users] Adjust test to expect root to succeed
2022-03-21 14:15:15 +01:00
Adriaan de Groot
88d392f612
[users] Explain why the second setting-hostname test succeeds.
2022-03-21 14:12:18 +01:00
Adriaan de Groot
9b651b4f00
[users] Don't mangle the hostname with a test
2022-03-21 14:08:17 +01:00
Adriaan de Groot
f4a10a313c
[partition] Address default-labeling issues
2022-03-18 14:35:35 +01:00
Adriaan de Groot
7d89643146
[partition] More const in getters
2022-03-18 14:30:31 +01:00
Adriaan de Groot
fa28999561
Merge pull request #1905 from santoshmahto7/santo/avoid-root-naming
...
Avoid setting rootfs partition name to "root" by default.
2022-03-18 13:51:33 +01:00
Decator
b2aa5d8dea
Added spaces and line-breaks to fix formatting.
...
Fixes a formatting issue by adding some spaces and a line-break. Increases readability
2022-03-15 10:43:10 -04:00
Adriaan de Groot
b44091b4e3
SPDX: tag forgotten files
2022-03-15 14:59:05 +01:00
Adriaan de Groot
20c44ff99a
[partition] Obtain flag name from KPMCore
...
- makes the displayed flag name consistent between dialog and
pop-up and debug-messages.
2022-03-14 16:45:56 +01:00
Adriaan de Groot
f60def5ecc
[partition] Don't reinitialize partition layout
...
Existing code reinitialized the layout, losing whatever
layout was set in the config. Refactor so that you can
access the partition-layout API, and change the default
FS through that -- which is the point of the code block
here in `doAutopartition()`, to look up the currently-
selected default FS.
Inspired by Santosh's work in #1903 , #1759 .
2022-03-14 11:27:00 +01:00
Santosh Mahto
4b905d5b52
Avoid setting rootfs partition name to "root" by default.
...
By default, calamares renames the label of root partition
to "root" overriding the name specified in partiton.conf
Signed-off-by: Santosh Mahto <santosh.mahto@collabora.com>
2022-03-14 12:01:06 +05:30
dalto
b5faf1be9b
[fstab] Fix empty UUID detection
2022-03-12 15:47:54 -06:00
Adriaan de Groot
569db7c018
[packages] Disable pacman progress-reporting, it is crashy
2022-03-04 14:28:07 +01:00
Huang Jia Wen
dca5d9b52b
[bootloader] Add loongarch64 support for bootloader
2022-03-04 10:57:38 +01:00
Adriaan de Groot
53c4bbe4e0
[umount] Log briefly what is going to be unmounted
2022-03-01 16:03:28 +01:00
Adriaan de Groot
4fe55533d7
[partition] Log in more human-readable form
2022-03-01 14:37:52 +01:00
Adriaan de Groot
7e51731167
[partititon] Slightly better debug-logging for automount
2022-03-01 13:52:50 +01:00
Calamares CI
05991c9ee9
i18n: [dummypythonqt] Automatic merge of Transifex translations
2022-02-25 14:11:58 +01:00
Adriaan de Groot
c3224e60d6
[users] Add a switch to write different styles of sudo file
2022-02-21 15:49:10 +01:00
Adriaan de Groot
c1f1934c27
Merge branch 'issue-1883' into calamares
...
FIXES #1883
2022-02-21 15:07:58 +01:00
Adriaan de Groot
23f501c071
[fstab] Recognize mmc and nvme disks correctly
...
- basename() returns the last path component, so never includes
the leading '/dev/'
- the check for mmc and nvme looked for device names starting
with '/dev/mmc' .. but '/dev/' has just been stripped away
by the call to basename, so this never matched
- stripped the trailing digits rather than trailing 'p[0-9]',
so 'nvme0n1p2' became 'nvme0n1p' which isn't a useful
device name.
FIXES #1883
2022-02-21 15:03:51 +01:00
Adriaan de Groot
92f4ab30ea
[partition] Add a note and an icon about unusually-configured partition module
2022-02-21 13:00:40 +01:00
Adriaan de Groot
682ae24b7d
[partition] Introduce skipping-partitioning-jobs
...
Don't do the actual KPM work, but pretend that they were done.
This can be useful -- independently of the existing unsafe-
options and failing partitioning entirely -- for testing
partition layouts in modules following the *partition* one.
2022-02-21 12:39:56 +01:00
Adriaan de Groot
7129a2239c
[partition] Tidy up description in prettyStatus
...
- the length parameter to diskDescription() is worse than
useless, because it doesn't say anything about what will
be done if there's more than one disk.
2022-02-21 12:30:34 +01:00
Adriaan de Groot
f04f0a7e1d
[partition] Remove unused text
2022-02-21 12:13:11 +01:00
Adriaan de Groot
99d11f754f
[partition] Tighten up determining job labels for description
2022-02-21 12:12:20 +01:00
Adriaan de Groot
62888f7984
[partition] Rename setting to BAIL_OUT
...
- unsafe partitioning will bail out (and end the installation)
if BAIL_OUT is set (previously _LAME).
2022-02-21 11:56:41 +01:00
Adriaan de Groot
240c89c585
[luksbootkeyfile] Merge pull request #1888 from dalto8/trailingslash
...
Ensure that a trailing slash doesn't cause issues with an unencrypted /boot
2022-02-21 11:43:11 +01:00
Adriaan de Groot
b1742876fd
[zfs] Correct user-visible spelling of ZFS
...
In Camel-cased source code, Zfs, but for user-visible strings,
ZFS (or zfs, but needs to be consistent).
2022-02-17 15:51:15 +01:00
dalto
f34008b518
[LuksBootKeyFile] Remove trailing slashes when matching mountpoint
2022-02-16 16:21:52 -06:00
Adriaan de Groot
fa7394723c
[users] Don't mess up cursor position when typing hostname
...
If the hostname changes while the field has focus, that means
that the user is typing in the field, and we shouldn't mess
with the cursor position.
FIXES #1884
2022-02-07 11:51:48 +01:00
Adriaan de Groot
0fff01e36e
[partition] Use signed sizes
...
Unfortunate effect of having ints in some parts of the API
is that signedness trickles down everywhere; either cast
all over, or stick to signed ints.
2022-02-07 11:21:53 +01:00
Adriaan de Groot
9127b76e5f
[bootloader] Fix typo's
2022-02-01 16:49:18 +01:00
Adriaan de Groot
cf913b87ff
[partition] Apply coding style
...
This applies the new(er) style to the whole module,
rather than just the files that recently changed.
2022-02-01 16:35:19 +01:00
Adriaan de Groot
7f90b99388
[partition Simplify mountpoint-input
...
- if nothing is selected (index -1, which now shows the placeholder), the text is empty
- if something has been entered, return it (e.g. if the user is typing)
- if something is selected, the text gets set to that anyway
2022-02-01 16:01:04 +01:00
Adriaan de Groot
f4720ae02c
[partition] <pre> formatting is block-oriented
2022-02-01 14:54:49 +01:00
Adriaan de Groot
45fff23499
[partition] Move message closer to input field
...
The warning about the mount point -- that it was in-use or
invalid -- had been separated from the drop-down by the
FSLabel field. Move it back, rename the variable for
clarity while we're at it.
2022-02-01 14:50:53 +01:00
Adriaan de Groot
82dcc1b57b
[partition] Refactor common validate-the-mount-point logic
2022-02-01 14:42:18 +01:00
Adriaan de Groot
d8be9a9443
[partition] Mount points should start with a /
2022-02-01 14:07:38 +01:00
Adriaan de Groot
fbcd1ffbbe
[partition] Make the "no mount point" a placeholder
2022-02-01 14:06:30 +01:00
Adriaan de Groot
d8c875f351
[partition] UI-tweak mount-point and fs-label boxes
...
- make the boxes expand, rather than stick to a minimum
size that doesn't align with other boxes in the dialog,
and which may be too small to contain the text they display.
2022-02-01 13:13:29 +01:00
Adriaan de Groot
6f738813a6
[fstab] GS configuration for a btrfs setup
2022-02-01 12:15:49 +01:00
Adriaan de Groot
e9899d0345
[packagechooser,netinstall] Apply coding style
2022-01-31 23:42:20 +01:00
Adriaan de Groot
51f67f6c3e
[partition] If initialSwapChoice can't be satisfied, add it
...
There is a mismatch between how the configuration interprets
*initialSwapChoice* when it is not a valid choice, and how
the UI interprets it. If you e.g. do not have a *userSwapChoices*
setting at all, whatever *initialSwapChoice* is set is interpreted
by the UI as "suspend".
Avoid that by putting the choice in the configuration and
warning the user (which ought to be a warning to the distro).
FIXES #1881
2022-01-31 23:15:04 +01:00
Adriaan de Groot
cf2899b1e6
[netinstall] Avoid negative row indexes
2022-01-31 12:59:03 +01:00
Adriaan de Groot
c0f4b80cbe
[netinstall] Tighten up comments and code
...
- comment wandered away from the function it applies to
- use overloaded name for recursive helpers
- document this new feature
2022-01-31 12:55:54 +01:00
Adriaan de Groot
19afa46978
[netinstall] Match comment to code (casing of the identifier)
2022-01-31 12:51:56 +01:00
Adriaan de Groot
6a2e80a0b7
Merge pull request #1879 from dalto8/pkgchooser-netinstall
...
Allow the packagechooser module to modify the netinstall module
2022-01-31 12:44:02 +01:00
Adriaan de Groot
5b994f85c9
[grubcfg] Keep kernel_params as 'quiet' by default
...
- mark some TODO
- tighten up the YAML schema a little bit
- when unset, use 'quiet' rather than empty, to preserve compatibility
with existing configuration files.
SEE #1882
2022-01-31 12:38:20 +01:00
Adriaan de Groot
37e189992e
Merge pull request #1882 from dalto8/grub-defaults
...
[grubcfg] Add configuration for default kernel_params
2022-01-31 12:12:06 +01:00
dalto
e597998021
[packagechooser,netinstall] Clean up duplication and pruning logic for netinstall-add
2022-01-27 19:31:34 -06:00
dalto
f65feedcce
[grubcfg] Add configuration for default kernel_params
2022-01-27 15:53:34 -06:00
dalto
6be1208488
Document global storage keys
2022-01-25 17:52:45 -06:00
dalto
63ed2e5fb8
[packagechooser,netinstall] Change globalstorage keys to camel case
2022-01-25 17:43:19 -06:00
dalto
22c9d888b4
[packagechooser,netinstall] Proper implementation of source field
2022-01-24 17:01:16 -06:00
dalto
1db217931b
[netinstall] Minor changes from code review
2022-01-24 15:39:14 -06:00
dalto
a657d7388c
[packagechooser] Remove obsolete functionality from netinstall-add
2022-01-23 14:47:14 -06:00
dalto
f4c2db7f21
[packagechooser,netinstall] Fix issues where going back and forth between pkgchooser and netinstall produced unexpected behavior
2022-01-23 13:58:10 -06:00
Adriaan de Groot
95122fdcf5
[partition] Warn if the system won't support encryption in a useful way
...
This is the infrastructure bit; if someone can come up with a way
of **meaningfully** detecting support, the detection function can
be given a better implementation.
FIXES #1725
2022-01-22 22:52:50 +01:00
dalto
2aa8c2f0e0
[packagechooser] Ensure multiple instances don't override the GS values
2022-01-19 16:48:56 -06:00
Adriaan de Groot
929496552e
[bootloader] Optionally generate unique suffix for bootloader
2022-01-18 15:09:44 +01:00
Adriaan de Groot
c9156d41b1
[bootloader] Extend tests and docs with a few more error cases
2022-01-18 14:31:13 +01:00
Adriaan de Groot
7a462f4522
[bootloader] Fix issues identified by tests
...
- expectation derp11 was wrong, there were only 10 calls to next()
- using whole name instead of the not-the-suffix-bit was wrong
- phrase generator wrong length
2022-01-18 13:32:24 +01:00
Adriaan de Groot
ed5c4c9c87
[bootloader] Add generators for various suffix-flavors
2022-01-18 13:32:24 +01:00
Adriaan de Groot
b4b7deac2d
[bootloader] Document intentions
...
It may be easiest to modify the efiBootloaderId, since that does not
normally show up in the UI. I cannot quickly come up with a way to
do the same kind of suffixing on the user-visible name.
SEE #1820
2022-01-18 13:32:24 +01:00
Adriaan de Groot
c587145bdd
[umount] Drop all mention of removed configuration keys
2022-01-18 13:25:58 +01:00
dalto
4d5ae96db6
[umount] Add support for umount to be an emergency module
2022-01-18 13:25:00 +01:00
Adriaan de Groot
6034feb69d
[umount] Complete C++ implementation
...
- as a design decision, the deprecated "save some files" functionality
has been dropped from this implementation.
2022-01-18 13:22:45 +01:00
Adriaan de Groot
afa5e75d76
[umount] Start C++ port
2022-01-18 13:22:42 +01:00
Adriaan de Groot
5e4866c439
[partition] Simplify ClearTempMounts
...
- use the shared function for reading mtab entries
2022-01-18 13:22:20 +01:00
Adriaan de Groot
546780d7a8
Merge branch 'issue-1864' into calamares
...
FIXES #1864
2022-01-18 12:39:46 +01:00
Adriaan de Groot
da2612d2d9
[locale] Update language even if there is a current location
...
- the first time we arrive at locale, there isn't a current location
and the setCurrentLocation(...) method ends up calling setLanguage(),
usually. The second time, this call is skipped (not called from
the overloaded setCurrentLocation() which is called from onActivate),
so the language didn't update.
- now call setLanguage() unless there has been one set explicitly.
2022-01-18 12:28:57 +01:00