]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
crypt: install /etc/crypttab only in host-only mode
authorHarald Hoyer <harald@redhat.com>
Mon, 24 Sep 2012 11:15:08 +0000 (13:15 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 24 Sep 2012 11:15:08 +0000 (13:15 +0200)
modules.d/90crypt/module-setup.sh

index 485cbe0707907f1d039447dfd375b549953e8acd..5c1c71bc428afcc819495fc7df7c32ae948cf25c 100755 (executable)
@@ -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 \