View previous topic :: View next topic |
Author |
Message |
Beelzebub_ Apprentice
Joined: 21 May 2012 Posts: 256 Location: outside/todesstern-2.01
|
Posted: Wed Mar 20, 2013 9:12 am Post subject: |
|
|
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 |
|
|
Beelzebub_ Apprentice
Joined: 21 May 2012 Posts: 256 Location: outside/todesstern-2.01
|
Posted: Wed Mar 20, 2013 9:57 am Post subject: |
|
|
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 |
|
|
Beelzebub_ Apprentice
Joined: 21 May 2012 Posts: 256 Location: outside/todesstern-2.01
|
Posted: Wed Mar 20, 2013 10:45 am Post subject: |
|
|
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 |
|
|
SlashBeast Retired Dev
Joined: 23 May 2006 Posts: 2922
|
Posted: Wed Mar 20, 2013 11:33 am Post subject: |
|
|
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 |
|
|
Beelzebub_ Apprentice
Joined: 21 May 2012 Posts: 256 Location: outside/todesstern-2.01
|
Posted: Wed Mar 20, 2013 12:28 pm Post subject: |
|
|
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! _________________ Ich habe keine Angst vorm Sterben, ich habe nur Angst ich habe nicht genug gelebt. |
|
Back to top |
|
|
SlashBeast Retired Dev
Joined: 23 May 2006 Posts: 2922
|
Posted: Wed Mar 20, 2013 12:46 pm Post subject: |
|
|
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 |
|
|
Beelzebub_ Apprentice
Joined: 21 May 2012 Posts: 256 Location: outside/todesstern-2.01
|
Posted: Fri Mar 22, 2013 12:35 pm Post subject: |
|
|
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 |
|
|
|