mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] systemd configuration
Date: Tue, 25 Nov 2014 10:03:32 +0100	[thread overview]
Message-ID: <20141125090332.GB19664@pengutronix.de> (raw)
In-Reply-To: <54724CC2.30601@optimeas.de>

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
ptxdist@pengutronix.de

      reply	other threads:[~2014-11-25  9:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-23 21:08 Matthias Klein
2014-11-25  9:03 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141125090332.GB19664@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox