Adriaan de Groot
f651fc9bff
[initcpiocfg] Allow alternate source file
...
This is possibly only interesting for testing purposes.
2024-06-10 22:37:55 +02:00
Adriaan de Groot
19b0f28f16
[initcpiocfg] Support additional hooks-munging
...
FIXES #2200
2024-06-10 22:17:21 +02:00
Peter Jung
60c5f3fd5a
initcpiocfg: Add microcode module
...
Signed-off-by: Peter Jung <admin@ptr1337.dev>
2024-03-04 19:44:03 +01:00
Frede Hundewadt
98d534d5dd
[initcpiocfg] use f-string - use new style bash array (issue #2243 )
2023-11-26 14:57:19 +01:00
dalto
f3f5bd8a5d
[initcpiocfg] Revert addition of setfont
2023-09-10 12:53:31 -05:00
dalto
09ccdb4ecb
[initcpiocfg] Fix typo in initcpiocfg.conf
2023-09-09 10:10:02 -05:00
dalto8
7c55529072
[initcpiocfg] Remove noconfig since a config file was added
2023-09-06 22:20:53 +00: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
dalto
7fa8fa680c
[initcpiocfg] Make using systemd hook optional
2023-09-02 10:01:05 -05:00
dalto
d12e40bc34
[initcpiocfg] Fix encryption hook not being added with encrypted /boot
2023-08-26 09:55:45 -05:00
dalto
a9547af8e2
[initcpiocfg,grubcfg,bootloader] Minor code improvements
2023-08-20 10:39:36 -05:00
Boria138
950e9d1d0a
Added setfont check in mkinitcpiocfg
2023-08-19 21:00:25 +06:00
Boria138
bf7f5c6032
Fixed initcpiocfg
2023-08-19 12:52:35 +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
Panda
b2c75a1af8
Fix initcpio
...
ARM cpus dont have vendor tag in /proc/cpuinfo
2023-05-20 09:11:47 +03:00
Peter Jung
672cbc3d1a
Use kms hook after autodetect
...
Signed-off-by: Peter Jung <admin@ptr1337.dev>
2022-12-23 11:47:19 +01:00
Peter Jung
56fafb8769
Add "kms" hook to initcpiocfg
...
The "kms" hook got added with commit¹ to the default hooks array. Follow the archlinux defaults and add it also.
1. b99eb1c0d5
Signed-off-by: Peter Jung <admin@ptr1337.dev>
2022-12-18 14:22:10 +01:00
Peter Jung
5c87452b67
fix initcpiocfg filesystems loop
...
Signed-off-by: Peter Jung <admin@ptr1337.dev>
2022-09-24 13:46:44 +02:00
Peter Jung
341fecd3ff
fix initcpio issue from 3.3 merge
...
Signed-off-by: Peter Jung <admin@ptr1337.dev>
2022-06-09 04:00:18 +02:00
Adriaan de Groot
d1e4740e70
Merge branch 'calamares' into work-3.3
2022-02-02 14:41:58 +01:00
dalto
1f9ae6cae6
[initcpiocfg] Only add zfshook if zfs is enabled
2022-01-07 14:49:26 -06:00
Adriaan de Groot
ce23efae99
Merge branch 'calamares' into work-3.3
2021-11-30 11:39:30 +01:00
dalto
76892136cf
[initcpiocfg] Add support for zfs
2021-11-15 18:41:34 -06:00
Adriaan de Groot
c1e1e6c3a4
Merge branch 'calamares' into work-3.3
2021-09-28 23:37:38 +02:00
demmm
65c1ef7cb5
[initcpiocfg] fix install failure due to extra s
2021-09-24 16:27:35 +02:00
librewish
e5e9e14a9f
[initcpiocfg] add consolefont to hooks
2021-09-24 12:30:42 +05:30
Adriaan de Groot
cf6c930df5
Merge remote-tracking branch 'origin/calamares' into work-3.3
2021-09-22 11:51:14 +02:00
Adriaan de Groot
cb92e49363
[initcpiocfg] Document this module
2021-09-21 15:16:08 +02:00
Adriaan de Groot
a4c714238f
[initcpio] Refactor file-writing
...
- iterate over the lines of the source file, rather
than over indexes, and make clear that the hooks, modules and files
lines are replaced, rather than merged.
- this calls write() more often, but it's only a few lines
2021-09-21 13:39:29 +02:00
Adriaan de Groot
12cd9dd5b2
[initcpiocfg] Refactor
...
- Read the host /etc/mkinitcpio.cfg in one function rather
than hiding it inside the writer
2021-09-21 13:18:01 +02:00
Adriaan de Groot
60e495bd8c
[initcpiocfg] Refactor, improve testability
...
- don't chain directly from modify_mkinitcpio_conf() to the
function that writes the file write_mkinitcpio_lines();
split into "figure out what needs to be written" and calling
that writing-function, so that we can test / check / log
if needed between the two.
2021-09-21 13:13:21 +02:00
Adriaan de Groot
118e18ac60
[initcpiocfg] Code-shuffle
...
- put the system-information and -detection functions at top
and the "do the actual work" things below
- don't mix the boolean do-we-use-this flags with the
lists of files and modules which are the important
parts of modify_mkinitcpio_conf
2021-09-21 13:03:13 +02:00
Adriaan de Groot
7c3c7c4ff7
[initcpiocfg] Use booleans for boolean values
...
(as previous) Use False/True rather than ""/"yes" for
keeping track of does-the-system-use-lvm2.
2021-09-21 12:54:18 +02:00
Adriaan de Groot
7f7dc04e8d
[initcpiocfg] Use bools for boolean values
...
Having "" and "yes" as values is a bit shell-script-ish.
Use a regular boolean value instead; simplify code
while we're at it.
2021-09-21 12:52:16 +02:00
Adriaan de Groot
45daebd989
[initcpiocfg] Refactor CPU-characteristics determination
...
The code is still over-wrought, but the API for cpuinfo
now exposes the interesting thing (is it Intel?) in
a useful -- more readable -- way.
2021-09-21 12:42:58 +02:00
Vitor Lopes
f9dc932f62
[initcpiocfg] fix english in human-visible string
2021-09-16 14:11:29 +02:00
Vitor Lopes
4b08aebe7f
[initcpiocfg] Use F strings, python3.6 only
2021-09-16 14:11:29 +02:00
Vitor Lopes
1fe27effe5
[initcpiocfg] rework swap_uuid statement and filesystem hook
2021-09-16 14:11:21 +02:00
Vitor Lopes
453e760709
[initcpiocfg] use format instead of %
2021-09-16 14:11:11 +02:00
Vitor Lopes
0ad9242ab7
[initcpiocfg] mkinitcpio.conf might not understand single quotes
2021-09-16 14:11:01 +02:00
Vitor Lopes
5da736466c
[initcpiocfg] rework is_intel_cpu
2021-09-16 14:10:56 +02:00
Vitor Lopes
df256b608a
[initcpiocfg] code tidy up
2021-09-16 14:10:45 +02:00
Adriaan de Groot
cf0119ed4a
[initcpiocfg][plymouthcfg] Consistent find-plymouth code
...
- drop the debugging line because that has already been
logged by the call to `runCommand()` that backs
`target_env_call()`.
- use the same (top-level) function rather than having a
function and elsewhere a very-similar method.
2021-04-16 10:23:29 +02:00
Chrysostomus
59cfdcccdf
Use variable instead of a function
2020-12-05 22:57:51 +02:00
Chrysostomus
0ed0d37693
Don't use plymouth-encrypt if there is keyfile in use, because it is buggy and asks for password even when it is not needed
2020-12-05 22:55:35 +02:00
Chrysostomus
b7cc4860e0
Put the condition on a single line for prettiness sake
2020-11-06 21:45:01 +02:00
Chrysostomus
84558333bf
Regular plymouth hook is also still needed
2020-11-03 13:57:19 +02:00
Chrysostomus
3bf57c7785
Use graphical decryption prompt with plymouth as adviced here: https://wiki.archlinux.org/index.php/plymouth#The_plymouth_hook
2020-11-03 13:55:24 +02:00
Adriaan de Groot
1cd9b93a22
REUSE: Giant boilerplate cleanup
...
- point to main Calamares site in the 'part of' headers instead
of to github (this is the "this file is part of Calamares"
opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
this is the 3-paragraph summary of the GPL-3.0-or-later, which has
a meaning entirely covered by the SPDX tag.
2020-08-26 02:28:38 +02:00