[Bug 291256] Re: update-grub ignores non-xen kernels if the system is a domU

Basavaraj basavarajmulagund92 at gmail.com
Sun Oct 4 11:36:02 UTC 2015


** Changed in: grub (Ubuntu)
     Assignee: (unassigned) => Basavaraj (basavarajmulagund92)

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

Title:
  update-grub ignores non-xen kernels if the system is a domU

Status in CE Image Build Infrastructure:
  Fix Released
Status in grub package in Ubuntu:
  Fix Released
Status in Debian:
  New

Bug description:
  Binary package hint: grub

  update-grub ignores non-xen kernels if the system is a domU and
  provides no mechanism to override/force otherwise. This behaviour was
  introduced in 0.97-22 in response to Debian bug #404536 (update-grub
  should put xen kernels in menu.lst when run in a domU). Unfortunately,
  this is not desirable if you're building images for non-xen systems on
  a xen instance as menu.lst will not contain any kernels and the image
  will not boot.

  in_domU=
  if [ -e /proc/xen/capabilities ] && ! grep -q "control_d" /proc/xen/capabilities; then
  	in_domU=1
  fi

  sortedKernels=""
  for kern in $(/bin/ls -1vr /boot | grep -v "dpkg-*" | grep "^vmlinuz-") ; do
  	if `echo "$xenKernels" | grep -q "$kern "` || `echo "$kern" | grep -q "xen"`; then
  		is_xen=1
  	else
  		is_xen=
  	fi

  	if [ ! "$in_domU" ] && [ "$is_xen" ]; then
  	  # skip xen kernels
            continue
          elif [ "$in_domU" ] && ! [ "$is_xen" ]; then
  	  # skip non-xen kernels
  	  continue
          fi

To manage notifications about this bug go to:
https://bugs.launchpad.net/bugsy/+bug/291256/+subscriptions



More information about the foundations-bugs mailing list