V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 51s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 51s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -26,6 +26,6 @@ color_echo() {
|
|||||||
declare c="$1"
|
declare c="$1"
|
||||||
shift
|
shift
|
||||||
declare msg="${*}"
|
declare msg="${*}"
|
||||||
printf "%b[INFO]%b %b%s %b%b" "${c}" "${RES}" "${WHI}" "${msg}" "${RES}" "${NL}" | tee -a "${VAR_DIALOG}"
|
printf "%b[INFO]%b %s %b" "${c}" "${RES}" "${msg}" "${NL}" | tee -a "${VAR_DIALOG}"
|
||||||
}
|
}
|
||||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||||
|
|||||||
@@ -32,6 +32,15 @@ check_kernel() {
|
|||||||
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)"
|
||||||
|
|
||||||
|
cat << 'EOF' >| "${VAR_DIALOG}"
|
||||||
|
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
|
||||||
|
|
||||||
case "${var_system_architecture}" in
|
case "${var_system_architecture}" in
|
||||||
|
|
||||||
amd64)
|
amd64)
|
||||||
@@ -64,6 +73,7 @@ check_kernel() {
|
|||||||
((counter++))
|
((counter++))
|
||||||
done < "${VAR_KERNEL_SRT}"
|
done < "${VAR_KERNEL_SRT}"
|
||||||
|
|
||||||
|
while true; do
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
if VAR_KERNEL=$(dialog \
|
if VAR_KERNEL=$(dialog \
|
||||||
--no-collapse \
|
--no-collapse \
|
||||||
@@ -79,14 +89,34 @@ check_kernel() {
|
|||||||
clear
|
clear
|
||||||
[[ "${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
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
if (( "$?" == 1 )); then
|
||||||
|
|
||||||
clear
|
clear
|
||||||
VAR_KERNEL=""
|
VAR_KERNEL=""
|
||||||
|
break
|
||||||
|
|
||||||
|
elif (( "$?" == 2 )); then
|
||||||
|
|
||||||
|
clear
|
||||||
|
dialog --no-collapse \
|
||||||
|
--ascii-lines \
|
||||||
|
--clear \
|
||||||
|
--backtitle "CISS.debian.installer" \
|
||||||
|
--title "Select the Kernel for the CISS.debian.installer" \
|
||||||
|
--scrollbar \
|
||||||
|
--textbox "${VAR_DIALOG}" 32 128
|
||||||
|
clear
|
||||||
|
continue
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
# shellcheck disable=SC2312
|
# shellcheck disable=SC2312
|
||||||
cat "${VAR_DIALOG}" | tail -n 30
|
cat "${VAR_DIALOG}" | tail -n 30
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user