V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m30s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-06 09:01:16 +02:00
parent e108819ba0
commit 5717ad6570
7 changed files with 41 additions and 4 deletions

View File

@@ -134,6 +134,7 @@ END { print max }
### Extract architecture.
# shellcheck disable=SC2034
VAR_ARCHITECTURE="${architecture,,}"
# shellcheck disable=SC2034
VAR_CODENAME="${distribution,,}"

View File

@@ -58,7 +58,7 @@ update_grub() {
if [[ "${grub_latest,,}" == "true" ]]; then
### Install the GRUB2 backported version from the Bookworm backports repository.
if [[ "${VAR_RECIPE_FIRMWARE}" == "uefi" ]]; then
if [[ "${VAR_RECIPE_FIRMWARE,,}" == "uefi" ]]; then
case "${VAR_ARCHITECTURE,,}" in
@@ -101,7 +101,7 @@ update_grub() {
else
### Install the GRUB2 stable version.
if [[ "${VAR_RECIPE_FIRMWARE}" == "uefi" ]]; then
if [[ "${VAR_RECIPE_FIRMWARE,,}" == "uefi" ]]; then
case "${VAR_ARCHITECTURE,,}" in
amd64) do_in_target "${TARGET}" apt-get install -y --no-install-recommends grub2 grub2-common grub-efi-amd64 grub-efi-amd64-bin ;;
@@ -164,6 +164,8 @@ EOF
### Change the GRUB OS detection configuration accordingly.
if [[ "${grub_prober,,}" == "true" ]]; then
do_in_target "${TARGET}" apt-get install -y --no-install-recommends os-prober
cat << EOF >> "${TARGET}/etc/default/grub"
# If your computer has multiple operating systems installed, then you
# probably want to run os-prober. However, if your computer is a host
@@ -266,6 +268,11 @@ install_grub_uefi() {
declare -a ary_uefi_arg=()
declare var_uefi_mod=""
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]."
return "${ERR_GRUB_INSTALL}"
fi
### Cryptographic modules.
var_uefi_mod+="cryptodisk gcry_rijndael gcry_sha256 gcry_sha512 gcry_whirlpool gcry_serpent gcry_twofish luks luks2 "
### Filesystem modules.