V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -28,15 +28,6 @@ check_kernel() {
|
|||||||
declare -i counter=1
|
declare -i counter=1
|
||||||
declare first_string="" line="" name="" options="" var_cpu_vendor="" var_system_architecture=""
|
declare first_string="" line="" name="" options="" var_cpu_vendor="" var_system_architecture=""
|
||||||
|
|
||||||
cat << 'EOF' >| "${VAR_NOTES}"
|
|
||||||
Kernel available
|
|
||||||
*+bpo* : Debian Backported Kernel
|
|
||||||
*cloud* : Special lightweight images for KVM
|
|
||||||
*unsigned* : Unsigned Kernel
|
|
||||||
*preempt_rt* : Special Kernel for real-time-computing
|
|
||||||
Not unsigned marked are MS signed Kernel for Secure Boot
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# shellcheck disable=SC2312
|
# shellcheck disable=SC2312
|
||||||
var_cpu_vendor=$(</proc/cpuinfo grep 'vendor_id' | head -n1 | cut -d: -f2 | xargs)
|
var_cpu_vendor=$(</proc/cpuinfo grep 'vendor_id' | head -n1 | cut -d: -f2 | xargs)
|
||||||
var_system_architecture="$(dpkg --print-architecture)"
|
var_system_architecture="$(dpkg --print-architecture)"
|
||||||
@@ -75,78 +66,26 @@ EOF
|
|||||||
|
|
||||||
tput smcup
|
tput smcup
|
||||||
|
|
||||||
declare var_response="" var_exitcode=""
|
# shellcheck disable=SC2034
|
||||||
|
if VAR_KERNEL=$(dialog \
|
||||||
while true; do
|
|
||||||
|
|
||||||
var_response=$(dialog \
|
|
||||||
--no-collapse \
|
--no-collapse \
|
||||||
--ascii-lines \
|
--ascii-lines \
|
||||||
--clear \
|
--clear \
|
||||||
--help-button --help-label "Info" \
|
--help-button --help-label "Info" \
|
||||||
--backtitle "CISS.debian.installer" \
|
--backtitle "CISS.debian.installer" \
|
||||||
--title "Select the Kernel for the CISS.debian.installer" \
|
--title "Select the Kernel for the CISS.debian.installer" \
|
||||||
--radiolist "Kernel available \n *+bpo* : Debian Backported Kernel \n *cloud* : Special lightweight images for KVM \n *unsigned* : Unsigned Kernel \n *preempt_rt* : Special Kernel for real-time-computing \n Not unsigned marked are MS signed Kernel for Secure Boot \n" 0 0 "${options[@]}" 3>&1 1>&2 2>&3 3>&-
|
--radiolist "Kernel available \n *+bpo* : Debian Backported Kernel \n *cloud* : Special lightweight images for KVM \n *unsigned* : Unsigned Kernel \n *preempt_rt* : Special Kernel for real-time-computing \n Not unsigned marked are MS signed Kernel for Secure Boot \n" 0 0 "${options[@]}" 3>&1 1>&2 2>&3 3>&-); then
|
||||||
)
|
|
||||||
|
|
||||||
var_exitcode="$?"
|
#clear
|
||||||
clear
|
|
||||||
|
|
||||||
case "${var_exitcode}" in
|
|
||||||
|
|
||||||
0)
|
|
||||||
VAR_KERNEL="${var_response}"
|
|
||||||
[[ "${VAR_KERNEL}" != linux-image-* ]] && VAR_KERNEL="linux-image-${VAR_KERNEL}"
|
[[ "${VAR_KERNEL}" != linux-image-* ]] && VAR_KERNEL="linux-image-${VAR_KERNEL}"
|
||||||
do_log "info" "file_only" "0110() Kernel image selected interactively: '${VAR_KERNEL}'."
|
do_log "info" "file_only" "0110() Kernel image selected interactively: '${VAR_KERNEL}'."
|
||||||
break
|
|
||||||
;;
|
|
||||||
|
|
||||||
1)
|
else
|
||||||
|
|
||||||
|
#clear
|
||||||
VAR_KERNEL=""
|
VAR_KERNEL=""
|
||||||
break
|
|
||||||
;;
|
|
||||||
|
|
||||||
2)
|
fi
|
||||||
dialog --no-collapse \
|
|
||||||
--ascii-lines \
|
|
||||||
--clear \
|
|
||||||
--backtitle "CISS.debian.installer" \
|
|
||||||
--title "Important Notes" \
|
|
||||||
--scrollbar \
|
|
||||||
--textbox "${VAR_NOTES}" 32 128
|
|
||||||
clear
|
|
||||||
continue
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
VAR_KERNEL=""
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
|
|
||||||
done
|
|
||||||
|
|
||||||
# shellcheck disable=SC2034
|
|
||||||
#if VAR_KERNEL=$(dialog \
|
|
||||||
# --no-collapse \
|
|
||||||
# --ascii-lines \
|
|
||||||
# --clear \
|
|
||||||
# --help-button --help-label "Info" \
|
|
||||||
# --backtitle "CISS.debian.installer" \
|
|
||||||
# --title "Select the Kernel for the CISS.debian.installer" \
|
|
||||||
# --radiolist "Kernel available \n *+bpo* : Debian Backported Kernel \n *cloud* : Special lightweight images for KVM \n *unsigned* : Unsigned Kernel \n *preempt_rt* : Special Kernel for real-time-computing \n Not unsigned marked are MS signed Kernel for Secure Boot \n" 0 0 "${options[@]}" 3>&1 1>&2 2>&3 3>&-); then
|
|
||||||
#
|
|
||||||
# #clear
|
|
||||||
# [[ "${VAR_KERNEL}" != linux-image-* ]] && VAR_KERNEL="linux-image-${VAR_KERNEL}"
|
|
||||||
# do_log "info" "file_only" "0110() Kernel image selected interactively: '${VAR_KERNEL}'."
|
|
||||||
#
|
|
||||||
#else
|
|
||||||
#
|
|
||||||
# #clear
|
|
||||||
# VAR_KERNEL=""
|
|
||||||
#
|
|
||||||
#fi
|
|
||||||
|
|
||||||
tput rmcup
|
tput rmcup
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user