mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-10 15:55:42 +00:00
Bodge 05_debian_theme to make the module availability check work again with modules in /boot/grub/$target.
This commit is contained in:
parent
d4eadae3f8
commit
bf65e3915d
12
debian/grub.d/05_debian_theme
vendored
12
debian/grub.d/05_debian_theme
vendored
@ -33,6 +33,16 @@ set_default_theme(){
|
||||
echo "${1}set menu_color_highlight=white/blue"
|
||||
}
|
||||
|
||||
module_available(){
|
||||
local module
|
||||
for module in "${1}.mod" */"${1}.mod"; do
|
||||
if [ -f "${module}" ]; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
set_background_image(){
|
||||
# Step #1: Search all available output modes ...
|
||||
local output
|
||||
@ -62,7 +72,7 @@ set_background_image(){
|
||||
esac
|
||||
|
||||
# Step #4: Check if the necessary GRUB module is available.
|
||||
if ! [ -f "${reader}.mod" ]; then
|
||||
if ! module_available "${reader}"; then
|
||||
return 4
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user