Adriaan de Groot
f56250624f
netinstall: adjust to Qt6
2023-09-05 15:34:04 +02:00
Adriaan de Groot
e781e4eb5f
license: adapt to Qt6
2023-09-05 15:24:02 +02:00
Adriaan de Groot
427311f2c3
keyboard: port to QRegularExpression
2023-09-05 15:18:02 +02:00
Adriaan de Groot
22bd80daac
hostinfo: adjust to Qt6
2023-09-05 00:05:57 +02:00
Adriaan de Groot
1b5206cb90
locale: adjust to Qt6
2023-09-05 00:05:57 +02:00
Adriaan de Groot
93e9990df8
keyboard: adapt to Qt6
2023-09-05 00:05:46 +02:00
Adriaan de Groot
6ffafe1c45
interactiveterminal: consider this KF5-only for now
...
It seems unlikely that a KF6-based terminal part from konsole
becomes available any time soon, so don't bother.
2023-09-05 00:05:46 +02:00
Adriaan de Groot
5f8b6ed437
dummycpp: adapt to Qt6
...
- since HashVariantType has more than one consumer, move it to header
2023-09-05 00:05:46 +02:00
Adriaan de Groot
e07b6c90d3
contextualprocess: adapt to Qt6
2023-09-05 00:05:46 +02:00
Hector Martin
1ca3ce7145
keyboard: Do the autodetection stuff after setConfigurationMap
...
Since we now rely on the layout1 mode being set from the config, we need
to defer the initial keymap detection until after that's initialized.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-09-04 17:11:46 +09:00
Adriaan de Groot
8f836969eb
Merge branch 'work/qt6' into calamares
2023-09-03 23:04:12 +02:00
Adriaan de Groot
30a8b337e1
finished: enable Qt6 build
2023-09-03 23:02:47 +02:00
Adriaan de Groot
c5929e30d1
welcome: enable Qt6 build
...
- Adjust for QVariant changes
- Fix tests, no more conversion available from QFile to QFileInfo
2023-09-03 23:02:09 +02:00
Adriaan de Groot
e6ce29ed33
Merge pull request #2194 from AsahiLinux/passwd-fix
...
[users] Use usermod to disable passwords
2023-09-03 21:19:01 +02:00
Adriaan de Groot
4b87d094fb
initcpiocfg: repair test
...
Empty example config files break tests; there should be at
least a single key in there (for instance, *bogus*, but
setting a flag to the default value is also acceptable)
2023-09-03 21:15:44 +02:00
Hector Martin
a377df2e65
[users] Use usermod to disable passwords
...
On Fedora 38 (and probably others), this step fails with:
passwd -dl root
passwd: Only one of -l, -u, -d, -S may be specified.
Use usermod to wipe and disable the root password instead, which should
work properly. We use '!' (opinions seem to differ on how to mark
disabled/unused accounts, but all of '*' '!' '!!' should have the same
effect in practice).
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-09-03 19:58:13 +09:00
dalto
7fa8fa680c
[initcpiocfg] Make using systemd hook optional
2023-09-02 10:01:05 -05:00
Hector Martin
7806d264ab
[keyboard] Fix locale1 support for alternate layouts
...
Copy&paste error caused setting the layout to fail for non-ASCII layouts
with an alternate layout/variant.
Fixes: 812d86130
(\"[keyboard] Add support for setting the layout via locale1\")
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-09-02 22:15:45 +09:00
Adriaan de Groot
6733815269
keyboard: prefer to clean up lists only once
2023-08-29 14:59:13 +02:00
Adriaan de Groot
b85fcff990
keyboard: removeEmpty doesn't need to be a method
2023-08-29 14:55:54 +02:00
Adriaan de Groot
55a2d71e3e
Merge pull request #2136 from ivan1986/fix-non-ascii-keyboard
...
Write layout information for non-ASCII keyboard to X11 and console settnigs.
FIXES #2135
2023-08-29 14:48:12 +02:00
Adriaan de Groot
3fc8febeea
keyboard: require QtDBus at top-level, tidy includes
2023-08-29 14:37:01 +02:00
Adriaan de Groot
7157ed3854
keyboard: add new keys to schema
...
The stated schema-default for useLocale1 is not entirely correct,
since the code checks for X11 vs. Wayland to determine what the
default should be.
2023-08-29 14:33:21 +02:00
Adriaan de Groot
8d61345cd6
Merge pull request #2180 from AsahiLinux/keyboard-locale1
...
keyboard: Add locale1 support & option to keep defaults
2023-08-29 11:41:37 +02:00
Adriaan de Groot
8e19d6080d
mount: use False as default for "claimed"
...
The regular tests would fail, because the sample global
configuration does not set the "claimed" value of a partition.
2023-08-28 22:54:22 +02:00
Adriaan de Groot
72bad83022
luksbootkeyfile: support explicit 'default' setting
2023-08-28 22:45:56 +02:00
dalto8
f804965a8d
Merge pull request #2183 from Boria138/initcpiocfg
...
Updated the initcpiocfg module
2023-08-27 20:54:37 +00:00
dalto8
0ddffad57c
Merge pull request #2187 from bkmo/bkmo
...
Update LuksBootKeyFileJob.cpp to check for unencrypted boot with encrypted root
2023-08-26 19:40:45 +00:00
dalto
b5e0ebe4c9
[luksBootKeyFile] Remove unused function hasEncryptedRoot()
2023-08-26 14:15:18 -05:00
dalto
3552691e57
[grubcfg] Add rd.luks.key for systemd-encrypt hook
2023-08-26 11:22:41 -05:00
dalto
d12e40bc34
[initcpiocfg] Fix encryption hook not being added with encrypted /boot
2023-08-26 09:55:45 -05:00
Brian Morison
ab8159a77f
Update LuksBootKeyFileJob.cpp
2023-08-20 13:28:06 -06:00
Brian Morison
f0fb39edd8
Update LuksBootKeyFileJob.cpp
2023-08-20 13:07:58 -06:00
dalto8
0eb431dd2b
Merge pull request #2181 from AsahiLinux/hello-im-a-mac
...
[users] Handle Device Tree platforms (e.g. Apple Silicon) for guessing the product name
2023-08-20 17:02:17 +00:00
dalto
a9547af8e2
[initcpiocfg,grubcfg,bootloader] Minor code improvements
2023-08-20 10:39:36 -05:00
Boria138
b97a5d535c
Fixed a stupid typo
2023-08-19 23:08:44 +06:00
Boria138
950e9d1d0a
Added setfont check in mkinitcpiocfg
2023-08-19 21:00:25 +06:00
Boria138
9f8b848631
uses_sd-encrypt was changed to uses_sd_encrypt to make it a valid variable name
2023-08-19 15:29:49 +06:00
Boria138
c0396cf28b
Deleted quot
2023-08-19 14:26:36 +06:00
Boria138
bf7f5c6032
Fixed initcpiocfg
2023-08-19 12:52:35 +06:00
Boria138
7d6a04d3a8
Added the necessary edits
2023-08-17 21:14:47 +06:00
Boria138
543de65f33
Added rd.luks.name to grubcfg
2023-08-17 13:04:24 +06:00
Boria138
5769c9c6da
Fixes https://github.com/calamares/calamares/issues/2182
2023-08-17 12:44:13 +06:00
Boria138
438e0c6575
Updated the initcpiocfg module
...
Added systemd (I took the code from CachyOS and modified it a bit)
Fixed the error "setfont: KDFONTOP: Function not implemented"
2023-08-17 11:13:19 +06:00
dalto8
3bec262d2d
Merge pull request #2176 from nintyfan/WIP/Packaging-Flatpak-2
...
Wip/packaging flatpak 2
2023-08-12 15:00:12 +00:00
Hector Martin
a899f76da2
[users] Clean up DMI model more for hostname
...
Remove anything in parentheses, and also drop the "Apple" prefix for
Apple machines. This converts:
"Apple MacBook Air (13-inch, M2, 2022)"
into:
"MacBookAir"
which is a lot more reasonable.
Other vendors could be added as needed (it's inconsistent whether DT
platforms prefix the model with the vendor or not).
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-08-12 22:48:26 +09:00
Hector Martin
17e1027ea2
[users] Read product from the device tree on DT platforms
...
Non-DMI platforms may have a device tree instead (e.g. many embedded
devices, Apple Silicon Macs). If we find a model string in the DT, use
that as a fallback when DMI is not available.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-08-12 22:48:26 +09:00
Hector Martin
8be65003ce
[keyboard] Use the current keyboard model as the default
...
If there is a valid keyboard model set in the system already, keep it.
This allows distributors to preconfigure the correct model if known.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-08-12 22:09:31 +09:00
Hector Martin
6678d95a5d
[keyboard] Add an option to disable layout guessing
...
If the system has already pre-configured a sensible keyboard layout, we
do not need to guess based on the locale. Add a config option to keep
the existing keyboard layout as the default. This should work on both
XKB/X11 and locale1 modes.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-08-12 21:42:54 +09:00
Hector Martin
9e81d7cf21
[keyboard] Do not update configs in locale1 mode when root is /
...
If Calamares is running with no root path and we are using locale1 to
manage the keyboard configs, then the service has already updated the
X11 and VConsole keymap configs for us. In that case, we should not
touch the config files ourselves.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-08-12 21:42:32 +09:00
Hector Martin
25bb41f549
[keyboard] Add support for getting the layout via locale1
...
Getter counterpart to the previous commit, to support using locale1 to
fetch the current keyboard config.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-08-12 21:42:32 +09:00
Hector Martin
812d861307
[keyboard] Add support for setting the layout via locale1
...
setxkbmap only works on X11/XWayland, and even on XWayland does not
correctly change the Wayland keyboard layout.
The "modern" way to control the system keyboard layout is via the
locale1 DBus interface (or the localectl frontend). On compositors like
KWin, this will update the keyboard layout on the fly, which is what we
want.
Implement support for setting the layout/model configs using locale1.
This is enabled by default when Calamares runs under Wayland, and can be
controlled via a config setting.
Signed-off-by: Hector Martin <marcan@marcan.st>
2023-08-12 21:18:05 +09:00
dalto8
44da0b24e5
Merge pull request #2161 from abalfoort/showbootmsg
...
partitioning: Show/hide "Boot partition not encrypted" warning
2023-08-05 14:05:32 +00:00
Sławomir Lach
ab7b78e9ce
Newer flatpak will remove unused, so do not instruct for do that
2023-08-05 15:55:00 +02:00
Sławomir Lach
79085b5e80
- Uninstalling flatpak is possible (repair bad command)
2023-08-03 19:08:55 +02:00
Sławomir Lach
ec30fe1b61
- Force flatpak do not asks questions
2023-08-02 17:42:11 +02:00
Sławomir Lach
3666e3af7b
Revert "Made possible to select flatpaks to install (fill list of netinstall)"
...
This reverts commit cc90dcf556
.
2023-08-02 10:28:50 -04:00
Sławomir Lach
cc90dcf556
Made possible to select flatpaks to install (fill list of netinstall)
2023-08-01 08:30:05 -04:00
Sławomir Lach
d77215c227
- Made installing of flatpaks possible
2023-08-01 08:28:48 -04:00
Ivan Borzenkov
8ca841d08e
refactor after review - use QStringList
2023-07-08 19:19:38 +03:00
Ivan Borzenkov
2d0940e555
fix non ascii keyboard
2023-07-08 18:41:05 +03:00
Ficelloo
39e2b527eb
Update PartUtils.cpp
2023-07-06 21:05:51 +02:00
Ficelloo
cb7258249d
Fixing partutils.cpp
2023-07-06 19:16:37 +02:00
Adriaan de Groot
e7161443d6
partition: simplify Arm code
...
- introduce a helper function for accessing the globalstorage value
- add consts and calculate the initial gap in a single expression
2023-06-25 22:21:01 +02:00
Adriaan de Groot
baf580f0ac
partition: apply layout
2023-06-25 22:15:56 +02:00
Adriaan de Groot
e78f8840ea
Merge branch 'calamares' of github.com:calamares/calamares into calamares
2023-06-25 22:05:28 +02:00
Adriaan de Groot
f00fa429bf
Merge pull request #2142 from Rippanda12/armInstall
...
partition: Add armInstall
2023-06-25 22:05:10 +02:00
abalfoort
48fd148b8a
Handle show warning in function
2023-06-25 10:53:19 +02:00
abalfoort
240f18e5bd
Show/hide "Boot partition not encrypted" warning
2023-06-23 15:56:02 +02:00
ABalfoort
20b4cefedb
Merge branch 'calamares:calamares' into luksbootkeyfile
2023-06-13 08:49:54 +02:00
abalfoort
33aeabd617
Implement requested changes
2023-05-31 18:25:16 +02:00
abalfoort
1963dd3412
Optional luks2Hash with enum
2023-05-31 18:23:00 +02:00
abalfoort
c4496ef86b
Add configurable variable m_luks2Hash
2023-05-31 14:43:39 +02:00
abalfoort
1e2a51f952
Remove NO_CONFIG
2023-05-31 14:42:39 +02:00
abalfoort
06d6f217b5
Added luksbootkeyfile.conf/yaml
2023-05-31 14:42:18 +02:00
dalto8
63c3f68619
Merge pull request #2141 from Rippanda12/calamares
...
Initcipiocfg fix for non x86 cpus
2023-05-27 13:24:11 +00:00
Philip Müller
ca2e36b3f3
Update services-systemd.conf
...
- reflect that file endings are now needed in the example
2023-05-26 13:15:19 +02:00
dalto8
2f6eb272c1
Merge pull request #2139 from Sunderland93/new_desktops
...
Add River and Hyprland to desktop list
2023-05-24 11:56:53 +00:00
abalfoort
e01b45f008
Check nr used slots
2023-05-23 17:18:10 +02:00
abalfoort
def9bf18d3
Revert removing check on root with unencrypted boot
2023-05-23 15:07:54 +02:00
abalfoort
5c4557e4d1
Create key file for LUKS2 devices
2023-05-23 13:47:39 +02:00
Evan Goode
7a67840c9b
[packages] Call dnf-3 binary, not dnf
...
DNF is being replaced by a new package manager, DNF 5, in Fedora 39+.
The `dnf` binary will soon symlink to DNF 5 instead of DNF 5. The old
DNF 4 binary will still be (and always has been) available as
/usr/bin/dnf-3.
Until Calamares adds support for DNF 5, it should explicitly call the
old dnf-3 binary.
2023-05-22 12:03:22 -04:00
Panda
d662fb084d
Add armInstall
2023-05-21 07:02:22 +00:00
Panda
b2c75a1af8
Fix initcpio
...
ARM cpus dont have vendor tag in /proc/cpuinfo
2023-05-20 09:11:47 +03:00
Sunderland93
4bf1b0fa7e
Add River and Hyprland to desktop list
2023-05-17 16:25:57 +04:00
Adriaan de Groot
6eff07eff2
i18n: no need to translate useless 'Form' text on UI pages
2023-04-25 11:14:55 +02:00
dalto
d35e69c8a9
[mount] Warn on failure to activate swap partition
2023-03-11 10:16:20 -06:00
dalto8
9a75b68ed8
Merge pull request #2109 from Sunderland93/greetd_environment_fix
...
greetd: Change environments entry from desktopFile to desktopExecutable
2023-03-10 23:26:26 +00:00
dalto8
70d4512635
Merge pull request #2103 from dalto8/zfsenhance
...
[partition] Add support for zfs encryption
2023-03-10 23:25:49 +00:00
dalto
da295e00f9
[displaymanager] Fix bug in lightdm preferred greeter implementation
2023-03-05 19:37:33 -06:00
dalto
079f608700
[displaymanager] Fix bug with find_preferred_greeters()
2023-03-05 13:58:13 -06:00
Sunderland93
3a0cb8d1fd
change environments entry from desktopFile to desktopExecutable
2023-03-05 10:40:17 +04:00
dalto
f5b974984c
[partition] Remove WITH_KPMCORE42 to fix luks2 support
2023-03-03 19:05:06 -06:00
dalto
ce6f498358
[mount] Post-merge cleanup of swap enablement
2023-02-28 18:35:18 -06:00
Masato TOYOSHIMA
c296f67356
Update main.py
2023-02-26 07:48:51 +09:00
Masato TOYOSHIMA
5513ffcd1c
Update main.py
2023-02-26 07:24:12 +09:00
Masato TOYOSHIMA
0038751106
UAdded automatic enabling of swap partition before installation starts.
...
Mainly to suppress installer stoppages caused by oom killer.
2023-02-26 07:17:40 +09:00
Masato TOYOSHIMA
719c6f2ff1
Merge branch 'calamares:calamares' into calamares
2023-02-26 02:00:48 +09:00
Masato Toyoshima
6c25be670d
Added automatic enabling of swap partition before installation starts.
...
Mainly to suppress installer stoppages caused by oom killer.
2023-02-26 02:00:12 +09:00
Adriaan de Groot
92a208104b
[displaymanager] lightdm: default to no-preferred-greeter
...
While here, drop nonsensical alternatives: if it's not a
.desktop file, it's not going to work anyway.
2023-02-24 21:10:20 +01:00