File tree Expand file tree Collapse file tree
alteriso/modules/alter-calamares
airootfs.any/etc/calamares/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # LLM Generated: Created by Claude
21---
3- kernel: "%KERNEL_NAME%"
2+ kernel: all
43be_unsafe: false
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments