Use ConditionVirtualization to skip the service in containers

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-06-24 23:16:38 +02:00
parent e56bc421e6
commit d6d037f553
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
[Unit]
Description=Console Mouse manager
ConditionVirtualization=!container
# This could probably benefit from socket activation, but honestly I think it
# is time for gpm to go away, and hence I am not planning to spend the time

View File

@ -1,7 +1,7 @@
Summary: A mouse server for the Linux console
Name: gpm
Version: 1.20.7
Release: 22%{?dist}
Release: 23%{?dist}
License: GPLv2 and GPLv2+ with exceptions and GPLv3+ and Verbatim and Copyright only
URL: http://www.nico.schottelius.org/software/gpm/
#URL2 : http://freecode.com/projects/gpm
@ -150,6 +150,9 @@ rm -rf %{buildroot}%{_mandir}
%{_libdir}/libgpm.a
%changelog
* Wed Jun 24 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.20.7-23
- Do not run gpm in the container (#1524034)
* Thu Jun 18 2020 Sérgio Basto <sergio@serjux.com> - 1.20.7-22
- Two patches have been upstreamed