contrib/service: allow to turn the service off at boot time

It may be convenient to be able to turn off the automatic loading of
the patches that kpatch.service does. This helps, for example, if a
buggy patch is installed and crashes the system at boot.

This commit allows to specify kpatch.enable=0 in the kernel command
line. In this case, the binary patches will not be loaded automatically,
and the users should be able to remove or replace the offending patches
after the system boots.

Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
This commit is contained in:
Evgenii Shatokhin 2016-04-04 16:52:40 +03:00
parent b156a786a6
commit 20eddbac0c
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
[Unit]
Description="Apply kpatch kernel patches"
ConditionKernelCommandLine=!kpatch.enable=0
[Service]
Type=oneshot