Skip to content

Commit 0be27ee

Browse files
committed
Fix wrong functions being used in legacy part of diskimage creation
1 parent a623d40 commit 0be27ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

repos/system_upgrade/common/libraries/overlaygen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,12 +699,12 @@ def _prepare_required_mounts_old(scratch_dir, mounts_dir, mount_points, xfs_info
699699
return result
700700

701701
xfs_noftype_mounts = len(xfs_info.mountpoints_without_ftype)
702-
space_needed = _overlay_disk_size() * xfs_noftype_mounts
702+
space_needed = _overlay_disk_size_old() * xfs_noftype_mounts
703703
disk_images_directory = os.path.join(scratch_dir, 'diskimages')
704704

705705
# Ensure we cleanup old disk images before we check for space contraints.
706706
run(['rm', '-rf', disk_images_directory])
707-
_create_diskimages_dir(scratch_dir, disk_images_directory)
707+
_create_diskimages_dir_old(scratch_dir, disk_images_directory)
708708
_ensure_enough_diskimage_space_old(space_needed, scratch_dir, xfs_noftype_mounts)
709709

710710
mount_names = [mount_point.fs_file for mount_point in mount_points]

0 commit comments

Comments
 (0)