[Bug 1232237] [NEW] GRUB_CRYPTODISK_ENABLE should be GRUB_ENABLE_CRYPTODISK

TJ ubuntu at iam.tj
Fri Sep 27 20:05:20 UTC 2013


Public bug reported:

There's a bug in the grub source package for encrypted disk support
where the shell environment variable is incorrectly named as
"GRUB_CRYPTODISK_ENABLE" when it should be "GRUB_ENABLE_CRYPTODISK".
This prevents grub-install from correctly building an encrypted
installation.

$ grep -rn GRUB_CRYPTODISK_ENABLE {/usr/share/grub/*,/usr/sbin/grub-install}
/usr/share/grub/grub-mkconfig_lib:74:  if [ x$GRUB_CRYPTODISK_ENABLE = xy ]; then
/usr/share/grub/grub-mkconfig_lib:167:  if [ x$GRUB_CRYPTODISK_ENABLE = xy ]; then
/usr/sbin/grub-install:707:    if [ x$GRUB_CRYPTODISK_ENABLE = xy ]; then

An in-place workaround is:

$ sudo sed -i 's/GRUB_CRYPTODISK_ENABLE/GRUB_ENABLE_CRYPTODISK/g'
{/usr/share/grub/grub-mkconfig_lib,/usr/sbin/grub-install}

Upstream now has a patch which does the same thing. See:

http://lists.gnu.org/archive/html/grub-devel/2013-09/msg00147.html

** Affects: grub (Ubuntu)
     Importance: Medium
         Status: Confirmed

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

Title:
  GRUB_CRYPTODISK_ENABLE should be GRUB_ENABLE_CRYPTODISK

Status in “grub” package in Ubuntu:
  Confirmed

Bug description:
  There's a bug in the grub source package for encrypted disk support
  where the shell environment variable is incorrectly named as
  "GRUB_CRYPTODISK_ENABLE" when it should be "GRUB_ENABLE_CRYPTODISK".
  This prevents grub-install from correctly building an encrypted
  installation.

  $ grep -rn GRUB_CRYPTODISK_ENABLE {/usr/share/grub/*,/usr/sbin/grub-install}
  /usr/share/grub/grub-mkconfig_lib:74:  if [ x$GRUB_CRYPTODISK_ENABLE = xy ]; then
  /usr/share/grub/grub-mkconfig_lib:167:  if [ x$GRUB_CRYPTODISK_ENABLE = xy ]; then
  /usr/sbin/grub-install:707:    if [ x$GRUB_CRYPTODISK_ENABLE = xy ]; then

  An in-place workaround is:

  $ sudo sed -i 's/GRUB_CRYPTODISK_ENABLE/GRUB_ENABLE_CRYPTODISK/g'
  {/usr/share/grub/grub-mkconfig_lib,/usr/sbin/grub-install}

  Upstream now has a patch which does the same thing. See:

  http://lists.gnu.org/archive/html/grub-devel/2013-09/msg00147.html

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



More information about the foundations-bugs mailing list