Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Chrooting while setting up disk encryption
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
NP_complete
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2009
Posts: 137

PostPosted: Mon Sep 30, 2024 6:33 am    Post subject: [SOLVED] Chrooting while setting up disk encryption Reply with quote

I am using the latest minimal-install USB and following the Full Disk Encryption Guide. This guide, supposedly, integrates well into Gentoo Handbook's workflow. The section on Dracut, however, starts with the warning:
Quote:
This configuration should be done while chrooted, or on a live system.
But how exactly should this chrooting be done? Indeed, in the Handbook, chrooting does not come in until much later, and many of the directories (e.g. /mnt/gentoo/proc) do not even exist this early on. Clearly, we are talking about a custom chroot here, different from the one in the Handbook.

Many thanks.


Last edited by NP_complete on Mon Nov 11, 2024 12:10 pm; edited 3 times in total
Back to top
View user's profile Send private message
wanne
n00b
n00b


Joined: 28 Oct 2010
Posts: 15

PostPosted: Mon Sep 30, 2024 8:35 am    Post subject: Reply with quote

I think the Guide is a little bit confusing, since it tries to handle serveral scenarios at once. Migration, new installation, with different Kernels and Boot loaders.

If you are following the "Installing Gentoo" guide you have to integrate steps 4-6 into the steps 15-18. 3 into 32, 7 into 31 and 2 somewhere between 24 and 44.
Sounds complicated but it isn't: Just follow the order of the installation guide and when you are at partitioning, you have to fallow the partitioning order. When you are at the initramfs stuff you have to fallow the initramfs stuff...

Btw: dracut seems to have trouble with a lot of configurations including encrypted disks. I recommend using UGRD.
_________________
Sorry for my bad English
Back to top
View user's profile Send private message
NP_complete
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2009
Posts: 137

PostPosted: Mon Nov 11, 2024 12:07 pm    Post subject: Reply with quote

@wanne, thanks for your reply. That was a good advice. Obviously, that document does not have a linear structure and should be followed selectively. Anyways, I finally figured it out.
Back to top
View user's profile Send private message
zen_desu
n00b
n00b


Joined: 25 Oct 2024
Posts: 60

PostPosted: Mon Nov 11, 2024 5:52 pm    Post subject: Reply with quote

NP_complete wrote:
@wanne, thanks for your reply. That was a good advice. Obviously, that document does not have a linear structure and should be followed selectively. Anyways, I finally figured it out.


These guides are designed to be used alongside the handbook, but the flow from start to finish should be mostly linear. If you're not doing anything advanced, I'd recommend using the rootfs encryption guide:
https://wiki.gentoo.org/wiki/Rootfs_encryption

It's a bit hard to make these guides cover a complete process without greatly summarizing portions of the handbook between 'stage file' and 'configuring the bootloader'. Currently the FDE page is a more advanced page with much more detailed information, where you really have to pick and choose what you want, while the rootfs page is a simpler guide attempting to show necessary steps without being exhaustive.

Encryption information may be added to the handbook at some point, but it requires a lot of consideration to add.
https://wiki.gentoo.org/wiki/Project:Handbook/Handbook_Development#Adding_new_topics
_________________
µgRD dev
Wiki writer
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