mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-07-28 02:34:49 +08:00
Allocate
This commit is contained in:
parent
e29a0f1383
commit
cbd1c301ee
@ -108,12 +108,6 @@ echo "Install: Creating partition table..."
|
|||||||
SYSTEM="$TMP/sys.img"
|
SYSTEM="$TMP/sys.img"
|
||||||
SYSTEM_SIZE="4954537983"
|
SYSTEM_SIZE="4954537983"
|
||||||
|
|
||||||
if [ "$ALLOCATE" != "Y" ]; then
|
|
||||||
|
|
||||||
truncate -s "${SYSTEM_SIZE}" "${SYSTEM}";
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
# Check free diskspace
|
# Check free diskspace
|
||||||
SPACE=$(df --output=avail -B 1 "$TMP" | tail -n 1)
|
SPACE=$(df --output=avail -B 1 "$TMP" | tail -n 1)
|
||||||
|
|
||||||
@ -126,8 +120,6 @@ else
|
|||||||
echo "ERROR: Could not allocate a file for the system disk." && exit 88
|
echo "ERROR: Could not allocate a file for the system disk." && exit 88
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
PART="$TMP/partition.fdisk"
|
PART="$TMP/partition.fdisk"
|
||||||
|
|
||||||
{ echo "label: dos"
|
{ echo "label: dos"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user