mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-08 01:18:32 +08:00
Update install.sh
This commit is contained in:
parent
c3e3b98211
commit
ab95eb6ebf
@ -328,10 +328,12 @@ if [[ "${FS,,}" == "btrfs" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! fallocate -l "$SYSTEM_SIZE" "$SYSTEM"; then
|
||||
if ! truncate -s "$SYSTEM_SIZE" "$SYSTEM"; then
|
||||
rm -f "$SYSTEM"
|
||||
error "Could not allocate file $SYSTEM for the system disk." && exit 98
|
||||
if ! fallocate -l "$SYSTEM_SIZE" "$SYSTEM" &>/dev/null; then
|
||||
if ! fallocate -l -x "$SYSTEM_SIZE" "$SYSTEM"; then
|
||||
if ! truncate -s "$SYSTEM_SIZE" "$SYSTEM"; then
|
||||
rm -f "$SYSTEM"
|
||||
error "Could not allocate file $SYSTEM for the system disk." && exit 98
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user