wireguard-tools: change path for wg-quick systemd unit
PATCH 1/1 wireguard-tools: change path for wg-quick systemd unit
Fix error when enabling the wg-quick unit:
% systemctl enable wg-quick@wg0
Failed to enable unit: Unit file [email protected] does not exist
The [email protected] template unit needs to be in /lib/systemd/system
--- .../recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb +1 -1
@@ -9,7 +9,7 @@ DEPENDS += "wireguard-module libmnl" do_install () { oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ - SYSTEMDUNITDIR="${systemd_unitdir}" \ + SYSTEMDUNITDIR="${systemd_unitdir}/system" \ WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \ WITH_BASHCOMPLETION=yes \ WITH_WGQUICK=yes \
Signature · 1 line
2.25.1
Hello Adrian
this is already fixed in master via commit https://git.openembedded.org/meta-openembedded/commit/?id=84681a31cfd3f7aa8cc89181c2c87ffffcbc261b
if you are proposing it for backport then add branch name in subject and CC armin
Quoted 30 lines · Adrian Thomasset
Fix error when enabling the wg-quick unit:
% systemctl enable wg-quick@wg0
Failed to enable unit: Unit file [email protected] does not existThe [email protected] template unit needs to be in
/lib/systemd/systemSigned-off-by Adrian Thomasset <[email protected]>--- .../recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb +1
-1@@ -9,7 +9,7 @@ DEPENDS += "wireguard-module libmnl" do_install () { oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ - SYSTEMDUNITDIR="${systemd_unitdir}" \ + SYSTEMDUNITDIR="${systemd_unitdir}/system" \ WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \ WITH_BASHCOMPLETION=yes \ WITH_WGQUICK=yes \
Hello Kehm,
Thanks for pointing this out, I missed the fix.
I will ask to get this backported to dunfell now.
Adrian
Quoted 46 lines · Khem Raj
Hello Adrian
this is already fixed in master via commit
https://git.openembedded.org/meta-openembedded/commit/?id=84681a31cfd3f7aa8cc89181c2c87ffffcbc261b
if you are proposing it for backport then add branch name in subject and CC arminQuoted 5 lines · Adrian Thomasset
Fix error when enabling the wg-quick unit:
% systemctl enable wg-quick@wg0
Failed to enable unit: Unit file [email protected] does not existReview
Quoted 8 lines
The [email protected] template unit needs to be in
/lib/systemd/systemSigned-off-by Adrian Thomasset <[email protected]>--- .../recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0wireguard-tools_1.0.20200319.bb b/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb
Quoted 2 lines
index
f698b9a9a..e769f44b7100644
--- a/meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb
Quoted 1 line
+++ b/meta-networking/recipes-kernel/wireguard/
wireguard-tools_1.0.20200319.bb
meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb DEPENDS += "wireguard-module libmnl" · line 11
Quoted 4 lines
meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb +0
-0@@ -9,7 +9,7 @@ DEPENDS += "wireguard-module libmnl" do_install () { oe_runmake DESTDIR="${D}" PREFIX="${prefix}"SYSCONFDIR="${sysconfdir}" \
meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb DEPENDS += "wireguard-module libmnl"
Quoted 3 lines
meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb +1
-1- SYSTEMDUNITDIR="${systemd_unitdir}" \ + SYSTEMDUNITDIR="${systemd_unitdir}/system" \ WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES','systemd', 'yes', '', d)} \
Quoted 7 lines
meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb +0
-0WITH_BASHCOMPLETION=yes \ WITH_WGQUICK=yes \
Signature · 3 lines
Adrian Thomasset t: 0117 923 1990 m: 0776 629 4010
Hi,
Adrian Thomasset <[email protected]> escreveu no dia sexta, 14/05/2021 à(s) 15:08:
Quoted 18 lines
Fix error when enabling the wg-quick unit:
% systemctl enable wg-quick@wg0
Failed to enable unit: Unit file [email protected] does not existThe [email protected] template unit needs to be in
/lib/systemd/systemSigned-off-by Adrian Thomasset <[email protected]>--- .../recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb +0
-0
meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb DEPENDS += "wireguard-module libmnl" · line 12
Quoted 5 lines
meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb +1
-1@@ -9,7 +9,7 @@ DEPENDS += "wireguard-module libmnl" do_install () { oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ - SYSTEMDUNITDIR="${systemd_unitdir}" \ + SYSTEMDUNITDIR="${systemd_unitdir}/system" \
There is variable on bitbake for this:
SYSTEMDUNITDIR="${systemd_system_unitdir}"
Quoted 9 lines
meta-networking/recipes-kernel/wireguard/wireguard-tools_1.0.20200319.bb +0
-1WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \ WITH_BASHCOMPLETION=yes \ WITH_WGQUICK=yes \ --2.25.1
Signature · 3 lines
Best regards, José Quaresma