Skip to content

Commit 3e25dd6

Browse files
committed
sh/init.sh.Linux: make uucp group configurable
Closes: #730
1 parent 215ffbc commit 3e25dd6

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

meson_options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ option('sysvinit', type : 'boolean', value : false,
2424
description : 'enable SysVinit compatibility (linux only)')
2525
option('zsh-completions', type : 'boolean',
2626
description : 'install zsh completions')
27+
option('uucp_group', type : 'string', value : 'uucp',
28+
description : 'group to use for /run/lock')
2729
option('agetty', type: 'array',
2830
value: ['tty1', 'tty2', 'tty3', 'tty4', 'tty5', 'tty6'],
2931
description : 'agetty symlinks to install when sysvinit is also specified')

sh/init.sh.Linux.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ elif ! mountinfo -q /run; then
8383
fi
8484

8585
checkpath -d "$RC_SVCDIR"
86-
checkpath -d -m 0775 -o root:uucp /run/lock
86+
checkpath -d -m 0775 -o root:@UUCP_GROUP@ /run/lock
8787

8888
# Try to mount xenfs as early as possible, otherwise rc_sys() will always
8989
# return RC_SYS_XENU and will think that we are in a domU while it's not.

sh/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ sh_conf_data.set('PKG_PREFIX', pkg_prefix)
66
sh_conf_data.set('SBINDIR', sbindir)
77
sh_conf_data.set('SHELL', get_option('shell'))
88
sh_conf_data.set('SYSCONFDIR', get_option('sysconfdir'))
9+
sh_conf_data.set('UUCP_GROUP', get_option('uucp_group'))
910

1011
sh = [
1112
'rc-functions.sh',

0 commit comments

Comments
 (0)