The officially official Devuan Forum!

You are not logged in.

#1 2023-01-21 16:13:35

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

finit: new init system option for Devuan daedalus

Just upgraded a Debian bullseye container to bookworm and converted it to a booting system and I noticed this when selecting an init system:

$ apt-file search -x '^/sbin/init'
finit-sysv: /sbin/init
runit-init: /sbin/init
systemd-sysv: /sbin/init
sysvinit-core: /sbin/init
$

So Debian bookworm now has no fewer than four different options for PID1, or five if /sbin/openrc-init is counted (which can be linked to /sbin/init and does work in that role). Impressive diversity.

I'm currently trying finit and the system boots up to a console just fine. Just have to get my wireless connection working then see if I can get it to a desktop...

finit package description wrote:

Fast init for Linux systems

Finit is a simple alternative to SysV init and systemd, reverse engineered from the EeePC fastinit ten years ago by Claudio Matsuoka - "gaps filled with frog DNA ..."

Finit supports runlevels, process monitoring, and starting services on demand using the built-in inetd, or by triggering a condition. E.g., "don't start this service until basic networking is available", or "wait until syslogd has started".

I especially like the frog DNA bit. Everybody likes frogs, right?


Brianna Ghey — Rest In Power

Offline

#2 2023-01-21 17:19:21

Tatwi
Member
From: Canada
Registered: 2018-10-24
Posts: 72  
Website

Re: finit: new init system option for Devuan daedalus

That's neat and the diversity is impressive.

I will keep using System V Init, because it's old, and I'm old, and we know each other so well; Why bother messing with something else when what I already have/know works fine and there are plenty of other things I'd rather do (and need to do) with my time.

Offline

#3 2023-01-22 02:43:45

MrReplikant
Member
Registered: 2022-12-03
Posts: 53  

Re: finit: new init system option for Devuan daedalus

I've tried using finit, be warned it isn't complete yet. the automation of the init scripts being properly configured hasn't been added in, and it conflicts with the "init" package


That's all, folks.

Offline

#4 2023-01-22 11:16:37

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: finit: new init system option for Devuan daedalus

MrReplikant wrote:

the automation of the init scripts being properly configured hasn't been added in

Yeah, I would actually consider that a feature for my use case :-)

Look:

empty@P14s:~ $ pgrep -a dbus
1|empty@P14s:~ $

^ This is not possible with the other init systems.

I just start anything I want using /etc/rc.local, for example:

wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
ip a add 192.168.1.55/24 dev wlan0
ip r add default via 192.168.1.254

/etc/network/interfaces is bloat! I actually prefer iwd but that needs dbus.

MrReplikant wrote:

it conflicts with the "init" package

So what?

empty@P14s:~ $ aptitude why init
Not currently installed
The candidate version 1.65.2 has priority important
No dependencies require to install init
1|empty@P14s:~ $

I think that would only be an issue if you wanted to use some bloated desktop environment. Anybody who is interested in finit most certainly wouldn't be interested in those, IMO.

So my box works just fine with plain openbox/tint2 or dwm or whatever. If I want to use sway I'll have to get dbus running but I don't want that so I'll just slum it in X for now. Even steam works.


Brianna Ghey — Rest In Power

Offline

#5 2023-01-22 11:38:50

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,251  

Re: finit: new init system option for Devuan daedalus

Exciting stuff smile

sysvinit of course only does whatever /etc/inittab says it should do and one can have great fun as well editing that.

And you would find a rather extreme doing-nothing init in the overlay-boot package, where its startup relies on scripting that spawns desired services before entering its "init" (actually called "reaper") which merely reaps zombies.

Offline

#6 2023-01-22 21:12:48

MLEvD
Member
Registered: 2021-02-14
Posts: 141  

Re: finit: new init system option for Devuan daedalus

When Bookworm is stable and finit is finished, I'll stick it on some eee pc and let you know if it's noticeably faster.

Offline

#7 2023-01-22 23:20:53

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 212  
Website

Re: finit: new init system option for Devuan daedalus

I discovered it recently, definitely considering trying it out - I found the finit website and docs significantly clearer than those of other init systems.

Not currently running Daedalus though, so will probably wait at least for the soft freeze in early Feb.

MLEvD wrote:

...I'll stick it on some eee pc...

To be clear, finit is a re-implementation of fastinit (which was an Asus proprietary init for EeePC), but finit itself is not EeePC specific.

Last edited by boughtonp (2023-01-22 23:25:50)


3.1415P265E589T932E846R64338

Offline

#8 2023-01-22 23:29:34

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: finit: new init system option for Devuan daedalus

Head_on_a_Stick wrote:

Look:

empty@P14s:~ $ pgrep -a dbus
1|empty@P14s:~ $

^ This is not possible with the other init systems.

I guess I'm not understanding what you're saying here. It is possible to run sysvinit without dbus. This is in a daedalus live-iso made last May.

user@refracta-nodbus:~$ pgrep -a dbus
user@refracta-nodbus:~$ 
user@refracta-nodbus:~$ dpkg -l |grep sysvinit
ii  live-config-sysvinit             11.0.3+devuan2                         all          Live System Configuration Components (sysvinit backend)
ii  sysvinit-core                    3.03-1devuan1                          amd64        System-V-like init
ii  sysvinit-utils                   3.03-1devuan1                          amd64        System-V-like utilities

Offline

#9 2023-01-23 05:55:05

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: finit: new init system option for Devuan daedalus

^ Thanks :-)

It turns out I can kill dbus under systemd as well:

archie:~$ cat /proc/1/comm
systemd
archie:~$ pgrep -a dbus
1archie:~$

The only thing I'm using that needs it is iwd but good old-fashioned wpa_supplicant works just fine.


Brianna Ghey — Rest In Power

Offline

Board footer