From 5765104bcaafa63fdef3af0a3c0470b1f249738e Mon Sep 17 00:00:00 2001 From: Vic Thacker Date: Tue, 10 Sep 2024 07:45:56 +0900 Subject: [PATCH] Add POOL_Size variable to improve flexibility and maintainability Define a variable, POOL_SIZE='6g', to makes it easier to adjust the size in the future if needed. --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1577b82..f83cbcb 100755 --- a/build.sh +++ b/build.sh @@ -132,7 +132,8 @@ workspace() mkdir -p ${livecd} ${base} ${iso} ${software_packages} ${base_packages} ${release} # Create a new pool image file of 6GB - truncate -s 6g ${livecd}/pool.img + POOL_SIZE='6g' + truncate -s ${POOL_SIZE} ${livecd}/pool.img # Attach the pool image as a memory disk mdconfig -f ${livecd}/pool.img -u 0