From 64d7b8d4cb3d3fafac27acbcefca5189fe9ef012 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Tue, 16 Jul 2013 17:52:21 +0100 Subject: [PATCH] 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 --- elements/base/finalise.d/52-force-text-mode-console | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elements/base/finalise.d/52-force-text-mode-console b/elements/base/finalise.d/52-force-text-mode-console index b2528bda..86f5414d 100755 --- a/elements/base/finalise.d/52-force-text-mode-console +++ b/elements/base/finalise.d/52-force-text-mode-console @@ -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 ;;