diff options
author | Joonas Niilola <juippis@gentoo.org> | 2022-08-19 11:43:06 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-08-19 11:44:59 +0300 |
commit | 3cb2817c7134c02d1401f282e9992823c951efde (patch) | |
tree | 5d5cce5970a286893b84f94b3648f90fd8edd77f /app-containers | |
parent | dev-python/python-daemon: Stabilize 2.3.1 ALLARCHES, #865759 (diff) | |
download | gentoo-3cb2817c7134c02d1401f282e9992823c951efde.tar.gz gentoo-3cb2817c7134c02d1401f282e9992823c951efde.tar.bz2 gentoo-3cb2817c7134c02d1401f282e9992823c951efde.zip |
app-containers/lxd: add a vm-related update note to 5.0.1
- virtual machines may require a manual restart after an update to 5.0.1 due
to incompatibilities in the lxd-agent product.
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-containers')
-rw-r--r-- | app-containers/lxd/lxd-5.0.1.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app-containers/lxd/lxd-5.0.1.ebuild b/app-containers/lxd/lxd-5.0.1.ebuild index b761f3d0f2b8..3d6d3f2abe58 100644 --- a/app-containers/lxd/lxd-5.0.1.ebuild +++ b/app-containers/lxd/lxd-5.0.1.ebuild @@ -125,7 +125,7 @@ src_compile() { go install -v -x "${S}/${k}" || die "failed compiling ${k}" done - go install -v -x -tags libsqlite3 ${S}/lxd || die "Failed to build the daemon" + go install -v -x -tags libsqlite3 "${S}"/lxd || die "Failed to build the daemon" # Needs to be built statically CGO_ENABLED=0 go install -v -tags netgo "${S}"/lxd-migrate @@ -177,4 +177,14 @@ pkg_postinst() { optfeature "zfs storage backend" sys-fs/zfs elog elog "Be sure to add your local user to the lxd group." + + if [[ -n ${REPLACING_VERSIONS} ]] && has_version app-emulation/qemu[spice,usbredir,virtfs]; then + ewarn "" + ewarn "You're updating from <5.0.1. Due to incompatible API updates in the lxd-agent" + ewarn "product, you'll have to restart any running virtual machines before they work" + ewarn "properly." + ewarn "" + ewarn "Run: 'lxc restart your-vm' after the update for your vm's managed by lxd." + ewarn "" + fi } |