integ/virt/cloud-init/centos/patches/cloud-init-interactive-parted.patch
Long Li e8e689c149 CentOS 8: Upgrade cloud-init to version 18.2
(1)Release Version Upgrade
(2)Matching code changes with el7 to el8

Story: 2006729
Task: 37682
Depends-On: https://review.opendev.org/#/c/696481/
Depends-On: https://review.opendev.org/#/c/696050/
Change-Id: I7ef21a833d29d79c18309b200c9ae7b9c84a16d3
Signed-off-by: Long Li <lilong-neu@neusoft.com>
2019-12-13 17:31:19 +08:00

26 lines
873 B
Diff

From 70b90db2364256fe8ba7e368cbd96cd53b246cb3 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 8 Nov 2017 11:02:42 -0500
Subject: [PATCH] cloud-init-interactive-parted
---
cloudinit/config/cc_growpart.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cloudinit/config/cc_growpart.py b/cloudinit/config/cc_growpart.py
index bafca9d..88e7bbb 100644
--- a/cloudinit/config/cc_growpart.py
+++ b/cloudinit/config/cc_growpart.py
@@ -182,7 +182,7 @@ class ResizeGpart(object):
before = get_size(partdev)
try:
- util.subp(["gpart", "resize", "-i", partnum, diskdev])
+ util.subp(["resizepart.sh", diskdev, partnum])
except util.ProcessExecutionError as e:
util.logexc(LOG, "Failed: gpart resize -i %s %s", partnum, diskdev)
raise ResizeFailedException(e)
--
2.7.4