Consolidate the checks for /etc/grub.
Create a single check for grub2 so we skip these steps on F19. Change-Id: I5f05adcf409be5c2532478439bcb55ab397da20e
This commit is contained in:
parent
f5e191dc8e
commit
fb33adc5ba
@ -13,10 +13,8 @@ case $DISTRO in
|
||||
;;
|
||||
'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
|
||||
if [ -f /boot/grub2/grub.cfg ]; then
|
||||
echo 'GRUB_CMDLINE_LINUX="nomodeset vga=normal"' >/etc/default/grub
|
||||
sed -i -e 's/terminal_output gfxterm/terminal_output console/' /boot/grub2/grub.cfg
|
||||
fi
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user