Bugfix: use DM_PATH_ instead of DM_NAME_ for fsck
authorThomas Koehler <jean-luc@picard.franken.de>
Mon, 7 Jun 2010 06:31:58 +0000 (08:31 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 25 Jun 2010 11:42:25 +0000 (13:42 +0200)
grml-crypt

index fade32e..107fe7f 100755 (executable)
@@ -187,7 +187,7 @@ function actionStart
   execute "$CRYPTSETUP_ $cargs_ luksOpen $TARGET_ $DM_NAME_" warn || execute "losetup -d $TARGET_" || \
     die "could not luksOpen $TARGET_"
   if [[ "$FSCK_" == "true" ]] ; then
-    execute "fsck -C $DM_NAME_" || die "fsck failed on $DM_NAME_"
+    execute "fsck -C $DM_PATH_" || die "fsck failed on $DM_PATH_"
   fi
   margs_=""
   $READONLY_SET_ && margs_='-r'