Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
+encryption +LVM [solved]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Beelzebub_
Apprentice
Apprentice


Joined: 21 May 2012
Posts: 256
Location: outside/todesstern-2.01

PostPosted: Wed Mar 20, 2013 9:12 am    Post subject: Reply with quote

Thanks,

i have installed better-initramfs like you said.
Code:
# git clone https://bitbucket.org/piotrkarbowski/better-initramfs.git
# cd better-initramfs
###### (optional: tweek bootstrap/bootstrap-all.conf) ######
# bootstrap/bootstrap-all
# make prepare
# make image


I have changed my kernel params to:

Code:
luks enc_root=/dev/sda1:/dev/sdb2 luks root=/dev/mapper/vg-root
(grub2)

I also have deleted my /usr/src/initramfs dir and i recompiled my kernel without "initramfs file /usr/src/initramfs/"

But after rebooting i got a kernel panic again.
_________________
Ich habe keine Angst vorm Sterben, ich habe nur Angst ich habe nicht genug gelebt.
Back to top
View user's profile Send private message
Beelzebub_
Apprentice
Apprentice


Joined: 21 May 2012
Posts: 256
Location: outside/todesstern-2.01

PostPosted: Wed Mar 20, 2013 9:57 am    Post subject: Reply with quote

Could anyone translate that into grub2?

Code:
LABEL kernel1_bzImage-3.2.2-frontier2
        MENU LABEL Gentoo Linux bzImage-3.2.2-frontier2
        LINUX /bzImage-3.2.2-frontier2
        INITRD /initramfs.cpio.gz
        APPEND rootfstype=ext4 luks enc_root=/dev/sda2 lvm root=/dev/mapper/vg-rootfs

_________________
Ich habe keine Angst vorm Sterben, ich habe nur Angst ich habe nicht genug gelebt.
Back to top
View user's profile Send private message
Beelzebub_
Apprentice
Apprentice


Joined: 21 May 2012
Posts: 256
Location: outside/todesstern-2.01

PostPosted: Wed Mar 20, 2013 10:45 am    Post subject: Reply with quote

Maybe it is better to let the kernel handel that.

By initramfs file /urs/src/sourceroot ?
_________________
Ich habe keine Angst vorm Sterben, ich habe nur Angst ich habe nicht genug gelebt.
Back to top
View user's profile Send private message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Wed Mar 20, 2013 11:33 am    Post subject: Reply with quote

You *need* to provide full kernel panic screen. Grab a phone and do a photo, push it to imgur and post here. Also provide grub2.conf.

You sure not removed the kernel's initramfs support or you just disabled the in-kernel initramfs?

Kernel panic is result, not root case of your very issue.

Personally I found grub2 to be far too complicated bootloader to be worth wide using so I stick to extlinux (syslinux).
Back to top
View user's profile Send private message
Beelzebub_
Apprentice
Apprentice


Joined: 21 May 2012
Posts: 256
Location: outside/todesstern-2.01

PostPosted: Wed Mar 20, 2013 12:28 pm    Post subject: Reply with quote

That what i can see on the kernel panic screen is not important for solving the problem. :(

I will need some time to configure the grub2 configs..
..you are right grub2 sux, but i will use it anyway! :D
_________________
Ich habe keine Angst vorm Sterben, ich habe nur Angst ich habe nicht genug gelebt.
Back to top
View user's profile Send private message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Wed Mar 20, 2013 12:46 pm    Post subject: Reply with quote

Beelzebub_ wrote:
That what i can see on the kernel panic screen is not important for solving the problem. :(

You're must be joking or trolling.
Back to top
View user's profile Send private message
Beelzebub_
Apprentice
Apprentice


Joined: 21 May 2012
Posts: 256
Location: outside/todesstern-2.01

PostPosted: Fri Mar 22, 2013 12:35 pm    Post subject: Reply with quote

I have changed my encryption.
Now i have an encrypted LV (vg-root). I have not encrypted the two PV's. That is much easier with genkernel.

Code:
genkernel  --lvm  --luks --no-ramdisk-modules --no-keymap --menuconfig --no-clean --install all


Code:
GRUB_CMDLINE_LINUX_DEFAULT="dolvm crypt_root=/dev/mapper/vg-root"


It works and i can boot into my encrypted system now, but i have one problem left:

When i boot the genkernel i do not get my detailed boot messages any more. -.-

I only get
Code:
  Linux x86_64-genkenel-3.8.3-r1 loading...
initiale ramdisk loading..

_________________
Ich habe keine Angst vorm Sterben, ich habe nur Angst ich habe nicht genug gelebt.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum