2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-23 01:53:28 +00:00

Fix swapsize float in image install

If it undergoes float arithmetic, it must be made int again.
This commit is contained in:
Jarrod Johnson 2021-07-16 17:23:21 -04:00
parent bda51d2106
commit fada9336ee

View File

@ -112,7 +112,7 @@ def install_to_disk(imgpath):
swapsize = swapsize * 0.5
elif swapsize >= 67108864:
swapsize = 33554432
swapsize = swapsize * 1024
swapsize = int(swapsize * 1024)
deftotsize = swapsize
mintotsize = swapsize
for fs in get_image_metadata('/run/imginst/sourceimage/rootimg.sfs'):