View previous topic :: View next topic |
Author |
Message |
syntern n00b
Joined: 22 Jan 2025 Posts: 1
|
Posted: Wed Jan 22, 2025 6:31 pm Post subject: NAS setup: USB, dropbear, LUKS, RAID-5, chroot... |
|
|
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 |
|
|
zen_desu Tux's lil' helper
Joined: 25 Oct 2024 Posts: 107
|
Posted: Wed Jan 22, 2025 8:06 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|