* util/grub-install.in: Load efivars unconditionally.
This commit is contained in:
parent
e70a2c50fa
commit
32107ec02a
2 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub-install.in: Load efivars unconditionally.
|
||||
|
||||
2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* po/Rules-piglatin: Change suffix from .po-update-en to
|
||||
|
|
|
@ -272,11 +272,29 @@ if [ x$source_dir = x ]; then
|
|||
x"ia64"*)
|
||||
target="ia64-efi";;
|
||||
x"x86_64"* | x"amd64"*)
|
||||
# On Linux, we need the efivars kernel modules.
|
||||
# If no EFI is available this module just does nothing
|
||||
# besides a small hello and if we detect efi we'll load it
|
||||
# anyway later. So it should be safe to
|
||||
# try to load it here.
|
||||
case "$host_os" in
|
||||
linux*)
|
||||
modprobe -q efivars 2>/dev/null || true ;;
|
||||
esac
|
||||
if [ -d /sys/firmware/efi ]; then
|
||||
target="x86_64-efi"
|
||||
fi
|
||||
target=i386-pc;;
|
||||
x"i"?"86"*)
|
||||
# On Linux, we need the efivars kernel modules.
|
||||
# If no EFI is available this module just does nothing
|
||||
# besides a small hello and if we detect efi we'll load it
|
||||
# anyway later. So it should be safe to
|
||||
# try to load it here.
|
||||
case "$host_os" in
|
||||
linux*)
|
||||
modprobe -q efivars 2>/dev/null || true ;;
|
||||
esac
|
||||
if [ -d /sys/firmware/efi ]; then
|
||||
target="i386-efi"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue