diff options
author | Ikey Doherty <ikey@solus-project.com> | 2017-12-03 13:28:23 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-03 13:28:23 +0100 |
commit | 84786b8e322f916b78aeb81f409ea3500dd49143 (patch) | |
tree | 9afa54ee7a9f439a490492ef476b859a7e9d11c5 /meson.build | |
parent | mount-util: do not use the official MAX_HANDLE_SZ (#7523) (diff) | |
download | systemd-84786b8e322f916b78aeb81f409ea3500dd49143.tar.xz systemd-84786b8e322f916b78aeb81f409ea3500dd49143.zip |
sysusers: Provide meson argument to set gid for 'users' group (#7533)
To allow better integration with distributions requiring an explicitly
set gid for the `users` group, provide the new `-Dusers-gid` option to
set to a new numeric value.
In the absence of a specified gid, we'll fallback to the default existing
behaviour of `-` as the gid value, to automatically assign the next available
gid on the system.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 6eff25f45c..e0e8178910 100644 --- a/meson.build +++ b/meson.build @@ -633,6 +633,14 @@ tty_gid = get_option('tty-gid') conf.set('TTY_GID', tty_gid) substs.set('TTY_GID', tty_gid) +# Ensure provided GID argument is numeric, otherwise fallback to default assignment +if get_option('users-gid') != '' + users_gid = get_option('users-gid').to_int() +else + users_gid = '-' +endif +substs.set('USERS_GID', users_gid) + if get_option('adm-group') m4_defines += ['-DENABLE_ADM_GROUP'] endif @@ -2495,6 +2503,7 @@ status = [ 'debug shell: @0@ @ @1@'.format(get_option('debug-shell'), get_option('debug-tty')), 'TTY GID: @0@'.format(tty_gid), + 'users GID: @0@'.format(users_gid), 'maximum system UID: @0@'.format(system_uid_max), 'maximum system GID: @0@'.format(system_gid_max), '/dev/kvm access mode: @0@'.format(get_option('dev-kvm-mode')), |