From 8aeef6c45d63546786703160b63e2fe81bb9226c Mon Sep 17 00:00:00 2001 From: Bernhard Landauer Date: Mon, 27 Feb 2017 04:13:19 +0100 Subject: [PATCH] fix error check mounting --- lib/util-disk.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/util-disk.sh b/lib/util-disk.sh index 210c88a..817c62e 100644 --- a/lib/util-disk.sh +++ b/lib/util-disk.sh @@ -323,12 +323,10 @@ mount_partitions() { # Use special mounting options if selected, else standard mount if [[ $(cat ${MOUNT_OPTS}) != "" ]]; then mount -o $(cat ${MOUNT_OPTS}) ${PARTITION} ${MOUNTPOINT}${MOUNT} 2>$ERR - check_for_error "mount -o $(cat ${MOUNT_OPTS}) ${PARTITION} ${MOUNTPOINT}${MOUNT}" "$?" else mount ${PARTITION} ${MOUNTPOINT}${MOUNT} 2>$ERR - check_for_error "mount $(cat ${MOUNT_OPTS}) ${PARTITION} ${MOUNTPOINT}${MOUNT}" "$?" fi - + check_for_error "mount -o $(cat ${MOUNT_OPTS}) ${PARTITION} ${MOUNTPOINT}${MOUNT}" confirm_mount ${MOUNTPOINT}${MOUNT} # Identify if mounted partition is type "crypt" (LUKS on LVM, or LUKS alone)