configure: build sulogin, watchdogd, and libsystemd by default

v5.0 ships keventd and the D-Bus support enabled out of the box, but the
remaining bundled pieces stayed opt-in, and the help text for two of them
already claimed otherwise.

Default all three to yes; --without-sulogin, --without-watchdog, and
--without-libsystemd opt out.  The distcheck and CI configure lines drop
the flags they no longer need, so CI exercises the defaults.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2026-08-29 13:54:19 +02:00
1 parent 847f4db974
commit cdf2337346
8 files changed
+35 -23

No files matched your search

+2 -3
View File
@@ -116,8 +116,7 @@ jobs:
- name: Regular Finit - name: Regular Finit
run: | run: |
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var \ ./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var \
--enable-x11-common-plugin --enable-testserv-plugin --with-watchdog \ --enable-x11-common-plugin --enable-testserv-plugin \
--with-keventd \
CFLAGS="-fsanitize=address -ggdb" CFLAGS="-fsanitize=address -ggdb"
make -j9 clean make -j9 clean
make -j9 V=1 make -j9 V=1
@@ -173,7 +172,7 @@ jobs:
run: | run: |
./autogen.sh ./autogen.sh
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var \ ./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc --localstatedir=/var \
--disable-dbus --enable-testserv-plugin --with-keventd --disable-dbus --enable-testserv-plugin
make -j9 V=1 make -j9 V=1
- name: Verify no bus artifacts - name: Verify no bus artifacts
run: | run: |
+1 -2
View File
@@ -66,8 +66,7 @@ jobs:
- name: Configure - name: Configure
run: | run: |
./autogen.sh ./autogen.sh
./configure --prefix= --enable-x11-common-plugin --with-watchdog \ ./configure --prefix= --enable-x11-common-plugin
--with-keventd --with-libsystemd
- name: Build - name: Build
run: | run: |
export PATH=`pwd`/coverity/bin:$PATH export PATH=`pwd`/coverity/bin:$PATH
+1 -2
View File
@@ -46,8 +46,7 @@ jobs:
./autogen.sh ./autogen.sh
./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc \ ./configure --prefix=/usr --exec-prefix= --sysconfdir=/etc \
--localstatedir=/var --enable-x11-common-plugin \ --localstatedir=/var --enable-x11-common-plugin \
--enable-testserv-plugin --with-watchdog \ --enable-testserv-plugin
--with-keventd --with-libsystemd
- name: Enable unprivileged userns (unshare) - name: Enable unprivileged userns (unshare)
run: | run: |
sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0 sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
+1 -2
View File
@@ -65,5 +65,4 @@ release: distcheck
DISTCHECK_CONFIGURE_FLAGS = --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ DISTCHECK_CONFIGURE_FLAGS = --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--enable-testserv-plugin --enable-x11-common-plugin \ --enable-testserv-plugin --enable-x11-common-plugin \
--with-watchdog --with-keventd --with-fstab=/etc/fstab \ --with-fstab=/etc/fstab --with-bash-completion-dir=no
--with-libsystemd --with-bash-completion-dir=no
+5 -5
View File
@@ -184,15 +184,15 @@ AC_ARG_WITH(udev-rules,
AS_HELP_STRING([--without-udev-rules], [Skip install of curated udev rules under /lib/udev/rules.d, default: yes when keventd enabled]),, [with_udev_rules=yes]) AS_HELP_STRING([--without-udev-rules], [Skip install of curated udev rules under /lib/udev/rules.d, default: yes when keventd enabled]),, [with_udev_rules=yes])
AC_ARG_WITH(sulogin, AC_ARG_WITH(sulogin,
AS_HELP_STRING([--with-sulogin@<:@=USER@:>@], [Enable built-in sulogin, optional USER to request password for (default root), default: no.]),[sulogin=$withval],[with_sulogin=no]) AS_HELP_STRING([--with-sulogin@<:@=USER@:>@], [Built-in sulogin, optional USER to request password for, default: yes (root)]),[sulogin=$withval],[with_sulogin=yes sulogin=yes])
AC_ARG_WITH(watchdog, AC_ARG_WITH(watchdog,
AS_HELP_STRING([--with-watchdog@<:@=DEV@:>@], [Enable built-in watchdog, default: /dev/watchdog]), AS_HELP_STRING([--with-watchdog@<:@=DEV@:>@], [Built-in watchdog, default: yes (/dev/watchdog)]),
[watchdog=$withval], [with_watchdog=no watchdog=]) [watchdog=$withval], [with_watchdog=yes watchdog=yes])
AC_ARG_WITH(libsystemd, AC_ARG_WITH(libsystemd,
AS_HELP_STRING([--with-libsystemd], [Build replacement libsystemd library, default: yes]), AS_HELP_STRING([--without-libsystemd], [Skip replacement libsystemd library, default: yes]),
[with_libsystemd=$withval], [with_libsystemd=no]) [with_libsystemd=$withval], [with_libsystemd=yes])
AC_ARG_WITH(hook-scripts-path, AC_ARG_WITH(hook-scripts-path,
AS_HELP_STRING([--with-hook-scripts-path=DIR], [Base directory for hook scripts, default $libexecdir/finit/hook]), AS_HELP_STRING([--with-hook-scripts-path=DIR], [Base directory for hook scripts, default $libexecdir/finit/hook]),
+6
View File
@@ -69,6 +69,12 @@ All relevant changes are documented in this file.
`tmpfiles.d/dbus.conf`, so both can be overridden from `/etc` like any other `tmpfiles.d/dbus.conf`, so both can be overridden from `/etc` like any other
system file. Those directories are no longer chowned to `messagebus`, system file. Those directories are no longer chowned to `messagebus`,
matching how Finit ships directories for other daemons matching how Finit ships directories for other daemons
- The bundled `sulogin` and `watchdogd`, and the replacement `libsystemd`,
are now built and installed by default, like keventd and the D-Bus
support. `--without-sulogin`, `--without-watchdog`, and
`--without-libsystemd` opt out. Note, Finit starts `watchdogd` by
itself when the WDT device node exists, and `libsystemd.so` is
installed to `$libdir`, where a system with systemd already has one
- The `tty` block takes `passenv`, which the line-based format has had since - The `tty` block takes `passenv`, which the line-based format has had since
v4.4 (issue #286) and the block format was missing v4.4 (issue #286) and the block format was missing
- New `provides` setting for run/task/service/sysv blocks, naming conditions - New `provides` setting for run/task/service/sysv blocks, naming conditions
+15 -5
View File
@@ -79,9 +79,20 @@ Below are a few of the main switches to configure:
run mdev, mdevd, or udevd instead. Enabled by default, and the only run mdev, mdevd, or udevd instead. Enabled by default, and the only
thing that pulls in libblkid. See [Bundled Device Manager](keventd.md). thing that pulls in libblkid. See [Bundled Device Manager](keventd.md).
* `--with-sulogin`: Enable bundled `sulogin` program. Default is to use the * `--without-sulogin`: Drop the bundled `sulogin`, enabled by default,
system `sulogin(8)`. The sulogin shipped with Finit *allows password-less* and use the system `sulogin(8)` instead. The one shipped with Finit
login if the `root` user is disabled or has no password at all. *allows password-less* login if the `root` user is disabled or has no
password at all. `--with-sulogin=USER` prompts for another user's
password than `root`'s.
* `--without-watchdog`: Drop the bundled `watchdogd`, enabled by default
on `/dev/watchdog`, `--with-watchdog=DEV` selects another device.
Finit starts it when the device node exists, see [Watchdog](watchdog.md).
* `--without-libsystemd`: Drop the replacement `libsystemd`, built and
installed by default, which lets programs that use `sd_notify()` talk
to Finit without systemd. Note, it installs `libsystemd.so` in
`$libdir`, where a system with systemd already has one.
For more configure flags, see <kbd>./configure --help</kbd> For more configure flags, see <kbd>./configure --help</kbd>
@@ -108,8 +119,7 @@ Then configure, build and install:
```shell ```shell
$ ./configure --prefix=/usr --exec-prefix= \ $ ./configure --prefix=/usr --exec-prefix= \
--sysconfdir=/etc --localstatedir=/var \ --sysconfdir=/etc --localstatedir=/var
--with-keventd --with-watchdog
$ make $ make
. .
. .
+4 -4
View File
@@ -1,10 +1,10 @@
Bundled Watchdog Daemon Bundled Watchdog Daemon
======================= =======================
When built `--with-watchdog` a separate service is built and installed A separate service is built and installed in `/libexec/finit/watchdogd`,
in `/libexec/finit/watchdogd`. If this exists at runtime, and the WDT unless disabled with `--without-watchdog`. If this exists at runtime,
device node exists, Finit will start it and treat it as the elected and the WDT device node exists, Finit will start it and treat it as the
watchdog service to delegate its reboot to. This delegation is to elected watchdog service to delegate its reboot to. This delegation is to
ensure that the system is rebooted by a hardware watchdog timer -- on ensure that the system is rebooted by a hardware watchdog timer -- on
many embedded systems this is crucial to ensure all circuits on the many embedded systems this is crucial to ensure all circuits on the
board are properly reset for the next boot, in effect ensuring the board are properly reset for the next boot, in effect ensuring the