V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 55s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 55s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -67,7 +67,7 @@ update_grub() {
|
||||
amd64)
|
||||
do_log "debug" "file_only" "4230() Installing GRUB package variant: grub-efi-amd64"
|
||||
do_in_target_script "${TARGET}" "
|
||||
apt-get install -y --no-install-recommends -t bookworm-backports grub2 grub2-common grub-efi-amd64 grub-efi-amd64-bin 2>&1 | tee -a ${var_logfile}
|
||||
apt-get install -y --no-install-recommends -t bookworm-backports grub2-common grub-efi-amd64 grub-efi-amd64-bin 2>&1 | tee -a ${var_logfile}
|
||||
echo ExitCode: \$? >> ${var_logfile}
|
||||
"
|
||||
;;
|
||||
@@ -75,7 +75,7 @@ update_grub() {
|
||||
arm64)
|
||||
do_log "debug" "file_only" "4230() Installing GRUB package variant: grub-efi-arm64"
|
||||
do_in_target_script "${TARGET}" "
|
||||
apt-get install -y --no-install-recommends -t bookworm-backports grub2 grub2-common grub-efi-arm64 grub-efi-arm64-bin 2>&1 | tee -a ${var_logfile}
|
||||
apt-get install -y --no-install-recommends -t bookworm-backports grub2-common grub-efi-arm64 grub-efi-arm64-bin 2>&1 | tee -a ${var_logfile}
|
||||
echo ExitCode: \$? >> ${var_logfile}
|
||||
"
|
||||
;;
|
||||
@@ -83,7 +83,7 @@ update_grub() {
|
||||
i386)
|
||||
do_log "debug" "file_only" "4230() Installing GRUB package variant: grub-efi-ia32"
|
||||
do_in_target_script "${TARGET}" "
|
||||
apt-get install -y --no-install-recommends -t bookworm-backports grub2 grub2-common grub-efi-ia32 grub-efi-ia32-bin 2>&1 | tee -a ${var_logfile}
|
||||
apt-get install -y --no-install-recommends -t bookworm-backports grub2-common grub-efi-ia32 grub-efi-ia32-bin 2>&1 | tee -a ${var_logfile}
|
||||
echo ExitCode: \$? >> ${var_logfile}
|
||||
"
|
||||
;;
|
||||
@@ -98,7 +98,7 @@ update_grub() {
|
||||
|
||||
do_log "debug" "file_only" "4230() Installing GRUB package variant: grub-pc-bin"
|
||||
do_in_target_script "${TARGET}" "
|
||||
apt-get install -y --no-install-recommends -t bookworm-backports grub2 grub2-common grub-pc grub-pc-bin 2>&1 | tee -a ${var_logfile}
|
||||
apt-get install -y --no-install-recommends -t bookworm-backports grub2-common grub-pc grub-pc-bin 2>&1 | tee -a ${var_logfile}
|
||||
echo ExitCode: \$? >> ${var_logfile}
|
||||
"
|
||||
|
||||
@@ -272,10 +272,16 @@ install_grub_bios() {
|
||||
install_grub_uefi() {
|
||||
### Declare Arrays, HashMaps, and Variables.
|
||||
declare -a ary_uefi_arg=()
|
||||
declare var_uefi_mod=""
|
||||
declare var_uefi_mod="" var_modinfo_path=""
|
||||
|
||||
if ! [[ -x "${TARGET}/usr/lib/grub/x86_64-efi/modinfo.sh" ]]; then
|
||||
do_log "emergency" "file_only" "4230() Missing: [${TARGET}/usr/lib/grub/x86_64-efi/modinfo.sh]."
|
||||
case "${VAR_ARCHITECTURE,,}" in
|
||||
amd64) var_modinfo_path="/usr/lib/grub/x86_64-efi/modinfo.sh" ;;
|
||||
arm64) var_modinfo_path="/usr/lib/grub/arm64-efi/modinfo.sh" ;;
|
||||
i386) var_modinfo_path="/usr/lib/grub/i386-efi/modinfo.sh" ;;
|
||||
esac
|
||||
|
||||
if ! [[ -x "${TARGET}${modinfo_path}" ]]; then
|
||||
do_log "emergency" "file_only" "4230() Missing: [${modinfo_path}]."
|
||||
return "${ERR_GRUB_INSTALL}"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user