Empty crypttab in initramfs
Posted: 2015/11/13 02:19:17
I enabled crypt in dracut.conf using 'add_dracutmodules+="crypt"' so now my initramfs includes cryptsetup, but crypt leaves me with an empty crypttab. I tried adding 'install_items+="/etc/crypttab"' to dracut.conf but that appears to happen before crypt writes the empty file. I ended up adding "cp /etc/crypttab $initdir/etc/crypttab" near the bottom of /usr/lib/dracut/modules.d/90crypt/module-setup.sh to get a good initramfs. The parts of the scripts in 90crypt that deal with crypttab are a bit above my head. Any idea how I can tell it to include my actual crypttab instead of an empty one?