summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/source
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins/source')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-efi.py2
-rw-r--r--scripts/lib/wic/plugins/source/rawcopy.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py
index 8bc362254d..4adb80becc 100644
--- a/scripts/lib/wic/plugins/source/bootimg-efi.py
+++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
@@ -234,5 +234,5 @@ class BootimgEFIPlugin(SourcePlugin):
234 out = exec_cmd(du_cmd) 234 out = exec_cmd(du_cmd)
235 bootimg_size = out.split()[0] 235 bootimg_size = out.split()[0]
236 236
237 part.size = bootimg_size 237 part.size = int(bootimg_size)
238 part.source_file = bootimg 238 part.source_file = bootimg
diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py
index e0b11f95ad..5bd22fdeb5 100644
--- a/scripts/lib/wic/plugins/source/rawcopy.py
+++ b/scripts/lib/wic/plugins/source/rawcopy.py
@@ -78,9 +78,9 @@ class RawCopyPlugin(SourcePlugin):
78 # get the size in the right units for kickstart (kB) 78 # get the size in the right units for kickstart (kB)
79 du_cmd = "du -Lbks %s" % dst 79 du_cmd = "du -Lbks %s" % dst
80 out = exec_cmd(du_cmd) 80 out = exec_cmd(du_cmd)
81 filesize = out.split()[0] 81 filesize = int(out.split()[0])
82 82
83 if int(filesize) > int(part.size): 83 if filesize > part.size:
84 part.size = filesize 84 part.size = filesize
85 85
86 part.source_file = dst 86 part.source_file = dst