summaryrefslogtreecommitdiffstats
path: root/client/engine/FileSystem.lib
diff options
context:
space:
mode:
Diffstat (limited to 'client/engine/FileSystem.lib')
-rwxr-xr-xclient/engine/FileSystem.lib10
1 files changed, 4 insertions, 6 deletions
diff --git a/client/engine/FileSystem.lib b/client/engine/FileSystem.lib
index 69ac26c6..1f342a5e 100755
--- a/client/engine/FileSystem.lib
+++ b/client/engine/FileSystem.lib
@@ -711,12 +711,10 @@ if [ -z "$MNTDIR" ]; then
fi
# Montar sistema de archivos.
mount $PART $MNTDIR &>/dev/null || \
- mount $PART $MNTDIR -o force,remove_hiberfile &>/dev/null
- case $? in
- 0) ;;
- 14) ogRaiseError $OG_ERR_PARTITION "$1, $2 ($MSG_HIBERNATED)"; return $? ;;
- *) ogRaiseError $OG_ERR_PARTITION "$1, $2"; return $? ;;
- esac
+ mount $PART $MNTDIR -o force,remove_hiberfile &>/dev/null || \
+ mount $PART $MNTDIR -o ro &>/dev/null && \
+ ogEcho warning "$FUNCNAME: $MSG_MOUNTREADONLY: \"$1, $2\"" || \
+ ogRaiseError $OG_ERR_PARTITION "$1, $2"; return $? ;;
else
# Montar sistema de archivos ZFS (un ZPOOL no comienza por "/").
zfs mount $PART 2>/dev/null