Fedora 19 GRUB

In the 52-force-text-mode-console hook, gracefully exit when the
/boot/grub2 directory does not exist on the Fedora 19 cloud image
filesystem. By default the Fedora 19 cloud image is using extlinux to boot
the image instead of GRUB. The decision was taken because GRUB is quite
big (would pull in ~30MB of dependencies) and there's very little benefit
in using it because cloud images don't need to cover all the corner cases.

Change-Id: I52723d4d14c21b1787b4c7e0dd21a09cdbdae0d1
This commit is contained in:
Lucas Alvares Gomes 2013-07-16 17:52:21 +01:00
parent 894134fd30
commit 64d7b8d4cb

View File

@ -12,6 +12,9 @@ case $DISTRO in
sed -i -e 's/\(^GRUB_CMDLINE_LINUX.*\)"$/\1 nomodeset vga=normal"/' /etc/default/grub
;;
'Fedora')
# By default the F19 cloud image is using extlinux to boot the image
[[ ! -d /boot/grub2 ]] && exit 0
echo 'GRUB_CMDLINE_LINUX="nomodeset vga=normal"' >/etc/default/grub
sed -i -e 's/terminal_output gfxterm/terminal_output console/' /boot/grub2/grub.cfg
;;