Last active
July 6, 2016 20:06
-
-
Save maxking/c10497095b52eb711ead08309db46215 to your computer and use it in GitHub Desktop.
Grub.cfg to load ikgt module in grub.
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
# CoreOS grub oem config to add coreos-ikgt support to the grub config of the OS. | |
# The ikgt_pkg.bin shoudl already be inside /boot/coreos and this file should be | |
# placed inside /dev/sda6 which is by default mounted at /usr/share/oem/ in coreos | |
# production build. | |
# | |
# **Note**: | |
# Please read the comments in the file below before using the configuration. It might | |
# cause temporarily to wreck your system otherwise. | |
set default='coreos-ikgt' | |
menuentry "CoreOS with ikgt" --id=coreos-ikgt { | |
echo 'Loading iKGT ...' | |
multiboot /coreos/ikgt_pkg.bin /coreos/ikgt_pkg.bin | |
gptprio.next -d usr -u usr_uuid | |
# The value of the constant below might vary in every case. I copied this portion of the code from | |
# /boot/coreos/grub/grub.cfg.tar of coreos-production release. Please do the same or you might render | |
# your instance unbootable. | |
if [ "$usr_uuid" = "7130c94a-213a-4e5a-8e26-6cce9662f132" ]; then | |
linux$suf /coreos/vmlinuz-a mount.usr=PARTUUID=$usr_uuid $linux_cmdline | |
else | |
linux$suf /coreos/vmlinuz-b mount.usr=PARTUUID=$usr_uuid $linux_cmdline | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment