Skip to content

Commit 227d3fc

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

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
@@ -514,6 +514,8 @@ def grow_root_partition(self) -> int | None:
514514
self.ssh('apk add util-linux e2fsprogs-extra')
515515
elif pkg_manager == PackageManagerEnum.APT_GET:
516516
self.ssh('apt-get update && apt-get install -y -qq util-linux e2fsprogs')
517+
elif pkg_manager == PackageManagerEnum.RPM:
518+
self.ssh('yum install -y util-linux e2fsprogs')
517519
else:
518520
return None
519521
mount_output = self.ssh('mount').strip()

0 commit comments

Comments
 (0)