]> git.ipfire.org Git - thirdparty/dracut-ng.git/commit
feat(crypt): remove empty /etc/crypttab to allow creating it later
authorJo Zzsi <jozzsicsataban@gmail.com>
Thu, 26 Dec 2024 13:51:53 +0000 (08:51 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Thu, 26 Dec 2024 15:15:46 +0000 (10:15 -0500)
commit23ef35d3eddb49bd09df15a8f3f28244e1a4fa70
tree78fd4b19fc3c27a3abb23499e2f29889230af53b
parentefb57a23b32de74b78258aa307dfc94a06594da8
feat(crypt): remove empty /etc/crypttab to allow creating it later

crypt module should not install an empty /etc/crypttab in hostonly mode.

Some distributions ship with an /etc/crypttab without entries (just
with comments). In those distributions installing /etc/crypttab
as part of --install command line option in hostonly mode would not
work as expected.

Fixes: https://github.com/dracut-ng/dracut-ng/issues/1057
modules.d/90crypt/module-setup.sh