data: add and install sysusers.d gamemode.conf

Add a trivial gamemode.conf file, which creates the gamemode group.

v2: git add gamemode.conf (d'oh)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Emil Velikov 2021-09-20 12:39:19 +01:00 committed by afayaz-feral
parent ab06ba419e
commit 898feb9c52
3 changed files with 8 additions and 0 deletions

1
data/gamemode.conf Normal file
View File

@ -0,0 +1 @@
g gamemode - -

View File

@ -20,6 +20,11 @@ if sd_bus_provider == 'systemd'
configuration: data_conf,
install_dir: path_systemd_unit_dir,
)
# Install the sysusers.d file
install_data(
files('gamemode.conf'),
install_dir: path_systemd_sysusers_dir,
)
endif
# Install the D-BUS service file

View File

@ -111,6 +111,8 @@ if sd_bus_provider == 'systemd'
pkgconfig_systemd = dependency('systemd')
path_systemd_unit_dir = pkgconfig_systemd.get_pkgconfig_variable('systemduserunitdir')
endif
pkgconfig_systemd = dependency('systemd')
path_systemd_sysusers_dir = pkgconfig_systemd.get_pkgconfig_variable('sysusersdir')
endif
with_limits_conf = get_option('with-pam-group')