mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 00:40:07 +01:00
feat: Check filesystem during installation
This commit is contained in:
1 parent
e2a4ab7515
commit
c2dc0cd3b6
1 file changed
+3
-4
+3
-4
@@ -39,15 +39,14 @@ else
|
||||
TMP="/tmp/dsm"
|
||||
fi
|
||||
|
||||
RDC="$STORAGE/dsm.rd"
|
||||
rm -rf "$TMP" && mkdir -p "$TMP"
|
||||
|
||||
# Check free diskspace
|
||||
MIN_SPACE=5842450944
|
||||
SPACE=$(df --output=avail -B 1 "$TMP" | tail -n 1)
|
||||
(( MIN_SPACE > SPACE )) && error "Not enough free space for installation." && exit 95
|
||||
|
||||
RDC="$STORAGE/dsm.rd"
|
||||
|
||||
rm -rf "$TMP" && mkdir -p "$TMP"
|
||||
|
||||
[[ "${DEBUG}" == [Yy1]* ]] && set -x
|
||||
|
||||
if [ ! -f "${RDC}" ]; then
|
||||
|
||||
Reference in new issue
Block a user