diff options
author | Ryan Steinmetz <zi@FreeBSD.org> | 2018-08-03 17:36:44 +0000 |
---|---|---|
committer | Ryan Steinmetz <zi@FreeBSD.org> | 2018-08-03 17:36:44 +0000 |
commit | 0d3535938974bb4422f0fa27d42280338fc7972b (patch) | |
tree | 3c50fb9120a23fa0fc94720302b5d9bbca1af11b /net/cloud-init | |
parent | c3e9777c4c41de1f6b2f3837db384b72eec61556 (diff) | |
download | ports-0d3535938974bb4422f0fa27d42280338fc7972b.tar.gz ports-0d3535938974bb4422f0fa27d42280338fc7972b.zip |
Notes
Diffstat (limited to 'net/cloud-init')
-rw-r--r-- | net/cloud-init/Makefile | 4 | ||||
-rw-r--r-- | net/cloud-init/files/patch-cloudinit_config_cc__resizefs.py | 20 | ||||
-rw-r--r-- | net/cloud-init/files/patch-cloudinit_util.py | 29 |
3 files changed, 51 insertions, 2 deletions
diff --git a/net/cloud-init/Makefile b/net/cloud-init/Makefile index 2f795ff2b940..29dcb94920b1 100644 --- a/net/cloud-init/Makefile +++ b/net/cloud-init/Makefile @@ -2,7 +2,7 @@ PORTNAME= cloud-init PORTVERSION= 18.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net python MASTER_SITES= http://launchpad.net/${PORTNAME}/trunk/${PORTVERSION}/+download/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -46,6 +46,6 @@ post-patch: @${RM} ${WRKSRC}/sysvinit/freebsd/*.orig post-build: - @cd ${WRKSRC} && ${MV} sysvinit/freebsd/cloudconfig config/cloud.cfg + (cd ${WRKSRC} && ${MV} sysvinit/freebsd/cloudconfig config/cloud.cfg) .include <bsd.port.mk> diff --git a/net/cloud-init/files/patch-cloudinit_config_cc__resizefs.py b/net/cloud-init/files/patch-cloudinit_config_cc__resizefs.py new file mode 100644 index 000000000000..4358ea926aa4 --- /dev/null +++ b/net/cloud-init/files/patch-cloudinit_config_cc__resizefs.py @@ -0,0 +1,20 @@ +--- cloudinit/config/cc_resizefs.py.orig 2018-08-03 17:33:27 UTC ++++ cloudinit/config/cc_resizefs.py +@@ -81,7 +81,7 @@ def _resize_xfs(mount_point, devpth): + + + def _resize_ufs(mount_point, devpth): +- return ('growfs', '-y', devpth) ++ return ('growfs', '-y', mount_point) + + + def _resize_zfs(mount_point, devpth): +@@ -110,7 +110,7 @@ def _can_skip_resize_ufs(mount_point, de + for line in dumpfs_res.splitlines(): + if not line.startswith('#'): + newfs_cmd = shlex.split(line) +- opt_value = 'O:Ua:s:b:d:e:f:g:h:i:jk:m:o:' ++ opt_value = 'L:O:Ua:s:b:d:e:f:g:h:i:jk:m:o:' + optlist, _args = getopt.getopt(newfs_cmd[1:], opt_value) + for o, a in optlist: + if o == "-s": diff --git a/net/cloud-init/files/patch-cloudinit_util.py b/net/cloud-init/files/patch-cloudinit_util.py new file mode 100644 index 000000000000..802c35b4d302 --- /dev/null +++ b/net/cloud-init/files/patch-cloudinit_util.py @@ -0,0 +1,29 @@ +--- cloudinit/util.py.orig 2018-08-03 17:34:37 UTC ++++ cloudinit/util.py +@@ -2291,7 +2291,7 @@ def parse_mtab(path): + + + def find_freebsd_part(label_part): +- if label_part.startswith("/dev/label/"): ++ if label_part.startswith("/dev/gpt/"): + target_label = label_part[5:] + (label_part, _err) = subp(['glabel', 'status', '-s']) + for labels in label_part.split("\n"): +@@ -2300,7 +2300,7 @@ def find_freebsd_part(label_part): + label_part = items[2] + break + label_part = str(label_part) +- return label_part ++ return "/dev/" + label_part + + + def get_path_dev_freebsd(path, mnt_list): +@@ -2324,7 +2324,7 @@ def get_mount_info_freebsd(path): + result = path_found + ret = result.split() + label_part = find_freebsd_part(ret[0]) +- return "/dev/" + label_part, ret[2], ret[1] ++ return label_part, ret[2], ret[1] + + + def get_device_info_from_zpool(zpool): |