* util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX.
* util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it again. * util/grub.d/10_linux.in (linux_entry): Load all video drivers, which may be needed to allow the loader to program modes for the kernel.
This commit is contained in:
parent
9038c767e3
commit
601c84fd16
3 changed files with 20 additions and 10 deletions
|
@ -78,6 +78,16 @@ EOF
|
|||
EOF
|
||||
fi
|
||||
|
||||
# Load video drivers, which may be needed to allow the loader to program
|
||||
# modes for the kernel.
|
||||
# TODO: Other kernels may need the same mode programming, especially on
|
||||
# EFI. Should we move this somewhere more generic?
|
||||
for module in $(cat ${GRUB_PREFIX}/video.lst); do
|
||||
cat << EOF
|
||||
insmod $module
|
||||
EOF
|
||||
done
|
||||
|
||||
if [ -z "${prepare_boot_cache}" ]; then
|
||||
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue