summaryrefslogtreecommitdiff
path: root/cloudinit/distros/freebsd.py
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri@lebouder.net>2020-05-04 16:58:35 -0400
committerGitHub <noreply@github.com>2020-05-04 14:58:35 -0600
commitf9b393bb4f15258de230884949e543e0f62f9abb (patch)
tree1993e292c7ebe7f659fe53b6798a7aee603766f5 /cloudinit/distros/freebsd.py
parent59dd290ee7986f76247bfd26d18cbcc586777812 (diff)
downloadvyos-cloud-init-f9b393bb4f15258de230884949e543e0f62f9abb.tar.gz
vyos-cloud-init-f9b393bb4f15258de230884949e543e0f62f9abb.zip
bsd: upgrade support (#305)
Implement the upgrade support: - FreeBSD: using `pkg upgrade` - NetBSD: with `pkgin`
Diffstat (limited to 'cloudinit/distros/freebsd.py')
-rw-r--r--cloudinit/distros/freebsd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/distros/freebsd.py b/cloudinit/distros/freebsd.py
index 71a6195b..b3a4ad67 100644
--- a/cloudinit/distros/freebsd.py
+++ b/cloudinit/distros/freebsd.py
@@ -25,6 +25,7 @@ class Distro(cloudinit.distros.bsd.BSD):
pkg_cmd_install_prefix = ["pkg", "install"]
pkg_cmd_remove_prefix = ["pkg", "remove"]
pkg_cmd_update_prefix = ["pkg", "update"]
+ pkg_cmd_upgrade_prefix = ["pkg", "upgrade"]
def _select_hostname(self, hostname, fqdn):
# Should be FQDN if available. See rc.conf(5) in FreeBSD