mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-01 00:46:38 +00:00
image-builder: fix mem boundary recalculation
$/${} is unnecessary on arithmetic variables. [SC2004] Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
@@ -252,7 +252,7 @@ create_rootfs_disk()
|
|||||||
# of disk creation by adding 5% in the inital assumed value $ROOTFS_SIZE
|
# of disk creation by adding 5% in the inital assumed value $ROOTFS_SIZE
|
||||||
if [ $ROOTFS_SIZE -gt $AVAIL_DISK ]; then
|
if [ $ROOTFS_SIZE -gt $AVAIL_DISK ]; then
|
||||||
# Increase the size but remain aligned to the original MEM_BOUNDARY_MB, which is stored in $ORIG_MEM_BOUNDARY_MB
|
# Increase the size but remain aligned to the original MEM_BOUNDARY_MB, which is stored in $ORIG_MEM_BOUNDARY_MB
|
||||||
MEM_BOUNDARY_MB=$(($MEM_BOUNDARY_MB+$ORIG_MEM_BOUNDARY_MB))
|
MEM_BOUNDARY_MB=$((MEM_BOUNDARY_MB+ORIG_MEM_BOUNDARY_MB))
|
||||||
OLD_IMG_SIZE=${IMG_SIZE}
|
OLD_IMG_SIZE=${IMG_SIZE}
|
||||||
unset IMG_SIZE
|
unset IMG_SIZE
|
||||||
unmount
|
unmount
|
||||||
|
Reference in New Issue
Block a user