remount the data device read-write

pull/5/head
Tomas M 2012-09-19 04:51:39 -05:00
parent 9f61c69baf
commit efcfb215cb
1 changed files with 2 additions and 1 deletions

View File

@ -228,8 +228,9 @@ find_data_try()
mkdir -p "$1"
blkid | sort | cut -d: -f 1 | grep -E -v "/loop|/ram|/zram" | while read DEVICE; do
FS="$(device_bestfs "$DEVICE")"
mount -r "$DEVICE" "$1" $FS
mount -r "$DEVICE" "$1" $FS 2>/dev/null
if [ -d "$1/$LIVEKITNAME" ]; then
mount -o remount,rw "$DEVICE" "$1" 2>/dev/null
echo "$1/$LIVEKITNAME"
return
fi