You are not logged in.

#1 2013-02-14 15:41:09

Registered: 2012-11-19
Posts: 2

Xen + Luks + LVM + Grub2


I am just trying to install xen with grub2 on a luks-encrypted partition. The problem I got is, that Xen replaces the GRUB_CMDLINE_LINUX where I set the cryptdevice. Booting without xen works fine, but the xen-entry of course stops booting because it can not find the lvm-device. When I enter the cryptsetup luksOpen lvm into the emergency-shell and enter the key, xen boots fine. One could say, I have to enter the key anyhow so I could also just enter the cryptsetup-line, but I would like to have this proper without dropping me into an emergency shell.
Xen has 20_linux_xen file in grub.d that seems to be processed when installing grub. In that script it sets GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX_XEN_REPLACE}" - Unfortunately it just boldly overwrites the cmdline I set in /etc/default/grub without keeping what I need to load my cryptdevice. I was not able to find, where XEN_REPLACE is defined and to add the cryptdevice-entry again... any tips?



Board footer

Powered by FluxBB