Merge "Fix grub/linux text mode override."
This commit is contained in:
		@@ -7,18 +7,20 @@ DISTRO=`lsb_release -si` || true
 | 
			
		||||
 | 
			
		||||
GRUBFILE=""
 | 
			
		||||
 | 
			
		||||
echo 'GRUB_TERMINAL=console' >>/etc/default/grub
 | 
			
		||||
echo 'GRUB_GFXPAYLOAD_LINUX=text' >>/etc/default/grub
 | 
			
		||||
 | 
			
		||||
case $DISTRO in
 | 
			
		||||
  'Ubuntu'|'Debian')
 | 
			
		||||
    sed -i -e 's/\(^GRUB_CMDLINE_LINUX.*\)"$/\1 nomodeset vga=normal"/' /etc/default/grub
 | 
			
		||||
    sed -i -e 's/\(^GRUB_CMDLINE_LINUX.*\)"$/\1 nofb nomodeset vga=normal"/' /etc/default/grub
 | 
			
		||||
    update-grub
 | 
			
		||||
    ;;
 | 
			
		||||
  'Fedora')
 | 
			
		||||
    # By default the F19 cloud image is using extlinux to boot the image
 | 
			
		||||
    if [ -f /boot/grub2/grub.cfg ]; then
 | 
			
		||||
      echo 'GRUB_CMDLINE_LINUX="nomodeset vga=normal"' >/etc/default/grub
 | 
			
		||||
      echo 'GRUB_CMDLINE_LINUX="nofb nomodeset vga=normal"' >/etc/default/grub
 | 
			
		||||
      sed -i -e 's/terminal_output gfxterm/terminal_output console/' /boot/grub2/grub.cfg
 | 
			
		||||
      grub2-mkconfig -o /boot/grub2/grub.cfg
 | 
			
		||||
    fi
 | 
			
		||||
    ;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
echo 'GRUB_TERMINAL=console' >>/etc/default/grub
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user