Reverse changes meant to improve f2fs support because of the regressions in mounting

without formatting.
This commit is contained in:
Chrysostomus 2017-02-26 19:26:08 +08:00
parent ce843e200d
commit 09ae183bf6

View File

@ -196,7 +196,7 @@ create_partitions() {
"reiserfs" "mkfs.reiserfs -q" \
"vfat" "mkfs.vfat -F32" \
"xfs" "mkfs.xfs -f" 2>${ANSWER}
cat ${ANSWER} > /tmp/.fs
case $(cat ${ANSWER}) in
"$_FSSkip") FILESYSTEM="$_FSSkip"
;;
@ -290,9 +290,9 @@ mount_partitions() {
# Use special mounting options if selected, else standard mount
if [[ $(cat ${MOUNT_OPTS}) != "" ]]; then
mount -t $(cat /tmp/.fs) -o $(cat ${MOUNT_OPTS}) ${PARTITION} ${MOUNTPOINT}${MOUNT} 2>$ERR
mount -o $(cat ${MOUNT_OPTS}) ${PARTITION} ${MOUNTPOINT}${MOUNT} 2>$ERR
else
mount -t $(cat /tmp/.fs) ${PARTITION} ${MOUNTPOINT}${MOUNT} 2>$ERR
mount ${PARTITION} ${MOUNTPOINT}${MOUNT} 2>$ERR
fi
check_for_error "$FUNCNAME" "$?"