Browse Source

Re-add sysusers

1.7.1.6
Nathan Owens 8 months ago
parent
commit
3b46bc07b8
  1. 6
      configure
  2. 3
      module/boot@/configure/configure
  3. 1
      module/boot@/service/all-Local
  4. 13
      module/boot@/service/local/local-sysusers

6
configure vendored

@ -38,6 +38,7 @@ Fine tunning of boot configuration:
--FONT_UNIMAP=VALUE set the console unimap []
--UDEV=BOOLEAN use udev [!yes]
--SYSCTL=BOOLEAN configure kernel runtime with sysctl [!yes]
--SYSUSER=BOOLEAN Run sysusers on boot
--FORCECHCK=BOOLEAN force a check of the filesystem [!no]
--LOCAL=BOOLEAN use rc.local scripts [!no]
--CONTAINER=BOOLEAN boot inside a container [!no]
@ -154,6 +155,7 @@ FONT_MAP=
FONT_UNIMAP=
UDEV='!yes'
SYSCTL='!yes'
SYSUSER='!yes'
FORCECHCK='!no'
LOCAL='!no'
CONTAINER='!no'
@ -212,6 +214,7 @@ for arg ; do
--FONT_MAP=*) FONT_MAP=${arg#*=} ;;
--FONT_UNIMAP=*) FONT_UNIMAP=${arg#*=} ;;
--SYSCTL=*) SYSCTL=${arg#*=} ;;
--SYSUSER=*) SYSUSERS=${arg#*=} ;;
--FORCECHCK=*) FORCECHCK=${arg#*=} ;;
--LOCAL=*) LOCAL=${arg#*=} ;;
--CONTAINER=*) CONTAINER=${arg#*=} ;;
@ -296,7 +299,7 @@ for i in HOSTNAME HARDWARECLOCK TZ SETUPCONSOLE TTY LOCALE \
KEYMAP FONT FONT_MAP FONT_UNIMAP UDEV SYSCTL FORCECHCK LOCAL CONTAINER \
TMPFILE MODULE_KERNEL MODULE_SYSTEM RANDOMSEED \
FSTAB SWAP LVM DMRAID BTRFS ZFS ZFS_IMPORT \
CRYPTTAB FIREWALL \
CRYPTTAB FIREWALL SYSUSERS \
CGROUPS MNT_PROC MNT_SYS MNT_DEV MNT_RUN MNT_TMP \
MNT_PTS MNT_SHM MNT_NETFS POPULATE_SYS POPULATE_DEV POPULATE_RUN POPULATE_TMP ; do
eval tmp=\${$i}
@ -357,6 +360,7 @@ $FONT_MAP
$FONT_UNIMAP
$UDEV
$SYSCTL
$SYSUSERS
$FORCECHCK
$LOCAL
$CONTAINER

3
module/boot@/configure/configure vendored

@ -10,7 +10,7 @@ export COLOR_ENABLED="${MOD_COLOR}"
service_dir="${MOD_MODULE_DIR}/service"
SV_REAL=
sv_boolean_list="CRYPTTAB SETUPCONSOLE FSTAB SWAP LVM LOCALE \
sv_boolean_list="CRYPTTAB SETUPCONSOLE FSTAB SWAP LVM LOCALE SYSUSER \
DMRAID BTRFS ZFS UDEV SYSCTL LOCAL CONTAINER TMPFILE MODULE_KERNEL \
MODULE_SYSTEM RANDOMSEED MNT_PROC MNT_SYS MNT_DEV MNT_RUN MNT_TMP CGROUPS \
MNT_PTS MNT_SHM MNT_NETFS POPULATE_SYS POPULATE_DEV POPULATE_RUN POPULATE_TMP"
@ -44,6 +44,7 @@ retrieve_sv_name(){
ZFS) SV_REAL="devices-zfs" ;;
UDEV) SV_REAL="udevd" ;;
SYSCTL) SV_REAL="system-sysctl" ;;
SYSUSER) SV_REAL="local-sysusers" ;;
FORCECHCK) SV_REAL="system-fsck" ;;
LOCAL) SV_REAL="local-rc" ;;
TMPFILE) SV_REAL="local-tmpfiles" ;;

1
module/boot@/service/all-Local

@ -21,4 +21,5 @@ local-tmpfiles
local-rc
local-dmesg
local-locale
local-sysusers
)

13
module/boot@/service/local/local-sysusers

@ -0,0 +1,13 @@
[main]
@type = oneshot
@version = 0.0.1
@description = "Run sysusers"
@user = ( root )
@depends = ( mount-rw )
[start]
@execute =
(
if { 66-yeller -cdp local-sysusers -1 /dev/console starts }
sysusers
)
Loading…
Cancel
Save