I have /tmp, /home and swap volume encrypted with cryptsetup. /tmp and swap are using random encryption keys, so only key for /home/ volume should be entered. Also I want to have my machine accessible via ssh even after power failure and reboot, so I want to run cryptsetup for swap and /tmp at boot runlevel and run cryptsetup for /home at default runlevel. I've copied /etc/init.d/dmcrypt to /etc/init.d/dmcrypt_deferred and created separate config /etc/conf.d/dmcrypt_deferred but then I've found that /etc/init.d/dmcrypt uses scripts /lib/rcscripts/addons/dm-crypt-start.sh and /lib/rcscripts/addons/dm-crypt-stop.sh which have hardcoded value "etc/conf.d/dmcrypt" I think that these scripts should use ${SVCNAME} to determine which config from conf.d to use. So, I've created quick path which I'll attach to this issue later. Reproducible: Always Steps to Reproduce:
Created attachment 248738 [details] Patch for dmcrypt start script which allows to use different configs
Created attachment 248740 [details] Patch for dmcrypt start script which allows to use different configs I'm awfully sorry, attachment #1 [details] contains wrong file
Created attachment 248742 [details] Patch for dmcrypt stop script which allows to use different configs
I've attached patches for rcscripts which allow to create symlinks like ln -s /etc/init.d/dmcrypt /etc/init.d/dmcrypt.deferred and use different configs for them, like /etc/conf.d/dmcrypt and /etc/conf.d/dmcrypt.deferred
Created attachment 248744 [details] Shellscript which generates patched rcscripts versions and installs them into /opt
Created attachment 248747 [details] Fixed version of start script patch
Created attachment 248749 [details] Fixed version of stop script patch
does the splash lines also need ${SVCNAME%.*} ? seems like those should stick with ${SVCNAME}. i dont think the line that is for baselayout-1 compat needs changing either. the rest looks fine i guess.
Ok, I agree with your comments. So, is it possible that my or similar patches will be applied?
post updated patches incorporating my feedback and i'll merge them
Created attachment 248944 [details] Improved rcscripts patch
thanks, ive added that to cryptsetup-1.1.3-r1