Skip to content

Commit cc59d8a

Browse files
ColorfulRhinoigorpecovnik
authored andcommitted
extensions: Add "Extension: ${EXTENSION}: " prefix to some extension logs
Establish some consistency with extension logging. Some extensions use another format: display_alert "message" "${EXTENSION}" "info" These were *not* adapted to this new schema.
1 parent b6b8a89 commit cc59d8a

19 files changed

+79
-78
lines changed

extensions/armbian-live-patch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function post_family_tweaks_bsp__armbian-live-patch() {
22

3-
display_alert "Installing Armbian Live Patch" "${EXTENSION}" "info"
3+
display_alert "Extension: ${EXTENSION}: Installing Armbian Live Patch" "${EXTENSION}" "info"
44

55
run_host_command_logged cat <<- 'armbian-live-patch' > "${destination}"/etc/systemd/system/armbian-live-patch.service
66
# Armbian simple patch system service

extensions/bluetooth-hciattach.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
# To use, enable_extension bluetooth-hciattach, and set BLUETOOTH_HCIATTACH_PARAMS and BLUETOOTH_HCIATTACH_RKFILL_NUM.
99

1010
function extension_prepare_config__bluetooth_hciattach() {
11-
display_alert "${EXTENSION} ${BOARD}" "initializing config" "info"
11+
display_alert "Extension: ${EXTENSION}: ${BOARD}" "initializing config" "info"
1212

1313
# Bomb if BLUETOOTH_HCIATTACH_PARAMS is not set.
1414
if [[ -z "${BLUETOOTH_HCIATTACH_PARAMS}" ]]; then
15-
exit_with_error "${EXTENSION} ${BOARD} - BLUETOOTH_HCIATTACH_PARAMS is not set - please set in the board file."
15+
exit_with_error "Extension: ${EXTENSION}: ${BOARD} - BLUETOOTH_HCIATTACH_PARAMS is not set - please set in the board file."
1616
fi
1717

1818
# Default BLUETOOTH_HCIATTACH_RKFILL_NUM to 0 if not set.
@@ -23,13 +23,13 @@ function extension_prepare_config__bluetooth_hciattach() {
2323

2424
# Add bluetooth packages to the image (not rootfs cache)
2525
function post_family_config__bluetooth_hciattach_add_bluetooth_packages() {
26-
display_alert "${EXTENSION} ${BOARD}" "adding bluetooth packages to image" "info"
26+
display_alert "Extension: ${EXTENSION}: ${BOARD}" "adding bluetooth packages to image" "info"
2727
add_packages_to_image rfkill bluetooth bluez bluez-tools
2828
}
2929

3030
# Deploy the script and the systemd service in the BSP. It'll be enabled below in the image.
3131
function post_family_tweaks_bsp__bluetooth_hciattach_add_systemd_service() {
32-
display_alert "${EXTENSION} ${BOARD}" "adding bluetooth hciattach service to BSP" "info"
32+
display_alert "Extension: ${EXTENSION}: ${BOARD}" "adding bluetooth hciattach service to BSP" "info"
3333
: "${destination:?destination is not set}"
3434

3535
declare script_dir="/usr/local/sbin"
@@ -61,7 +61,7 @@ function post_family_tweaks_bsp__bluetooth_hciattach_add_systemd_service() {
6161

6262
# Enable the service created in the BSP above.
6363
function post_family_tweaks__bluetooth_hciattach_enable_bt_service_in_image() {
64-
display_alert "${EXTENSION} ${BOARD}" "enabling bluetooth hciattach service in the image" "info"
64+
display_alert "Extension: ${EXTENSION}: ${BOARD}" "enabling bluetooth hciattach service in the image" "info"
6565

6666
chroot_sdcard systemctl --no-reload enable "bluetooth-hciattach.service"
6767

extensions/c-plus-plus-compiler.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# Enable this extension if you need a C++ compiler during the build.
33

44
function add_host_dependencies__add_arm64_c_plus_plus_compiler() {
5-
display_alert "Adding arm64 c++ compiler to host dependencies" "g++" "debug"
5+
display_alert "Extension: ${EXTENSION}: Adding arm64 c++ compiler to host dependencies" "g++" "debug"
66
declare -g EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} g++-aarch64-linux-gnu g++" # @TODO: convert to array later
77
}

extensions/cleanup-space-final-image.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ function post_umount_final_image__200_zerofree() {
2222
local partType
2323
partType="$(file -s "${partDev}" | awk -F ': ' '{print $2}')"
2424
if [[ "${partType}" == *"ext4"* ]]; then
25-
display_alert "Zerofreeing ext4 partition ${partDev}" "${EXTENSION}" "info"
25+
display_alert "Extension: ${EXTENSION}: Zerofreeing ext4 partition ${partDev}" "${EXTENSION}" "info"
2626
run_host_command_logged zerofree "${partDev}"
2727
else
28-
display_alert "Skipping zerofreeing partition ${partDev} of type '${partType}'" "${EXTENSION}" "info"
28+
display_alert "Extension: ${EXTENSION}: Skipping zerofreeing partition ${partDev} of type '${partType}'" "${EXTENSION}" "info"
2929
fi
3030
done
3131
}
3232

3333
function pre_umount_final_image__999_show_space_usage() {
34-
display_alert "Calculating used space in image" "${EXTENSION}" "info"
34+
display_alert "Extension: ${EXTENSION}: Calculating used space in image" "${EXTENSION}" "info"
3535
run_host_command_logged "cd ${MOUNT} && " du -h -d 4 -x "." "| sort -h | tail -20"
3636
}

extensions/cloud-init/cloud-init.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,31 @@ function extension_prepare_config__ci_image_suffix() {
2323

2424
function extension_prepare_config__prepare_ci() {
2525
# Cloud Init related packages selected from Ubuntu RPI distirbution
26+
display_alert "Extension: ${EXTENSION}: Adding extra packages to image" "cloud-init cloud-initramfs-dyn-netconf" "info"
2627
add_packages_to_image cloud-init cloud-initramfs-dyn-netconf
2728
}
2829

2930
function extension_prepare_config__ci_compatibility_check() {
3031
# We require fat boot partition, will change and if the user provided another type, will fail.
3132
if [[ -z "${BOOTFS_TYPE}" ]]; then
3233
declare -g BOOTFS_TYPE="fat"
33-
display_alert "Changing BOOTFS_TYPE" "cloud_init requires a fat partition" "warn"
34+
display_alert "Extension: ${EXTENSION}: Changing BOOTFS_TYPE" "cloud_init requires a fat partition" "warn"
3435
fi
3536

3637
if [[ "${BOOTFS_TYPE}" != "fat" ]]; then
37-
exit_with_error "BOOTFS_TYPE ${BOOTFS_TYPE} not compatible with cloud-init"
38+
exit_with_error "Extension: ${EXTENSION}: BOOTFS_TYPE ${BOOTFS_TYPE} not compatible with cloud-init"
3839
fi
3940
}
4041

4142
function pre_customize_image__inject_cloud_init_config() {
4243
# Copy the NoCLoud Cloud-Init Configuration
43-
display_alert "Configuring" "cloud-init" "info"
44+
display_alert "Extension: ${EXTENSION}: Configuring" "cloud-init" "info"
4445
local config_src="${EXTENSION_DIR}/config"
4546
local config_dst="${SDCARD}/etc/cloud/cloud.cfg.d"
4647
run_host_command_logged cp ${config_src}/* $config_dst
4748

4849
# Provide default cloud-init files
49-
display_alert "Defaults" "cloud-init" "info"
50+
display_alert "Extension: ${EXTENSION}: Defaults" "cloud-init" "info"
5051
local defaults_src="${EXTENSION_DIR}/defaults"
5152
local defaults_dst="${SDCARD}/boot"
5253
run_host_command_logged cp ${defaults_src}/* $defaults_dst
@@ -55,7 +56,7 @@ function pre_customize_image__inject_cloud_init_config() {
5556

5657
# @TODO: would be better to have "armbian first run" as an extension that can be disabled
5758
function pre_customize_image__disable_armbian_first_run() {
58-
display_alert "Disabling" "armbian first run" "info"
59+
display_alert "Extension: ${EXTENSION}: Disabling" "armbian firstrun" "info"
5960

6061
# Clean up default profile and network
6162
rm -f ${SDCARD}/etc/profile.d/armbian-check-first-*

extensions/fake-vcgencmd.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
function pre_umount_final_image__install_fake_vcgencmd() {
4-
display_alert "Installing fake vcgencmd" "${EXTENSION}" "info"
4+
display_alert "Extension: ${EXTENSION}: Installing fake vcgencmd" "${EXTENSION}" "info"
55

66
if [[ $BOARD != rpi4b ]]; then
77
run_host_command_logged curl -vo "${MOUNT}"/usr/bin/vcgencmd "https://raw.githubusercontent.com/clach04/fake_vcgencmd/0.0.2/vcgencmd"
@@ -11,6 +11,6 @@ function pre_umount_final_image__install_fake_vcgencmd() {
1111
run_host_command_logged curl -vo "${MOUNT}"/usr/share/doc/fake_vcgencmd/LICENSE "https://raw.githubusercontent.com/clach04/fake_vcgencmd/0.0.2/LICENSE"
1212
run_host_command_logged curl -vo "${MOUNT}"/usr/share/doc/fake_vcgencmd/README.md "https://raw.githubusercontent.com/clach04/fake_vcgencmd/0.0.2/README.md"
1313
else
14-
display_alert "Omitting installation on Raspberry Pi boards as these ship the original vcgencmd" "${EXTENSION}" "info"
14+
display_alert "Extension: ${EXTENSION}: Omitting installation on Raspberry Pi boards as these ship the original vcgencmd" "${EXTENSION}" "info"
1515
fi
1616
}

extensions/fs-btrfs-support.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# This is automatically enabled if ROOTFS_TYPE is set to btrfs in main-config.sh.
44

55
function extension_prepare_config__add_to_image_btrfs-progs() {
6-
display_alert "Adding btrfs-progs extra package..." "${EXTENSION}" "info"
6+
display_alert "Extension: ${EXTENSION}: Adding extra package to image" "btrfs-progs" "info"
77
add_packages_to_image btrfs-progs
88
}
99

1010
function add_host_dependencies__add_btrfs_tooling() {
11-
display_alert "Adding BTRFS to host dependencies" "BTRFS" "debug"
11+
display_alert "Extension: ${EXTENSION}: Adding packages to host dependencies" "btrfs-progs" "debug"
1212
EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} btrfs-progs" # @TODO: convert to array later
1313
}

extensions/fs-cryptroot-support.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
# This is automatically enabled if CRYPTROOT_ENABLE is set to yes in main-config.sh.
44

55
function add_host_dependencies__add_cryptroot_tooling() {
6-
display_alert "Adding cryptroot to host dependencies" "cryptsetup LUKS" "debug"
6+
display_alert "Extension: ${EXTENSION}: Adding packages to host dependencies" "cryptsetup openssh-client" "info"
77
EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} cryptsetup openssh-client" # @TODO: convert to array later
88
}
99

1010
function extension_prepare_config__prepare_cryptroot() {
11-
display_alert "Adding rootfs encryption related packages" "cryptsetup cryptsetup-initramfs" "info"
11+
display_alert "Extension: ${EXTENSION}: Adding extra packages to image" "cryptsetup cryptsetup-initramfs" "info"
1212
add_packages_to_image cryptsetup cryptsetup-initramfs
1313

1414
# Config for cryptroot, a boot partition is required.
1515
declare -g BOOTPART_REQUIRED=yes
1616
EXTRA_IMAGE_SUFFIXES+=("-crypt")
1717

1818
if [[ $CRYPTROOT_SSH_UNLOCK == yes ]]; then
19-
display_alert "Adding rootfs encryption related packages" "dropbear-initramfs" "info"
19+
display_alert "Extension: ${EXTENSION}: Adding extra packages to image" "dropbear-initramfs" "info"
2020
add_packages_to_image dropbear-initramfs
2121
fi
2222
}
2323

2424
function prepare_root_device__encrypt_root_device() {
2525
# We encrypt the rootdevice (currently a loop device) and return the new mapped rootdevice
2626
check_loop_device "$rootdevice"
27-
display_alert "Encrypting root partition with LUKS..." "cryptsetup luksFormat $rootdevice" ""
27+
display_alert "Extension: ${EXTENSION}: Encrypting root partition with LUKS..." "cryptsetup luksFormat $rootdevice" ""
2828
echo -n $CRYPTROOT_PASSPHRASE | cryptsetup luksFormat $CRYPTROOT_PARAMETERS $rootdevice -
2929
echo -n $CRYPTROOT_PASSPHRASE | cryptsetup luksOpen $rootdevice $ROOT_MAPPER -
30-
display_alert "Root partition encryption complete." "" "ext"
30+
display_alert "Extension: ${EXTENSION}: Root partition encryption complete." "" "ext"
3131
# TODO: pass /dev/mapper to Docker
3232
rootdevice=/dev/mapper/$ROOT_MAPPER # used by `mkfs` and `mount` commands
3333
}
@@ -56,7 +56,7 @@ function pre_install_kernel_debs__adjust_dropbear_configuration() {
5656
else
5757
# generate a default ssh key for login on dropbear in initramfs
5858
# this key should be changed by the user on first login
59-
display_alert "Generating a new SSH key pair for dropbear (initramfs)" "" ""
59+
display_alert "Extension: ${EXTENSION}: Generating a new SSH key pair for dropbear (initramfs)" "" ""
6060

6161
# Generate the SSH keys
6262
ssh-keygen -t ecdsa -f "${dropbear_dir}"/id_ecdsa \
@@ -68,7 +68,7 @@ function pre_install_kernel_debs__adjust_dropbear_configuration() {
6868
CRYPTROOT_SSH_UNLOCK_KEY_NAME="${VENDOR}_${REVISION}_${BOARD^}_${RELEASE}_${BRANCH}_${DESKTOP_ENVIRONMENT}".key
6969
# copy dropbear ssh key to image output dir for convenience
7070
cp "${dropbear_dir}"/id_ecdsa "${DEST}/images/${CRYPTROOT_SSH_UNLOCK_KEY_NAME}"
71-
display_alert "SSH private key for dropbear (initramfs) has been copied to:" \
71+
display_alert "Extension: ${EXTENSION}: SSH private key for dropbear (initramfs) has been copied to:" \
7272
"$DEST/images/$CRYPTROOT_SSH_UNLOCK_KEY_NAME" "info"
7373
fi
7474
fi

extensions/fs-f2fs-support.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# This is automatically enabled if ROOTFS_TYPE is set to f2fs in main-config.sh.
44

55
function add_host_dependencies__add_f2fs_tooling() {
6-
display_alert "Adding F2FS to host dependencies" "F2FS" "debug"
6+
display_alert "Extension: ${EXTENSION}: Adding packages to host dependencies" "f2fs-tools" "debug"
77
EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} f2fs-tools" # @TODO: convert to array later
88
}

extensions/fs-nilfs2-support.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# This is automatically enabled if ROOTFS_TYPE is set to nilfs2 in main-config.sh.
33

44
function extension_prepare_config__add_to_image_nilfs-tools() {
5-
display_alert "Adding nilfs-tools extra package..." "${EXTENSION}" "info"
5+
display_alert "Extension: ${EXTENSION}: Adding extra packages to image" "nilfs-tools" "info"
66
add_packages_to_image nilfs-tools
77
}
88

99
function add_host_dependencies__add_nilfs_tools() {
10-
display_alert "Adding NILFS tools to host dependencies..." "${EXTENSION}" "debug"
10+
display_alert "Extension: ${EXTENSION}: Adding packages to host dependencies" "nilfs-tools" "debug"
1111
EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} nilfs-tools" # @TODO: convert to array later
1212
}
1313

extensions/fs-xfs-support.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# This is automatically enabled if ROOTFS_TYPE is set to xfs in main-config.sh.
44

55
function extension_prepare_config__add_to_image_xfsprogs() {
6-
display_alert "Adding xfsprogs extra package..." "${EXTENSION}" "info"
6+
display_alert "Extension: ${EXTENSION}: Adding extra packages to image" "xfsprogs" "info"
77
add_packages_to_image xfsprogs
88
}
99

1010
function add_host_dependencies__add_xfs_tooling() {
11-
display_alert "Adding XFS to host dependencies" "XFS xfsprogs" "debug"
11+
display_alert "Extension: ${EXTENSION}: Adding packages to host dependencies" "xfsprogs" "debug"
1212
EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} xfsprogs" # @TODO: convert to array later
1313
}

extensions/gen-sample-extension-docs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
## Hooks
33
function extension_metadata_ready__499_display_docs_generation_start_info() {
4-
display_alert "Generating hook documentation and sample extension"
4+
display_alert "Extension: ${EXTENSION}: Generating hook documentation and sample extension"
55
}
66

77
function extension_metadata_ready__docs_markdown() {

extensions/grub-riscv64.sh

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
# This runs *after* user_config. Don't change anything not coming from other variables or meant to be configured by the user.
33
function extension_prepare_config__prepare_grub-riscv64() {
4-
display_alert "Prepare config" "${EXTENSION}" "info"
4+
display_alert "Extension: ${EXTENSION}: Prepare config" "${EXTENSION}" "info"
55
# Extension configuration defaults.
66
declare -g DISTRO_GENERIC_KERNEL=${DISTRO_GENERIC_KERNEL:-no} # if yes, does not build our own kernel, instead, uses generic one from distro
77
declare -g UEFI_GRUB_TERMINAL="${UEFI_GRUB_TERMINAL:-serial console}" # 'serial' forces grub menu on serial console. empty to not include
@@ -20,7 +20,7 @@ function extension_prepare_config__prepare_grub-riscv64() {
2020
declare -g UEFI_GRUB_TARGET="riscv64-efi" # Default for x86_64
2121

2222
if [[ "${DISTRIBUTION}" != "Ubuntu" && "${BUILDING_IMAGE}" == "yes" ]]; then
23-
exit_with_error "${DISTRIBUTION} is not supported yet"
23+
exit_with_error "Extension: ${EXTENSION}: ${DISTRIBUTION} is not supported yet"
2424
fi
2525

2626
add_packages_to_image efibootmgr efivar cloud-initramfs-growroot busybox os-prober "grub-efi-${ARCH}-bin" "grub-efi-${ARCH}"
@@ -32,10 +32,10 @@ pre_umount_final_image__install_grub() {
3232

3333
configure_grub
3434
local chroot_target="${MOUNT}"
35-
display_alert "Installing bootloader" "GRUB" "info"
35+
display_alert "Extension: ${EXTENSION}: Installing bootloader" "GRUB" "info"
3636

3737
# RiscV64 specific: actually copy the DTBs to the ESP
38-
display_alert "Copying DTBs to ESP" "${EXTENSION}" "info"
38+
display_alert "Extension: ${EXTENSION}: Copying DTBs to ESP" "${EXTENSION}" "info"
3939
run_host_command_logged mkdir -pv "${chroot_target}"/boot/efi/dtb
4040
run_host_command_logged cp -rpv "${chroot_target}"/boot/dtb/* "${chroot_target}"/boot/efi/dtb/
4141
# RiscV64 specific: @TODO ??? what is this ??
@@ -61,39 +61,39 @@ pre_umount_final_image__install_grub() {
6161
# shellcheck disable=SC2016 # some wierd escaping going on there.
6262
chroot_custom "$chroot_target" mkdir -pv '/dev/disk/by-uuid/"$(grub-probe --target=fs_uuid /)"' "||" true
6363

64-
display_alert "Creating GRUB config..." "${EXTENSION}: grub-mkconfig / update-grub"
64+
display_alert "Extension: ${EXTENSION}: Creating GRUB config..." "${EXTENSION}: grub-mkconfig / update-grub"
6565
chroot_custom "$chroot_target" update-grub || {
6666
exit_with_error "update-grub failed!"
6767
}
6868

6969
local install_grub_cmdline="grub-install --target=${UEFI_GRUB_TARGET} --no-nvram --removable" # nvram is global to the host, even across chroot. take care.
70-
display_alert "Installing GRUB EFI..." "${EXTENSION}: ${UEFI_GRUB_TARGET}"
70+
display_alert "Extension: ${EXTENSION}: Installing GRUB EFI..." "${EXTENSION}: ${UEFI_GRUB_TARGET}"
7171
chroot_custom "$chroot_target" "$install_grub_cmdline" || {
72-
exit_with_error "${install_grub_cmdline} failed!"
72+
exit_with_error "Extension: ${EXTENSION}: ${install_grub_cmdline} failed!"
7373
}
7474

7575
### Sanity check. The produced "/boot/grub/grub.cfg" should:
7676
declare -i has_failed_sanity_check=0
7777

7878
# - NOT have any mention of `/dev` inside; otherwise something is going to fail
7979
if grep -q '/dev' "${chroot_target}/boot/grub/grub.cfg"; then
80-
display_alert "GRUB sanity check failed" "grub.cfg contains /dev" "err"
80+
display_alert "Extension: ${EXTENSION}: GRUB sanity check failed" "grub.cfg contains /dev" "err"
8181
SHOW_LOG=yes run_host_command_logged grep '/dev' "${chroot_target}/boot/grub/grub.cfg" "||" true
8282
has_failed_sanity_check=1
8383
else
84-
display_alert "GRUB config sanity check passed" "no '/dev' found in grub.cfg" "info"
84+
display_alert "Extension: ${EXTENSION}: GRUB config sanity check passed" "no '/dev' found in grub.cfg" "info"
8585
fi
8686

8787
# - HAVE references to initrd, otherwise going to fail.
8888
if ! grep -q 'initrd.img' "${chroot_target}/boot/grub/grub.cfg"; then
89-
display_alert "GRUB config sanity check failed" "no initrd.img references found in /boot/grub/grub.cfg" "err"
89+
display_alert "Extension: ${EXTENSION}: GRUB config sanity check failed" "no initrd.img references found in /boot/grub/grub.cfg" "err"
9090
has_failed_sanity_check=1
9191
else
92-
display_alert "GRUB config sanity check passed" "initrd.img references found OK in /boot/grub/grub.cfg" "debug"
92+
display_alert "Extension: ${EXTENSION}: GRUB config sanity check passed" "initrd.img references found OK in /boot/grub/grub.cfg" "debug"
9393
fi
9494

9595
if [[ ${has_failed_sanity_check} -gt 0 ]]; then
96-
exit_with_error "GRUB config sanity check failed, image will be unbootable; see above errors"
96+
exit_with_error "Extension: ${EXTENSION}: GRUB config sanity check failed, image will be unbootable; see above errors"
9797
fi
9898

9999
# Remove host-side config.
@@ -122,7 +122,7 @@ configure_grub() {
122122
run_host_command_logged chmod -v +x "${MOUNT}"/usr/share/desktop-base/grub_background.sh
123123
fi
124124

125-
display_alert "GRUB EFI kernel cmdline" "'${GRUB_CMDLINE_LINUX_DEFAULT}' distro=${UEFI_GRUB_DISTRO_NAME} timeout=${UEFI_GRUB_TIMEOUT}" ""
125+
display_alert "Extension: ${EXTENSION}: GRUB EFI kernel cmdline" "'${GRUB_CMDLINE_LINUX_DEFAULT}' distro=${UEFI_GRUB_DISTRO_NAME} timeout=${UEFI_GRUB_TIMEOUT}" ""
126126
cat <<- grubCfgFrag >> "${MOUNT}"/etc/default/grub.d/98-armbian.cfg
127127
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT}"
128128
GRUB_TIMEOUT_STYLE=menu # Show the menu with Kernel options (Armbian or -generic)...

0 commit comments

Comments
 (0)