commit: 3cb2817c7134c02d1401f282e9992823c951efde Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> AuthorDate: Fri Aug 19 08:43:06 2022 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Fri Aug 19 08:44:59 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cb2817c
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 <AT> gentoo.org> app-containers/lxd/lxd-5.0.1.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 }