Rename variable to be more clear
This commit is contained in:
parent
ce78625bec
commit
737a65e5e7
@ -14,10 +14,10 @@ fi
|
||||
sysfs_xvda="/sys/class/block/xvda"
|
||||
|
||||
# if root filesystem use already (almost) the whole dis
|
||||
non_rootfs_data=$(( 250 * 1024 * 2 ))
|
||||
size_margin=$(( 250 * 1024 * 2 ))
|
||||
rootfs_size=$(df --block-size=512 --output=size / | tail -n 1 | tr -d ' ')
|
||||
if [ $(cat $sysfs_xvda/size) -gt \
|
||||
$(( non_rootfs_data + rootfs_size )) ]; then
|
||||
$(( size_margin + rootfs_size )) ]; then
|
||||
echo "root filesystem already at $rootfs_size blocks" >&2
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user