SVN: geninitrd/trunk/mod-luks.sh
wiget
wiget at pld-linux.org
Thu Feb 3 11:41:32 CET 2011
Author: wiget
Date: Thu Feb 3 11:41:32 2011
New Revision: 12108
Modified:
geninitrd/trunk/mod-luks.sh
Log:
Check source device before cryptsetup run
Modified: geninitrd/trunk/mod-luks.sh
==============================================================================
--- geninitrd/trunk/mod-luks.sh (original)
+++ geninitrd/trunk/mod-luks.sh Thu Feb 3 11:41:32 2011
@@ -147,7 +147,9 @@
debug "+ cryptsetup ${keyfile:+-d $keyfile} luksOpen '$src' '$dst'"
add_linuxrc <<-EOF
- cryptsetup ${keyfile:+-d $keyfile} luksOpen '$src' '$dst' <&1
+ if [ -e '$src' ]; then
+ cryptsetup ${keyfile:+-d $keyfile} luksOpen '$src' '$dst' <&1
+ fi
debugshell
EOF
More information about the pld-cvs-commit
mailing list