Ubuntu Pastebin

Paste from smoser at Fri, 15 Sep 2017 18:11:53 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
diff --git a/cloudinit/config/cc_resizefs.py b/cloudinit/config/cc_resizefs.py
index f91e892e..83f3ef9e 100644
--- a/cloudinit/config/cc_resizefs.py
+++ b/cloudinit/config/cc_resizefs.py
@@ -192,6 +192,10 @@ def is_device_path_writable_block(devpath, info, log):
             return False
         log.debug("Converted /dev/root to '%s' per kernel cmdline", devpath)
 
+    if devpath == "overlayroot":
+        log.debug("Not attempting to resize devpath '%s': %s", devpath, info)
+        return False
+
     try:
         statret = os.stat(devpath)
     except OSError as exc:
Download as text