From: Harald Hoyer Date: Mon, 24 Sep 2012 11:15:08 +0000 (+0200) Subject: crypt: install /etc/crypttab only in host-only mode X-Git-Tag: 024~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d12d7a2cc5d4fc76ac87514dae2ab27bac8208c;p=thirdparty%2Fdracut.git crypt: install /etc/crypttab only in host-only mode --- diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh index 485cbe070..5c1c71bc4 100755 --- a/modules.d/90crypt/module-setup.sh +++ b/modules.d/90crypt/module-setup.sh @@ -47,7 +47,7 @@ install() { inst_hook cmdline 10 "$moddir/parse-keydev.sh" inst_hook cmdline 30 "$moddir/parse-crypt.sh" inst_hook cleanup 30 "$moddir/crypt-cleanup.sh" - inst_simple /etc/crypttab + [[ $hostonly ]] && inst_simple /etc/crypttab inst_simple "$moddir/crypt-lib.sh" "/lib/dracut-crypt-lib.sh" dracut_install -o \