Bug 14626 - draklive-install crashed on grub2-install (Set `GRUB_ENABLE_CRYPTODISK=y' in file `/etc/default/grub')
Summary: draklive-install crashed on grub2-install (Set `GRUB_ENABLE_CRYPTODISK=y' in ...
Status: RESOLVED DUPLICATE of bug 14741
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-20 23:46 CET by PC LX
Modified: 2015-04-17 15:20 CEST (History)
3 users (show)

See Also:
Source RPM: draklive-install-2.1-3.mga5
CVE:
Status comment:


Attachments

Description PC LX 2014-11-20 23:46:04 CET
The "draklive-install" program crashed. Drakbug-16.44 caught it.

Was installing "Mageia 5 beta1" just after grub configuration.


grub2-install failed: Installing for i386-pc platform.
File descriptor 4 (/) leaked on vgs invocation. Parent PID 21419: grub2-install
File descriptor 4 (/) leaked on vgs invocation. Parent PID 21419: grub2-install
grub2-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=y' in file `/etc/default/grub'..
	...propagated at /usr/lib/libDrakX/any.pm line 263.
Perl's trace:
standalone::bug_handler() called from /usr/lib/libDrakX/any.pm:263
any::installBootloader() called from /usr/lib/libDrakX/any.pm:233
any::setupBootloaderUntilInstalled() called from /usr/sbin/draklive-install:327
main::setup_bootloader() called from /usr/sbin/draklive-install:70
main::install_live() called from /usr/sbin/draklive-install:42

Theme name: oxygen-gtk
Kernel version = 3.17.2-desktop-3.mga5
Distribution=Mageia release 5 (Cauldron) for x86_64
CPU=Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz
Comment 1 Marja Van Waes 2014-12-03 17:41:38 CET
(In reply to PC LX from comment #0)

> grub2-install: error: attempt to install to encrypted disk without
> cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=y' in file
> `/etc/default/grub'..
> 	...propagated at /usr/lib/libDrakX/any.pm line 263.


IIUC, you tried to install the bootloader to an encrypted partition?

AFAIK Mageia still doesn't support that, but I'll cc our GRUB2 maintainer and our Lives builder, they'll know better than me.

CC: (none) => marja11, tmb, zen25000

Comment 2 PC LX 2014-12-03 18:30:04 CET
Not exactly. I tried to install the boot loader, GRUB2, to the MBR but /boot was in a LUKS encrypted partition.

Still, draklive-install should not crash just because grub2-install fails, and that is the bug I reported.


On a side note, after this, I was able to install GRUB2 correctly just by adding "GRUB_ENABLE_CRYPTODISK=y" to /etc/default/grub and running "grub2-install /dev/sda". The system boots correctly as well. The only issue is having to enter the LUKS password twice. I will do some more testing on this. Adding "GRUB_ENABLE_CRYPTODISK=y" to /etc/default/grub before the actual install and see if anything break when /boot is in a LUKS encrypted partition.
Comment 3 Marja Van Waes 2014-12-03 20:20:32 CET
Obviously, I didn't have coffee today.

I should have said that so far we did not support the root partition being encrypted, _unless_ /boot is on a separate, _unencrypted_ partition.

It is nice to know you managed to do this, though.

Assigning to tmb, for the request to *not* let draklive installer crash when grub2-install fails

CC: tmb => (none)
Assignee: bugsquad => tmb

Marja Van Waes 2014-12-03 20:21:09 CET

Summary: draklive-install crashed => draklive-install crashed on failing grub2-install

Thierry Vignaud 2015-04-16 21:30:26 CEST

CC: (none) => thierry.vignaud
Summary: draklive-install crashed on failing grub2-install => draklive-install crashed on grub2-install (Set `GRUB_ENABLE_CRYPTODISK=y' in file `/etc/default/grub')

Comment 4 Barry Jackson 2015-04-17 15:20:04 CEST
@ tv

In cauldron GRUB_ENABLE_CRYPTODISK=y is default since 4 months:

http://svnweb.mageia.org/packages?view=revision&revision=802632
- added GRUB_CRYPTODISK_ENABLE=y to default config mga#14741 
- patch to fix regression when GRUB_CRYPTODISK_ENABLE=y with no encrypted partitions

This is a duplicate of 14741 which is fixed, so closing.

*** This bug has been marked as a duplicate of bug 14741 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE


Note You need to log in before you can comment on or make changes to this bug.