diff options
author | Gonéri Le Bouder <goneri@lebouder.net> | 2019-05-28 15:39:48 +0000 |
---|---|---|
committer | Server Team CI Bot <josh.powers+server-team-bot@canonical.com> | 2019-05-28 15:39:48 +0000 |
commit | 6197c347c3960254dbcdb28eb73989d062ad9689 (patch) | |
tree | 047c3e31145795baddafa19ac36ec503add14523 /cloudinit/config/cc_growpart.py | |
parent | 0f8695323262e41c699588c7cd140f6b58c62017 (diff) | |
download | vyos-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.py | 3 |
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): |