value of GRUB_ENABLE_CRYPTODISK: util/grub-install.c instructs '1' but util/config.c expects 'y'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub |
Unknown
|
Unknown
|
|||
grub2 (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Bug Description
root@XPSm1530:/# grub-install /dev/sdc
Installing for i386-pc platform.
grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_
root@XPSm1530:/# grep GRUB_ENABLE_
GRUB_ENABLE_
root@XPSm1530:/# apt-cache policy grub-pc
grub-pc:
Installed: 2.02~beta2-6
Candidate: 2.02~beta2-6
Version table:
*** 2.02~beta2-6 0
500 http://
100 /var/lib/
The message give incorrect information about the value to be assigned.
# grep -A 4 '!config\
if (!config.
grub_util_error (_("attempt to install to encrypted disk without cryptodisk enabled. "
It appears to assume that any boolean-like value is acceptable, whereas the configuration scanner only looks for 'y'.
# grep -A5 GRUB_ENABLE_
if (grub_strncmp (ptr, "GRUB_ENABLE_
{
ptr += sizeof ("GRUB_
if (*ptr == '"' || *ptr == '\'')
ptr++;
if (*ptr == 'y')
continue;
I cannot add the upstream bug-report link since it is classified as "Security". Here's the link manually:
https:/ /savannah. gnu.org/ bugs/index. php?41524
Upstream responds: "Was already fixed in master."