Skip to content

Commit ebfb4f5

Browse files
committed
Implement grow_root_partition for redhat-based systems
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent 0063384 commit ebfb4f5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/vm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,8 @@ def grow_root_partition(self) -> int | None:
531531
self.ssh('apk add util-linux e2fsprogs-extra')
532532
elif pkg_manager == PackageManagerEnum.APT_GET:
533533
self.ssh('apt-get update && apt-get install -y -qq util-linux e2fsprogs')
534+
elif pkg_manager == PackageManagerEnum.RPM:
535+
self.ssh('yum install -y util-linux e2fsprogs')
534536
else:
535537
return None
536538
mount_output = self.ssh('mount').strip()

0 commit comments

Comments
 (0)