Hi, On Sun, Nov 23, 2014 at 10:08:18PM +0100, Matthias Klein wrote: > I try to evaluate systemd as busybox init replacement on an ARM > board where we mount the root filesystem read-only. > > I got the system booting into a console with only one error: > > ● kmod-static-nodes.service - Create list of required static device > nodes for the current kernel > Loaded: loaded (/lib/systemd/system/kmod-static-nodes.service; static) > Active: failed (Result: exit-code) since Thu 1970-01-01 00:00:08 > UTC; 46min ago > Process: 71 ExecStart=/bin/kmod static-nodes --format=tmpfiles > --output=/run/tmpfiles.d/kmod.conf (code=exited, status=203/EXEC) > Main PID: 71 (code=exited, status=203/EXEC) > > Warning: Journal has been rotated since unit was started. Log output > is incomplete or unavailable. > > > I don't have a /bin/kmod on my target. We are using busybox insmod > etc. where no /bin/kmod is installed. > For me it looks like the kmod-static-nodes.service is not needed. > How can I disable it in the ptxdist project?
Just mask the service: $ systemctl mask kmod-static-nodes.service or create the symlink this creates to the image. > What is the right way to configure / adjust which uints and targets > systemd will start? > Normally this all done at runtime using systemctl, but how can this > be done "offline" / during creation of the root filesystem by > ptxdist? This is really a systemd questions. Systemd has multiple ways to do this persistently. It's just a bunch of symlinks that you can create offline. Check the systemctl documentation for mask/unmask enable/disable. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list [email protected]
