cryptsetup and automount

2 posts / 0 new
Last post
#1 Wed, 2018-03-07 13:50
jodumont
  • jodumont's picture
  • Offline
  • Last seen: 17 hours 4 min ago
  • Joined: 2018-02-06

Hi;

I made a luck file and crypttab to open my crypt automatically but, if I post this, it's obviously not working ;)

my guide is this howto : https://www.howtoforge.com/automatically-unlock-luks-encrypted-drives-with-a-keyfile

with centos and debian it works well
but on alpine it works only with a script into : /etc/local.d/

So my questions are :
1. How I could tell Alpine to decrypt my drive with the info it could find in /etc/crypttab ?
2. If it's not possible; How I could prioritize my local.d script or how I could say to my services startAfter or startBefore like it's possible with SystemD

thanks for you help!

Jonathan

Wed, 2018-03-28 12:11
jodumont
  • jodumont's picture
  • Offline
  • Last seen: 17 hours 4 min ago
  • Joined: 2018-02-06

so as an update for myself or other quiet readers

local.d seams the way to do it

to manage the priority part
I referenced to : https://wiki.gentoo.org/wiki/OpenRC#Dependency_behavior

Log in or register to post comments