summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_growpart.py
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri@lebouder.net>2019-05-28 15:39:48 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-05-28 15:39:48 +0000
commit6197c347c3960254dbcdb28eb73989d062ad9689 (patch)
tree047c3e31145795baddafa19ac36ec503add14523 /cloudinit/config/cc_growpart.py
parent0f8695323262e41c699588c7cd140f6b58c62017 (diff)
downloadvyos-cloud-init-6197c347c3960254dbcdb28eb73989d062ad9689.tar.gz
vyos-cloud-init-6197c347c3960254dbcdb28eb73989d062ad9689.zip
freebsd: ability to grow root file system
- UFS file system support - GPT partition table support - add support for newfs's -L parameter (label) - move freebsd specific test from Azure to freebsd
Diffstat (limited to 'cloudinit/config/cc_growpart.py')
-rw-r--r--cloudinit/config/cc_growpart.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/config/cc_growpart.py b/cloudinit/config/cc_growpart.py
index bafca9d8..564f376f 100644
--- a/cloudinit/config/cc_growpart.py
+++ b/cloudinit/config/cc_growpart.py
@@ -215,7 +215,8 @@ def device_part_info(devpath):
# FreeBSD doesn't know of sysfs so just get everything we need from
# the device, like /dev/vtbd0p2.
if util.is_FreeBSD():
- m = re.search('^(/dev/.+)p([0-9])$', devpath)
+ freebsd_part = "/dev/" + util.find_freebsd_part(devpath)
+ m = re.search('^(/dev/.+)p([0-9])$', freebsd_part)
return (m.group(1), m.group(2))
if not os.path.exists(syspath):