From 2c4500394b2e3b3074468fffc4d91b404304bc39 Mon Sep 17 00:00:00 2001 From: Mina Galić Date: Mon, 2 Nov 2020 22:13:02 +0100 Subject: remove unnecessary reboot from gpart resize (#646) a reboot after `gpart resize` hasn't been necessary since ca FreeBSD 9.2 Co-authored-by: Rick Harding --- cloudinit/config/cc_growpart.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cloudinit/config') diff --git a/cloudinit/config/cc_growpart.py b/cloudinit/config/cc_growpart.py index 237c3d02..621df0ac 100644 --- a/cloudinit/config/cc_growpart.py +++ b/cloudinit/config/cc_growpart.py @@ -196,10 +196,6 @@ class ResizeGpart(object): util.logexc(LOG, "Failed: gpart resize -i %s %s", partnum, diskdev) raise ResizeFailedException(e) from e - # Since growing the FS requires a reboot, make sure we reboot - # first when this module has finished. - open('/var/run/reboot-required', 'a').close() - return (before, get_size(partdev)) -- cgit v1.2.3