Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting up Gentoo on Libreboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Boured
n00b
n00b


Joined: 03 Dec 2019
Posts: 2
Location: My Laptop

PostPosted: Tue Dec 03, 2019 3:45 am    Post subject: Setting up Gentoo on Libreboot Reply with quote

I've been a user of Arch for several years now, but Gentoo has been on my radar due to it's sheer amount of customization that dwarfs even what Arch can do. Not to mention being able to tailor each application to my specific needs will do wonders for disk space. However, I was wanting to do a encrypted install with LUKS+LVM as I have on Arch. I would also like to encrypt /boot as well, normally this would be impossible, but the computer I plan to try this on runs Libreboot, which runs grub as it's payload, so I am able to unlock encrypted drives at the bios level. My only real issue is being able to boot the kernel, as I very much doubt the commands I use on Arch will transfer over.

Any help would be very appreciated, thank you!
Back to top
View user's profile Send private message
sdauth
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2018
Posts: 142
Location: Frankreich

PostPosted: Tue Dec 03, 2019 4:05 am    Post subject: Reply with quote

Here is my grub entry (in grub.cfg inside cbfs) for a full disk encryption installation (including /boot)
Code:

menuentry 'Load Gentoo Encrypted' {
        insmod ahci
        insmod part_msdos
        insmod part_gpt
        cryptomount (ahci0,msdos1)
        set root="lvm/anon-root"
        linux /boot/kernel dolvm crypt_root=/dev/sda1 root=/dev/anon/root cryptdevice=/dev/sda1:root:allow-discards keymap=uk root_key=crypto_keyfile.bin
        initrd /boot/initramfs
        boot
}
Back to top
View user's profile Send private message
Boured
n00b
n00b


Joined: 03 Dec 2019
Posts: 2
Location: My Laptop

PostPosted: Tue Dec 03, 2019 4:13 am    Post subject: Reply with quote

sdauth wrote:
Here is my grub entry (in grub.cfg inside cbfs) for a full disk encryption installation (including /boot)
Code:

menuentry 'Load Gentoo Encrypted' {
        insmod ahci
        insmod part_msdos
        insmod part_gpt
        cryptomount (ahci0,msdos1)
        set root="lvm/anon-root"
        linux /boot/kernel dolvm crypt_root=/dev/sda1 root=/dev/anon/root cryptdevice=/dev/sda1:root:allow-discards keymap=uk root_key=crypto_keyfile.bin
        initrd /boot/initramfs
        boot
}


Oh nice! I'm guessing that a root_key is the same as a keyfile so that I don't need to type the password again during bootup. I'll tak ethis into acount when installing, thank you so much!
Back to top
View user's profile Send private message
sdauth
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2018
Posts: 142
Location: Frankreich

PostPosted: Tue Dec 03, 2019 4:19 am    Post subject: Reply with quote

That's correct. Although, I switched back to a binary distro a couple of months ago (Hyperbola Linux) because the old x200 was screaming because of the heat during portage updates.
Also, make sure to build the ciphers you need (Serpent, AES etc..)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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