diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-04-07 19:00:24 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2020-04-07 19:01:09 -0400 |
commit | 340dd9a1794e6a5700ed70ec56a35ef117f0fe79 (patch) | |
tree | 51b3d9a993e3afc42e451e90eed5b423c46753f2 | |
parent | fdcb13660fbb7d9842ae3cae6ff61f3d1a3fa1ff (diff) |
bugfix - extra packges could overflow root fs size
-rwxr-xr-x | src/pvmbootstrap.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pvmbootstrap.sh b/src/pvmbootstrap.sh index 3547c28..40cc89e 100755 --- a/src/pvmbootstrap.sh +++ b/src/pvmbootstrap.sh @@ -443,8 +443,8 @@ main() # ( [cli_options] imagefile arch ) # vaidate options and calculate options-dependent vars (( $RootSizeMb > 0 )) && \ - (( $RootSizeMb < $MinRootMb )) && warning "specified root FS size too small - ignoring PkgsOptional" - (( $RootSizeMb < $MinRootMb )) && RootSizeMb=$MinRootMb && PkgsOptional=() + (( $RootSizeMb < $MinRootMb )) && warning "specified root FS size too small - ignoring -c and -p packages" + (( $RootSizeMb < $MinRootMb )) && RootSizeMb=$MinRootMb PkgsCached=() PkgsOptional=() RootSizeMb=$(( $RootSizeMb + (${#Kernels[@]} * 75) )) ImgSizeMb=$(( $BootSizeMb + $SwapSizeMb + $RootSizeMb )) HasSwap=$( (( $SwapSizeMb > 0 )) && echo 1 || echo 0 ) |