diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator index f526e37a..971b48a3 100755 --- a/src/sbin/livemedia-creator +++ b/src/sbin/livemedia-creator @@ -989,7 +989,8 @@ def calculate_disk_size(opts, ks): :param opts: options passed to livemedia-creator :type opts: argparse options :param str ks: Path to the kickstart to use for the installation - + :returns: Disk size in MiB + :rtype: int """ # Disk size for a filesystem image should only be the size of / # to prevent surprises when using the same kickstart for different installations. @@ -1480,7 +1481,7 @@ def main(): disk_img = opts.disk_image or disk_img with PartitionMount(disk_img) as img_mount: if img_mount and img_mount.mount_dir: - make_runtime(opts, img_mount.mount_dir, work_dir, calculate_disk_size(opts, ks)) + make_runtime(opts, img_mount.mount_dir, work_dir, calculate_disk_size(opts, ks)/1024.0) result_dir = make_livecd(opts, img_mount.mount_dir, work_dir) # --iso-only removes the extra build artifacts, keeping only the boot.iso