1 |
commit: 3cb2817c7134c02d1401f282e9992823c951efde |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 19 08:43:06 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 19 08:44:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cb2817c |
7 |
|
8 |
app-containers/lxd: add a vm-related update note to 5.0.1 |
9 |
|
10 |
- virtual machines may require a manual restart after an update to 5.0.1 due |
11 |
to incompatibilities in the lxd-agent product. |
12 |
|
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
app-containers/lxd/lxd-5.0.1.ebuild | 12 +++++++++++- |
16 |
1 file changed, 11 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/app-containers/lxd/lxd-5.0.1.ebuild b/app-containers/lxd/lxd-5.0.1.ebuild |
19 |
index b761f3d0f2b8..3d6d3f2abe58 100644 |
20 |
--- a/app-containers/lxd/lxd-5.0.1.ebuild |
21 |
+++ b/app-containers/lxd/lxd-5.0.1.ebuild |
22 |
@@ -125,7 +125,7 @@ src_compile() { |
23 |
go install -v -x "${S}/${k}" || die "failed compiling ${k}" |
24 |
done |
25 |
|
26 |
- go install -v -x -tags libsqlite3 ${S}/lxd || die "Failed to build the daemon" |
27 |
+ go install -v -x -tags libsqlite3 "${S}"/lxd || die "Failed to build the daemon" |
28 |
|
29 |
# Needs to be built statically |
30 |
CGO_ENABLED=0 go install -v -tags netgo "${S}"/lxd-migrate |
31 |
@@ -177,4 +177,14 @@ pkg_postinst() { |
32 |
optfeature "zfs storage backend" sys-fs/zfs |
33 |
elog |
34 |
elog "Be sure to add your local user to the lxd group." |
35 |
+ |
36 |
+ if [[ -n ${REPLACING_VERSIONS} ]] && has_version app-emulation/qemu[spice,usbredir,virtfs]; then |
37 |
+ ewarn "" |
38 |
+ ewarn "You're updating from <5.0.1. Due to incompatible API updates in the lxd-agent" |
39 |
+ ewarn "product, you'll have to restart any running virtual machines before they work" |
40 |
+ ewarn "properly." |
41 |
+ ewarn "" |
42 |
+ ewarn "Run: 'lxc restart your-vm' after the update for your vm's managed by lxd." |
43 |
+ ewarn "" |
44 |
+ fi |
45 |
} |