Commit 922c1513 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Remount every UFS partition rw just to be sure

In many cases although rw flags is passed to mount, the command
returns SUCCESS with a warning that the fs seems to be mounted ro.
Remounting rw does work.
parent 4e364304
......@@ -55,6 +55,14 @@ if [[ "$SNF_IMAGE_PROPERTY_OSFAMILY" == *bsd ]]; then
exit 1
fi
$MOUNT -t ufs -o ufstype="$ufstype,rw" "$rootdev" "$SNF_IMAGE_TARGET"
# In many cases when you try to mount a UFS file system read-write,
# the mount command returns SUCCESS and a message like this gets printed:
#
# mount: warning: /mnt seems to be mounted read-only.
#
# remounting does the trick
$MOUNT -o remount,rw "$SNF_IMAGE_TARGET"
else
$MOUNT -o rw "$rootdev" "$SNF_IMAGE_TARGET"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment