From 94b1edfbd24fe8ff0db45f258aec40c87b337ede Mon Sep 17 00:00:00 2001 From: Evgenii Shatokhin Date: Tue, 7 May 2019 15:58:24 +0300 Subject: [PATCH] kpatch.service: make sure it starts before networking services A binary patch may be used to fix network-related issues, so it is better to apply it before networking services have started. We encountered a situation in Virtuozzo 7, when the older kernels conflicted with a new NetworkManager, ip utility and other system components (https://www.mail-archive.com/devel@openvz.org/msg35123.html). Binary patches were provided for these kernels to fix the issue but were loaded after networking services in some cases. As a result, NetworkManager and some other system components failed to work properly. Let us make sure the patches are applied earlier during boot. Signed-off-by: Evgenii Shatokhin --- contrib/kpatch.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/kpatch.service b/contrib/kpatch.service index cf13f40..6240256 100644 --- a/contrib/kpatch.service +++ b/contrib/kpatch.service @@ -1,6 +1,8 @@ [Unit] Description="Apply kpatch kernel patches" ConditionKernelCommandLine=!kpatch.enable=0 +Before=network-pre.target +Wants=network-pre.target [Service] Type=oneshot