--- modules.d/90crypt/crypt-run-generator.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules.d/90crypt/crypt-run-generator.sh b/modules.d/90crypt/crypt-run-generator.sh index 3264b29..bacdbbe 100755 --- a/modules.d/90crypt/crypt-run-generator.sh +++ b/modules.d/90crypt/crypt-run-generator.sh @@ -23,6 +23,9 @@ if strstr "$(cryptsetup --help)" "allow-discards"; then fi echo "$luks $dev none $allowdiscards" >> /etc/crypttab -systemctl daemon-reload -systemctl start cryptsetup.target + +if command -v systemctl >/dev/null; then + systemctl daemon-reload + systemctl start cryptsetup.target +fi exit 0 -- 1.7.12 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html