tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
porting the nitro init system
Hi,
I'm working on porting nitro https://github.com/leahneukirchen/nitro to
NetBSD, the code is already pretty good and portable, but I am
struggling at finding "the right way" of doing something.
I want to be able to use nitro as a direct replacement for init(8) (just
for fun, don't worry), thing is nitro relies on either:
- /run for Linux systems
- /var/run for others
It uses those directories to create a control socket before anything
else.
NetBSD boots read-only, and at this stage of the boot, nothing is
writable yet, but no problem, we can use mount(2) to create a tmpfs
filesystem just for that. OK, but where?
/var and /tmp could be later mounted by fstab other mountpoints.
Creating a dedicated /run directory works but doesn't feel right.
Any correct idea comes to mind?
------------------------------------------------------------------------
Emile `iMil' Heitor <imil@{home.imil.net,NetBSD.org}> | https://imil.net
Home |
Main Index |
Thread Index |
Old Index