diff --git a/modules.d/90crypt/crypt-run-generator.sh b/modules.d/90crypt/crypt-run-generator.sh index 3264b299..bacdbbe0 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