mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 13:42:09 +00:00
94b1edfbd2
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 <eshatokhin@virtuozzo.com>
14 lines
266 B
Desktop File
14 lines
266 B
Desktop File
[Unit]
|
|
Description="Apply kpatch kernel patches"
|
|
ConditionKernelCommandLine=!kpatch.enable=0
|
|
Before=network-pre.target
|
|
Wants=network-pre.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=PREFIX/sbin/kpatch load --all
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|