From 5f101b40d71ba36cb7edb720f71903966b894aac Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Mar 26 2018 11:42:27 +0000 Subject: Add inhibitor when the akmods service is running --- diff --git a/akmods@.service b/akmods@.service index 946edb0..0c2de2e 100644 --- a/akmods@.service +++ b/akmods@.service @@ -4,7 +4,7 @@ Description=Builds and install new kmods from akmod for a given kernel [Service] Type=oneshot RemainAfterExit=yes -ExecStart=/usr/sbin/akmods --from-kernel-posttrans --kernels %i +ExecStart=/usr/bin/systemd-inhibit --mode=block --what=idle:sleep:shutdown --who="akmods" --why="Akmods Transaction running" /usr/sbin/akmods --from-kernel-posttrans --kernels %i [Install] WantedBy=multi-user.target