From fada9336eea3c28f2868d9d8af8efbe17b69a7d5 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 16 Jul 2021 17:23:21 -0400 Subject: [PATCH] Fix swapsize float in image install If it undergoes float arithmetic, it must be made int again. --- .../el8-diskless/profiles/default/scripts/image2disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/el8-diskless/profiles/default/scripts/image2disk.py b/confluent_osdeploy/el8-diskless/profiles/default/scripts/image2disk.py index 23015a4c..afe05b6a 100644 --- a/confluent_osdeploy/el8-diskless/profiles/default/scripts/image2disk.py +++ b/confluent_osdeploy/el8-diskless/profiles/default/scripts/image2disk.py @@ -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'):