try to fix umount_partitions

This commit is contained in:
Bernhard Landauer 2017-03-01 04:12:39 +01:00
parent 3c8e63d982
commit a28ecd1dd6

View File

@ -4,10 +4,12 @@ umount_partitions() {
MOUNTED=$(mount | grep "${MOUNTPOINT}" | awk '{print $3}' | sort -r)
swapoff -a
# for i in ${MOUNTED[@]}; do
for i in ${MOUNTED[@]}; do
umount $i >/dev/null 2>$ERR
check_for_error $FUNCNAME $?
# local err=$(umount $i >/dev/null 2>$ERR)
# (( err !=0 )) && check_for_error "$FUNCNAME $i" $err
# done
done
}
# This function does not assume that the formatted device is the Root installation device as