sh/init.sh.Linux: make uucp group configurable

Closes: https://github.com/OpenRC/openrc/pull/730
This commit is contained in:
Anna (navi) Figueiredo Gomes 2025-09-07 04:57:39 +02:00 committed by navi
parent 215ffbc192
commit 3e25dd6659
3 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,8 @@ option('sysvinit', type : 'boolean', value : false,
description : 'enable SysVinit compatibility (linux only)')
option('zsh-completions', type : 'boolean',
description : 'install zsh completions')
option('uucp_group', type : 'string', value : 'uucp',
description : 'group to use for /run/lock')
option('agetty', type: 'array',
value: ['tty1', 'tty2', 'tty3', 'tty4', 'tty5', 'tty6'],
description : 'agetty symlinks to install when sysvinit is also specified')

View File

@ -83,7 +83,7 @@ elif ! mountinfo -q /run; then
fi
checkpath -d "$RC_SVCDIR"
checkpath -d -m 0775 -o root:uucp /run/lock
checkpath -d -m 0775 -o root:@UUCP_GROUP@ /run/lock
# Try to mount xenfs as early as possible, otherwise rc_sys() will always
# return RC_SYS_XENU and will think that we are in a domU while it's not.

View File

@ -6,6 +6,7 @@ sh_conf_data.set('PKG_PREFIX', pkg_prefix)
sh_conf_data.set('SBINDIR', sbindir)
sh_conf_data.set('SHELL', get_option('shell'))
sh_conf_data.set('SYSCONFDIR', get_option('sysconfdir'))
sh_conf_data.set('UUCP_GROUP', get_option('uucp_group'))
sh = [
'rc-functions.sh',