diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-02-04 16:49:37 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-02-04 16:49:37 -0500 |
commit | bafe47bc913330b16cb1296ffbfe97596b5c4cfc (patch) | |
tree | b8a82ec341644cdff2da7bc4ce43314236317a50 /cloudinit/CloudConfig/cc_resizefs.py | |
parent | 0fe565c715bac77b0dd1d1b4c9dd2cbe0c07c0c3 (diff) | |
download | vyos-cloud-init-bafe47bc913330b16cb1296ffbfe97596b5c4cfc.tar.gz vyos-cloud-init-bafe47bc913330b16cb1296ffbfe97596b5c4cfc.zip |
resizefs didn't work, as 'blkid' would return error status 2
passing '-c /dev/null' (no cache file) seems to work fine.
Diffstat (limited to 'cloudinit/CloudConfig/cc_resizefs.py')
-rw-r--r-- | cloudinit/CloudConfig/cc_resizefs.py | 4 |
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 |