[Bug 1009294] Re: Grub update breaks automated dist-upgrade scripts on AMI images

Steve Langasek steve.langasek at canonical.com
Wed Jun 6 06:15:23 UTC 2012


Indeed, here's the diff between the /etc/default/grub in the precise
AMI, and the default one provided by grub.  So this is a bug with how
the AMI is built, not a bug in the grub package which has no way to
automatically merge this using ucf.

The AMI image build probably needs to inject the grub settings via
debconf preseeding, so that ucf as shipped in the image knows the
intended answers to the debconf questions.

--- etc/default/grub    2012-06-01 22:37:36.000000000 -0700
+++ /usr/share/grub/default/grub        2012-05-17 00:07:17.000000000 -0700
@@ -4,11 +4,11 @@
 #   info -f grub -n 'Simple configuration'
 
 GRUB_DEFAULT=0
-#GRUB_HIDDEN_TIMEOUT=0
-#GRUB_HIDDEN_TIMEOUT_QUIET=true
+GRUB_HIDDEN_TIMEOUT=0
+GRUB_HIDDEN_TIMEOUT_QUIET=true
 GRUB_TIMEOUT=10
 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
-GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"
+GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
 GRUB_CMDLINE_LINUX=""
 
 # Uncomment to enable BadRAM filtering, modify to suit your needs
@@ -17,7 +17,7 @@
 #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
 
 # Uncomment to disable graphical terminal (grub-pc only)
-GRUB_TERMINAL=console
+#GRUB_TERMINAL=console
 
 # The resolution used on graphical terminal
 # note that you can use only modes which your graphic card supports via VBE

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1009294

Title:
  Grub update breaks automated dist-upgrade scripts on AMI images

Status in “grub2” package in Ubuntu:
  In Progress
Status in “grub2” source package in Precise:
  In Progress

Bug description:
  The update committed here:
  https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/978464  appears
  to have exposed a bug in either grub or apt that is breaking scripts
  based on the Amazon images from cloud.ubuntu.com.

  See http://askubuntu.com/questions/146921/how-do-i-apt-get-y-dist-
  upgrade-without-a-grub-config-prompt

  
  Specifically, dpkg is giving the upgraded config file prompt upon configuring grub-pc ("A new version of configuration file /etc/default/grub is available, but the version installed currently has been locally modified.")

  However, the following does not work:
  sudo apt-get update
  sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade

  Furthermore, dpkg -S /etc/default/grub  doesn't appear to show this
  file as being owned by any package prior to upgrade.  I'm not sure how
  this file is generated (or how dpkg determines who owns it), but it's
  currently breaking scripts and I can't figure out a way to work around
  it short of deleting the file prior to the upgrade (which probably
  isn't safe).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1009294/+subscriptions




More information about the foundations-bugs mailing list