[Bug 499483] Re: /etc/default/grub cannot disable use of UUID

Launchpad Bug Tracker 499483 at bugs.launchpad.net
Tue May 5 05:30:53 UTC 2020


[Expired for grub2 (Ubuntu) because there has been no activity for 60
days.]

** Changed in: grub2 (Ubuntu)
       Status: Incomplete => Expired

-- 
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/499483

Title:
  /etc/default/grub cannot disable use of UUID

Status in grub2 package in Ubuntu:
  Expired

Bug description:
  Binary package hint: grub-common

  Although disabeling the use of UUID's should be possible from
  /etc/default/grub, it cannot work of obvious reasons. This might not
  seem very important, but it makes image-based deployments almost
  impossible if not fixed.

  Even though /usr/sbin/grub-mkconfig is correct, it sources
  /usr/lib/grub/grub-mkconfig_lib which completly ignores the entry
  altogether.

  Approximately line 170 
  ######
  if fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid 2> /dev/null`" ; then
      echo "search --no-floppy --fs-uuid --set ${fs_uuid}"
    fi
  ######

  could easily be replaced by something like the following lines, and
  the issue would be solved :-)

  #######
    if [ ! "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] ;then
        if fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid 2> /dev/null`" ; then
        echo "search --no-floppy --fs-uuid --set ${fs_uuid}"
        fi
    fi
  #######

  -Eskild

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



More information about the foundations-bugs mailing list