Commit Graph

8394 Commits

Author SHA1 Message Date
Adriaan de Groot
1ead64bd5b
Merge pull request #2322 from calamares/fixalongsidecrash
[partition] Don't crash when going back without selecting a partition
2024-04-28 17:53:57 +02:00
Adriaan de Groot
4440bf3bfc [partition] Simplify collecting partition descriptions 2024-04-28 17:45:51 +02:00
Adriaan de Groot
4c8e91dc70 [libcalamares] Simplify collecting the maintainers info 2024-04-28 17:38:35 +02:00
Adriaan de Groot
d6c6b7c64b [libcalamares] Remove the commented-out sponsor info 2024-04-28 17:36:27 +02:00
Adriaan de Groot
bdbeadcd65 [partition] Move fstab-handling
This was declared in osprober, but implemented elsewhere.
Move it to the "right" source file, add tests.
While here, repair the listing of fstab entries
(invalid entries were not stripped).
2024-04-28 17:22:16 +02:00
Adriaan de Groot
93094948fa [partition] Actually remove invalid fstab entries 2024-04-28 17:01:07 +02:00
Adriaan de Groot
35990d9a6b [libcalamares] Massage size types to avoid conversion warning 2024-04-28 17:01:07 +02:00
Adriaan de Groot
6dc83fb277 [libcalamares] Deal with Qt5/6 differences in count() 2024-04-28 17:01:07 +02:00
Adriaan de Groot
8c66a558d5 [welcome] Use different color-name
The QColorConstants are deprecated, use other names instead
(this avoids a compile warning from clang against Qt5).
2024-04-28 14:38:14 +02:00
Adriaan de Groot
5a90e0bc6a [users] Remove stray ; 2024-04-28 14:37:19 +02:00
Ivan Borzenkov
f8c6d2c487 add layouts from xkb/ruses/base $nonlatin 2024-04-27 14:26:30 +03:00
Sohrab Behdani
246aa3e217 Fixed Persian Keyboard problem after installing 2024-04-27 13:29:03 +03:30
Sohrab Behdani
cae7b9e868 Added additional keyboard layout for Persian 2024-04-27 10:46:41 +03:30
dalto
cf9837f48c [partition] Don't crash is when going back without selecting a partition 2024-04-22 15:47:28 -05:00
Eugene San (eugenesan)
a7e86e8aff Make sure we do not use missing crypto_keyfile in fstab module
Replaces original commit with refactoring
Refactoring will have to wait
2024-04-17 19:55:20 -07:00
Adriaan de Groot
19aa96fe54 [packagechooser] Repair build
This was broken by clang-format, so mark this weird unformattable
block as don't format.
2024-04-17 11:08:39 +02:00
Adriaan de Groot
00ac9a6cee [welcome] Apply newer clang-formatting 2024-04-17 10:55:24 +02:00
Adriaan de Groot
92a5d07ed7 [partition] Apply newer clang-formatting 2024-04-17 10:55:21 +02:00
Adriaan de Groot
5bf787c1a5 [packagechooser] Apply newer clang-formatting 2024-04-17 10:55:20 +02:00
Adriaan de Groot
011483967d [machineid] Apply newer clang-formatting 2024-04-17 10:55:19 +02:00
Adriaan de Groot
5f293fb40b [locale] Apply newer clang-formatting 2024-04-17 10:55:18 +02:00
Adriaan de Groot
a6cfc79a92 [license] Apply newer clang-formatting 2024-04-17 10:55:18 +02:00
Adriaan de Groot
afd3ed86d9 [keyboard] Apply newer clang-formatting 2024-04-17 10:55:18 +02:00
Adriaan de Groot
9654f487ef [fsresizer] Apply newer clang-formatting 2024-04-17 10:55:17 +02:00
Adriaan de Groot
2100d273ce [finished] Apply newer clang-formatting 2024-04-17 10:55:16 +02:00
Adriaan de Groot
df09d7ae89 [calamares] Apply newer clang-formatting 2024-04-17 10:52:32 +02:00
Adriaan de Groot
8408a3284b [libcalamaresui] Apply newer clang-formatting 2024-04-17 10:51:25 +02:00
Adriaan de Groot
4625208ba2 [libcalamares] Apply newer clang-formatting 2024-04-17 10:50:38 +02:00
Adriaan de Groot
cca2cd3260 [libcalamares] Remove unnecessary QApplication 2024-04-17 10:11:40 +02:00
Penvern Vincent
8469fbd2e8 Fix Next button behviour for all combinations of
enableLuksAutomatedPartitioning and preCheckEncryption configure file
variables
2024-04-16 18:08:11 +02:00
Adriaan de Groot
2e96184406 [partition] Simplify logic, remove dead code 2024-04-16 15:46:09 +02:00
Adriaan de Groot
0a0e647be3 [hostinfo] Do not name unused parameter 2024-04-16 15:42:59 +02:00
Adriaan de Groot
370e75fc71 [libcalamares] Repair apidox for Job 2024-04-16 15:41:12 +02:00
Adriaan de Groot
8ff3849820 [calamares] Switch test-application to use JobQueue
For better realism, use JobQueue to run the jobs of a module,
rather than doing it by hand in a similar-kind-of-loop.
2024-04-16 15:07:58 +02:00
Adriaan de Groot
bf09dfc6af [libcalamares] Suppress sleep / suspend during installation 2024-04-16 15:07:58 +02:00
demmm
f8094bbbbb [localeq] tiny correction map-qt6.qml
api.geonames is not https ready
2024-04-16 12:28:30 +02:00
Penvern Vincent
5ac23cd3d6 Remove m_preCheckEncryption variable from ChoicePage 2024-04-15 22:44:42 +02:00
Penvern Vincent
cc835cee6f do not use Global Storage for variable PreCheckEncryption, other modules
don't have to know if this variable is set to true or false
2024-04-15 16:34:35 +02:00
Adriaan de Groot
30ca0bfa45 [locale] Fix TZ assignments for various locations
- Tehran (UTC+3.5)
- Muscat (UTC+4)
- Dubai (UTC+4)
2024-04-14 22:58:22 +02:00
Adriaan de Groot
51e05241fe [users] Use Calamares command-running API 2024-04-14 22:15:13 +02:00
Adriaan de Groot
dfe07a51a3 [users] Only run AD job if it is enabled (user choice) 2024-04-14 21:41:57 +02:00
Adriaan de Groot
0ef3842da6 [users] Factor out show/hide of AD controls
While here, expand documentation a little.
2024-04-14 21:33:39 +02:00
Adriaan de Groot
f674214741 [user] Rename members to emphasize these are *admin* credentials 2024-04-14 21:07:31 +02:00
Adriaan de Groot
c61399bc8a [users] Apply coding style to unrelated files 2024-04-14 09:53:56 +02:00
Adriaan de Groot
28a10cf8c3 [users] Use more structured data than QStringList
While here, apply coding style.
2024-04-14 09:53:27 +02:00
Adriaan de Groot
2127129227 [users] Use API to get file-paths in target 2024-04-14 09:25:03 +02:00
Adriaan de Groot
d0420ea3ee [users] Add translation context to AD job 2024-04-14 00:20:57 +02:00
Adriaan de Groot
fe68b45fc5 [libcalamares] Explain updating-status-text mechanism 2024-04-13 23:37:49 +02:00
Adriaan de Groot
fb83ad326b [libcalamares] Document recommended translation contexts
Jobs have specific contexts for their different strings.
Many jobs (now) misuse prettyName() as a status message,
although the existing fallback mechanism means that the
name gets used as if it is a status message when the job
does not define a description or status.
2024-04-13 23:30:57 +02:00
Adriaan de Groot
219befacbf
Merge pull request #2300 from lubuntu-team/calamares
Active Directory Support
2024-04-13 22:11:29 +02:00
Penvern Vincent
70a59d6cd1 add possibility to pre check encryption checkox 2024-04-13 02:09:09 +02:00
Adriaan de Groot
f6cd82f9a4 [bootloader] Group local variables
Put the constants -- do we use systemd, what are the partitions --
together, and put the things-set-by-the-loop together.
2024-04-12 22:08:54 +02:00
Adriaan de Groot
6d242b67f9 [bootloader] Start building kernel parameters earlier
- drop unnecessary variable
- build "quiet splash rw" first
2024-04-12 22:05:47 +02:00
Adriaan de Groot
b4edf52198 [bootloader] Avoid indirection through shell
There's no need to run the shell to take apart the arguments to grep.
2024-04-12 21:55:26 +02:00
Adriaan de Groot
b8049daa45 [bootloader] Factor out running "which" in target
which is an actual program, drop the round-about via shell
2024-04-12 21:42:49 +02:00
Eugene San (eugenesan)
51d6dd23ea Mirror GRUB's splash screen functionality for non-grub booloaders 2024-04-12 12:08:47 -07:00
Adriaan de Groot
134b2c8d83
Merge pull request #2305 from ptr1337/plymouthcfg-fix
plymouthcfg: Use plymouth-set-default-theme instead of sed
2024-04-09 15:50:01 +02:00
Adriaan de Groot
b950f0f6d4 [users] Remove duplicated constant (a regexp) 2024-04-02 23:33:21 +02:00
Adriaan de Groot
fbde737802 [partition] Don't redundantly specify value binding in lambda 2024-04-02 23:33:21 +02:00
Adriaan de Groot
14c8893b03 [libcalamares] Turn off Clang 17 warning for MOC
The build produces a zillion warnings about unsafe buffer usage
in the code that wrangles metaobjects and slot names. That is
generated code and we can't fix it.
2024-04-02 23:33:21 +02:00
Adriaan de Groot
b396f70d12 [partition] Fix typo's in example config 2024-04-02 23:33:21 +02:00
Adriaan de Groot
36485c8571 [partition] Simplify logic for checking for unencrypted /boot 2024-04-02 23:33:21 +02:00
demmm
f0c2295606 [localeq]Map-qt6 needed changes for Qt6 & Wayland
dragging & zooming now needs QML entries
osm is the only qtlocation provided map plugin, preferred thus useless now
no solution yet for warning (API key required), upstream bug reports offer no fix,
example https://bugreports.qt.io/browse/QTBUG-115742
2024-03-30 20:11:48 +01:00
Peter Jung
2fd98c913a
plymouthcfg: Use plymouth-set-default-theme instead of sed
Currently we are running into an issue, when setting the default theme via "sed", since the "[DAEMON]" entry in /etc/plymouth/plymouthd.conf is commented, which results into that the theme is not correctly applied.

Signed-off-by: Peter Jung <admin@ptr1337.dev>
2024-03-29 20:05:41 +01:00
Adriaan de Groot
ec0316806f [locale] Fix build with DEBUG_TIMEZONES 2024-03-29 02:09:18 +04:00
Adriaan de Groot
6b2c996d06
Merge pull request #2303 from calamares/mount_efi_fix
[mount] Ensure efi partition gets correct options
2024-03-26 16:32:19 +01:00
Mike Stemle
a659db1f9c
Update Presentation.qml
The `padding` property is present in the qt5 version, but not the qt6 version. I notice a syntax error as a result of this missing propertly.
2024-03-24 13:27:44 -04:00
dalto
bdd059ffa8 [displaymanager] Fix sddm config file writing to the wrong location 2024-03-23 09:43:15 -05:00
dalto
e8726111f8 [mount] Ensure efi partition gets correct options 2024-03-17 19:03:02 -05:00
Simon Quigley
408ee0338a Active Directory Support 2024-03-07 15:26:32 -06:00
Peter Jung
60c5f3fd5a
initcpiocfg: Add microcode module
Signed-off-by: Peter Jung <admin@ptr1337.dev>
2024-03-04 19:44:03 +01:00
Adriaan de Groot
10acebff46 [displaymanager] repair tests by removing extra / 2024-03-03 23:11:55 +01:00
Adriaan de Groot
1ca9c7516b [displaymanager] Use (optional) configuration value
FIXES #1757
2024-03-03 21:16:21 +01:00
Adriaan de Groot
25ab3f7f03 [displaymanager] Add SDDM config-file setting 2024-03-03 21:12:37 +01:00
Adriaan de Groot
012138c1f2 [libcalamares] Start with 3.5 TODOs, improve naming 2024-03-03 21:01:01 +01:00
dalto
9992cf2507 [calamares] Fir preprocessor directives 2024-03-02 15:04:44 -06:00
dalto
7fd9d48a20 [calamares] Add python integration type and build type to log 2024-03-02 14:52:16 -06:00
dalto
74ccb4d28b [calamares] Add Qt version to debug log 2024-03-02 14:21:58 -06:00
Adriaan de Groot
098bbd520e [calamares] do not treat strings as lists
In Qt5, a QVariant created from a QString doesn't convert to a
QVariantList. In Qt6, it does. It is unclear if that is because it would
take two conversions (QString -> QStringList -> QVariantList) or
something else.

Exclude QStrings from being considered list-like; this works in both Qt5
and Qt6, and fixes weirdness in the Debug window.
2024-02-29 00:35:12 +01:00
Adriaan de Groot
49afa16b1c [calamares] factor out variant-type-checking in debug window 2024-02-29 00:33:08 +01:00
Adriaan de Groot
5568d22549 [networkcfg] fix python crash
open(path, "w") returns a TextIOWrapper,
open(path, "wb") returns a BufferedWriter,
.. neither of which is one of the types that os.chmod()
   consumes. Use fileno(), an integer file-descriptor.

FIXES #2294
2024-02-27 22:16:14 +01:00
Adriaan de Groot
91454a71d0 [calamares] missing include
Include for getpid() is needed on FreeBSD.
2024-02-27 00:52:21 +01:00
Adriaan de Groot
c4e0456acc [locale] avoid crash when there are no good locales
If the running locale doesn't match any locale in the list,
nothing is selected. Avoid a crash when referring to
first() of an empty list.
2024-02-27 00:28:36 +01:00
Adriaan de Groot
9925d6666f [calamares] Improve "crash self" functionality
Instead of UB, use POSIX signals and terminate the Calamares
process with a recognizable signal number (TRAP, which is
highly unusual).
2024-02-27 00:08:41 +01:00
Adriaan de Groot
2555b5baf4 [calamares] avoid double-quit message
In Qt5, QApplication::quit() was sufficient.
In Qt6, QApplication::quit() sends close events to top-level
windows, so we get a duplicate prompt for quit.

See https://blog.broulik.de/2023/11/on-the-road-to-plasma-6-vol-4/
2024-02-27 00:02:03 +01:00
Adriaan de Groot
f57ee158b7 Merge branch 'issue-2212' into calamares 2024-02-26 22:38:28 +01:00
Adriaan de Groot
028e9e68f9 [libcalamares] Add ${LANG} to process expansions 2024-02-26 22:37:20 +01:00
Adriaan de Groot
0f2bceb72f Docs: process jobmodules now expand variables 2024-02-26 21:58:40 +01:00
Adriaan de Groot
ab3612d18d [partition] tidy up constructor - use initializer-list 2024-02-26 21:39:37 +01:00
Victor Fuentes
01cbe07641
Make default partition entry have partNoEncrypt be false 2024-02-26 01:55:26 -05:00
Adriaan de Groot
2697c35fc7 [libcalamares] Run ProcessJobs with CommandLine
This makes the behavior of process jobs and shellcommands the same.
2024-02-25 23:22:19 +01:00
Adriaan de Groot
4329b824d4 [libcalamares] Test command-expansion with environment 2024-02-25 23:22:19 +01:00
Adriaan de Groot
0ced01ddc3 [libcalamares] Test environment-setting for CommandLine 2024-02-25 23:22:19 +01:00
Adriaan de Groot
d5555eba32 [libcalamares] Add environment-setting to CommandLine
This class is shared -- used by shellprocess and contextualprocess --
to collect the command settings for a single shell invocation.
2024-02-25 23:22:19 +01:00
Adriaan de Groot
6770f781e3 [libcalamares] Tests for new CommandLine constructors 2024-02-25 23:22:19 +01:00
Adriaan de Groot
ae3e609024 [libcalamares] Get default timeout from CommandList 2024-02-25 23:22:19 +01:00
Adriaan de Groot
4aa2c4988c [libcalamares] Replace factory method with constructor 2024-02-25 23:22:19 +01:00
Adriaan de Groot
0d9d2ac59a [libcalamares] Extend CommandLine
- rename fields so they are meaningful (this is a leftover
  from it inheriting std::pair)
- add environment list member
- add constructor that consumes a QVariantMap
2024-02-25 23:22:19 +01:00
Adriaan de Groot
15c514326c [shellprocess] Improve config docs 2024-02-25 23:22:19 +01:00
Adriaan de Groot
b795fd82bb [contextualprocess] Improve config docs 2024-02-25 23:22:19 +01:00