Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dracut for GPG-LUKS/ZFS/SSHD
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
Orionos
n00b
n00b


Joined: 27 Apr 2014
Posts: 29

PostPosted: Mon Feb 16, 2015 7:46 pm    Post subject: Dracut for GPG-LUKS/ZFS/SSHD Reply with quote

I'm trying to build an initramfs for a headless server using a GPG encrypted LUKS keyfile to unlock a ZFS root system.

Using Genkernel (in combination with GnuPG Legacy) I can make a functional initramfs. But as a headless server I'd need to use a SSH connection to unlock it, which Genkernel doesn't do.

Dracut can do everything, including SSH, but I can't figure out how to make the ZFSonLinux module for Dracut. I can do a git clone of the whole ZFSonLinux repository, but how can I make the Dracut module?

The second problem is the fact that I can't seem to unlock the GPG keyfile remotely, but I'd already be happy with the first. So I'd need Genkernel SSH or Dracut ZFS. Better-Initramfs doesn't seem to have the modules.

Can anybody assist?
Back to top
View user's profile Send private message
Orionos
n00b
n00b


Joined: 27 Apr 2014
Posts: 29

PostPosted: Wed Feb 18, 2015 6:28 pm    Post subject: Reply with quote

Well, now I just feel silly. When I could find no instructions for the ZFS dracut module in its manual, I assumed I needed to build a custom module. But it's already in there by default. And after some messing with the bootfs property, it boots.

Which leaves me with figuring out how to remotely unlock that GPG keyfile. When mounting, it uses a pipeline to unlock the keyfile with GPG and pipe it through to cryptsetup. That doesn't work over SSH though, I get a broken pipe.

The challenges a Windows administrator faces with Linux...
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