Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NAS setup: USB, dropbear, LUKS, RAID-5, chroot...
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
syntern
n00b
n00b


Joined: 22 Jan 2025
Posts: 1

PostPosted: Wed Jan 22, 2025 6:31 pm    Post subject: NAS setup: USB, dropbear, LUKS, RAID-5, chroot... Reply with quote

I'd like to create a setup where the boot is from a read-only USB drive.
It should boot into a minimal environment that has a dropbear SSH server, it gets its init command / encryption password through SSH, and with that it stops. (Maybe it also starts a nebula node).
The init command will decrypt disks (using LUKS), setup the raid-5 over them, and then mount the volume.
It should then chroot into a directory on that volume, starting local services (cron, docker, ...).

Has anybody a similar setup?
Back to top
View user's profile Send private message
zen_desu
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2024
Posts: 107

PostPosted: Wed Jan 22, 2025 8:06 pm    Post subject: Reply with quote

I do something similar, but i enter keys over serial/ipmi. This is generally more compatible and helps keep your initramfs relatively simple.

If you're using mdraid and assemble the raid device, then put LUKS on that, you only need one key. If you do something like btrfs raid, you probably want a unique key per device. I prefer that method, even though it adds a bit of complexity to the initramfs process.
_________________
µ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