Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-grub2
Commits
33d918b8
Commit
33d918b8
authored
Apr 18, 2012
by
Vladimir 'phcoder' Serbinenko
Browse files
* util/grub-install.in: Fix an automatic target detection bug.
parent
c6ca973d
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
33d918b8
2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-install.in: Fix an automatic target detection bug.
2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-install.in: New option --efi-directory.
util/grub-install.in
View file @
33d918b8
...
...
@@ -294,8 +294,10 @@ if [ x$source_dir = x ]; then
esac
if
[
-d
/sys/firmware/efi
]
;
then
target
=
"x86_64-efi"
else
target
=
i386-pc
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
...
...
@@ -308,11 +310,12 @@ if [ x$source_dir = x ]; then
esac
if
[
-d
/sys/firmware/efi
]
;
then
target
=
"i386-efi"
fi
if
[
-e
/proc/device-tree
]
;
then
elif
[
-e
/proc/device-tree
]
;
then
target
=
"i386-ieee1275"
else
target
=
i386-pc
fi
target
=
i386-pc
;;
;;
*
)
gettext
"Unable to determine your platform. Use --target."
;
echo
;;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment