Skip to content

Commit 4c5013a

Browse files
committed
fix(alteriso): let calamares rebuild every mkinitcpio preset
1 parent a0ff1f0 commit 4c5013a

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# LLM Generated: Created by Claude
21
---
3-
kernel: "%KERNEL_NAME%"
2+
kernel: all
43
be_unsafe: false

‎alteriso/modules/alter-calamares/module.sh‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
# shellcheck disable=SC2154
33

44
__alteriso_calamares_validate() {
5-
local _username _kernel
5+
local _username
66
_username=$(__alteriso_profiledef_username)
7-
_kernel=$(__alteriso_profiledef_kernelname)
87
if [[ -z "$_username" || "$_username" == "null" ]]; then
98
echo "[alteriso] ERROR: The alter-calamares module requires a non-empty username." >&2
109
exit 1
1110
fi
12-
if [[ -z "$_kernel" || "$_kernel" == "null" ]]; then
13-
echo "[alteriso] ERROR: The alter-calamares module requires a non-empty kernel_name." >&2
14-
exit 1
15-
fi
1611
}
1712

1813
__alteriso_add_validator __alteriso_calamares_validate
@@ -23,13 +18,6 @@ __alteriso_calamares_replace_username() {
2318
sed -i "s|%USERNAME%|${_username}|g" "$pacstrap_dir/etc/calamares/modules/removeuser.conf"
2419
}
2520

26-
__alteriso_calamares_replace_kernel() {
27-
local _kernel
28-
_kernel=$(__alteriso_profiledef_kernelname)
29-
sed -i "s|%KERNEL_NAME%|${_kernel}|g" "$pacstrap_dir/etc/calamares/modules/initcpio.conf"
30-
}
31-
3221
__alteriso_calamares_customize_airootfs() {
3322
__alteriso_calamares_replace_username
34-
__alteriso_calamares_replace_kernel
3523
}

0 commit comments

Comments
 (0)