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:
@@ -237,8 +237,8 @@ EOF
|
||||
#######################################
|
||||
install_grub_bios() {
|
||||
### Declare Arrays, HashMaps, and Variables.
|
||||
declare -a ary_bios_arg=()
|
||||
declare var_bios_mod=""
|
||||
declare -a ary_bios_arg=()
|
||||
declare var_bios_mod=""
|
||||
|
||||
if ! [[ -x "${TARGET}${VAR_MODINFO_PATH}" ]]; then
|
||||
do_log "emergency" "file_only" "4230() Missing: [${VAR_MODINFO_PATH}]."
|
||||
@@ -258,7 +258,7 @@ install_grub_bios() {
|
||||
|
||||
ary_bios_arg+=( --target=i386-pc --boot-directory=/boot "--modules=${var_bios_mod}" )
|
||||
|
||||
do_in_target "${TARGET}" export INITRD=No; grub-install "${ary_bios_arg[@]}" "${grub_bootdev}" || return "${ERR_GRUB_INSTALL}"
|
||||
do_in_target "${TARGET}" grub-install "${ary_bios_arg[@]}" "${grub_bootdev}"
|
||||
do_log "info" "file_only" "4230() Installed: GRUB on Device: '${grub_bootdev}' [BIOS]."
|
||||
var_update_grub_required="true"
|
||||
|
||||
@@ -282,8 +282,8 @@ install_grub_bios() {
|
||||
#######################################
|
||||
install_grub_uefi() {
|
||||
### Declare Arrays, HashMaps, and Variables.
|
||||
declare -a ary_uefi_arg=()
|
||||
declare var_uefi_mod=""
|
||||
declare -a ary_uefi_arg=()
|
||||
declare var_uefi_mod=""
|
||||
|
||||
if ! [[ -x "${TARGET}${VAR_MODINFO_PATH}" ]]; then
|
||||
do_log "emergency" "file_only" "4230() Missing: [${VAR_MODINFO_PATH}]."
|
||||
@@ -305,7 +305,7 @@ install_grub_uefi() {
|
||||
|
||||
[[ "${grub_update_nvram}" == "false" ]] && ary_uefi_arg+=( --no-nvram )
|
||||
|
||||
do_in_target "${TARGET}" export INITRD=No; grub-install "${ary_uefi_arg[@]}" "${grub_bootdev}" || return "${ERR_GRUB_INSTALL}"
|
||||
do_in_target "${TARGET}" grub-install "${ary_uefi_arg[@]}" "${grub_bootdev}" || return "${ERR_GRUB_INSTALL}"
|
||||
do_log "info" "file_only" "4230() Installed: GRUB on Device: '${grub_bootdev}' [UEFI]."
|
||||
var_update_grub_required="true"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user