armbian-next: grub: make /usr/share/desktop-base/grub_background.sh executable, otherwise does nothing

This commit is contained in:
Ricardo Pardini 2023-01-04 12:26:54 +01:00
parent ec2e6c42be
commit cc7972df0d
No known key found for this signature in database
GPG Key ID: 3D38CA12A66C5D02

View File

@ -204,12 +204,14 @@ configure_grub() {
# Enable Armbian Wallpaper on GRUB
if [[ "${VENDOR}" == Armbian ]]; then
display_alert "Enabling" "Armbian Wallpaper on GRUB" "info"
mkdir -p "${MOUNT}"/usr/share/desktop-base/
cat <<- grubWallpaper >> "${MOUNT}"/usr/share/desktop-base/grub_background.sh
WALLPAPER=/usr/share/images/grub/wallpaper.png
COLOR_NORMAL=white/black
COLOR_HIGHLIGHT=black/white
grubWallpaper
run_host_command_logged chmod -v +x "${MOUNT}"/usr/share/desktop-base/grub_background.sh
fi
display_alert "GRUB EFI kernel cmdline" "${GRUB_CMDLINE_LINUX_DEFAULT} distro=${UEFI_GRUB_DISTRO_NAME} timeout=${UEFI_GRUB_TIMEOUT}" ""