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

Marcus Tomlinson marcus.tomlinson at canonical.com
Thu Mar 5 12:38:09 UTC 2020


This release of Ubuntu is no longer receiving maintenance updates. If
this is still an issue on a maintained version of Ubuntu please let us
know.

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

-- 
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:
  Incomplete

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