Created
October 5, 2016 20:58
-
-
Save bwindels/420c8d6cc8a0206250526bf3334d22f1 to your computer and use it in GitHub Desktop.
coreboot support for fedora grub config file script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 10_linux.orig 2016-10-05 22:46:49.564011135 +0200 | |
--- 10_linux 2016-10-05 22:43:03.187055937 +0200 | |
*************** | |
*** 85,98 **** | |
--- 85,101 ---- | |
version="$2" | |
type="$3" | |
args="$4" | |
+ bios_vendor=$(dmesg | grep -oP 'BIOS vendor:\s*\K([^;]+)') | |
sixteenbit="" | |
linuxefi="linux" | |
initrdefi="initrd" | |
case "$machine" in | |
i?86|x86_64) | |
+ if [ $bios_vendor != "coreboot" ]; then | |
sixteenbit="16" | |
linuxefi="linuxefi" | |
initrdefi="initrdefi" | |
+ fi | |
;; | |
aarch64) | |
linuxefi="linux" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment