summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/CloudConfig/cc_resizefs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_resizefs.py b/cloudinit/CloudConfig/cc_resizefs.py
index 761bae86..cb974927 100644
--- a/cloudinit/CloudConfig/cc_resizefs.py
+++ b/cloudinit/CloudConfig/cc_resizefs.py
@@ -31,7 +31,7 @@ def handle(name,cfg,cloud,log,args):
log.debug("resizing root filesystem on first boot")
- cmd = ['blkid', '-sTYPE', '-ovalue', '/dev/root']
+ cmd = ['blkid', '-c', '/dev/null', '-sTYPE', '-ovalue', '/dev/root']
try:
(fstype,err) = util.subp(cmd)
except Exception as e:
@@ -49,6 +49,6 @@ def handle(name,cfg,cloud,log,args):
try:
(out,err) = util.subp(resize_cmd)
except Exception as e:
- log.warn("Failed to resize filesystem (%s,%s)" % cmd)
+ log.warn("Failed to resize filesystem (%s)" % resize_cmd)
raise