All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Bergin <peter@berginkonsult.se>
To: zoran.stojsavljevic@gmail.com
Cc: yocto@yoctoproject.org
Subject: Re: Systemd service recipe fails while booting from initramfs
Date: Mon, 21 Jan 2019 09:34:00 +0100	[thread overview]
Message-ID: <8b846036-b9a8-1052-b5a3-283495df7419@berginkonsult.se> (raw)
In-Reply-To: <CAGAf8LzrskfFOqq78ztWRy7eqeE4uWh8=AbkS9X7gkmGx_9A6Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2612 bytes --]

On 2019-01-21 07:56, Zoran Stojsavljevic wrote:
> Hello to all,
>
> I have added to my local.conf the following lines in order to port 
> systemd service
> in YOCTO (Thud release):
>
> _/## Add systemd service
> VIRTUAL-RUNTIME_init_manager = "systemd"
> VIRTUAL-RUNTIME_dev_manager = "systemd"
> DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
> VIRTUAL-RUNTIME_initscripts = ""
> DISTRO_FEATURES_append = " nfs systemd"/_
>
> By executing bitbake -k core-image-minimal command, all went good 
> (although it rebuilt
> almost the whole build - circa 80% of it), which is understandable.
>
> While downloading initramfs on the target system, while bringing 
> kernel up, the following
> happened (actual log):
> [    0.000000] Kernel command line: console=ttyO0,115200n8 
> root=/dev/ram0 ip=dhcp
> ... [snap]...
> [  114.064032] Sending DHCP requests ...... timed out!
> [  190.652571] IP-Config: Auto-configuration of network failed
> [  190.663158] Freeing unused kernel memory: 1024K
> [  190.668661] Run /init as init process
> System time before build time, advancing clock.
> /*Failed to mount tmpfs at /sys/fs/cgroup: No such file or directory
> Failed to mount cgroup at /sys/fs/cgroup/systemd: No such file or 
> directory
> [!!!!!!] */Failed to mount API filesystems, freezing.
> /*Freezing execution.*/
> [  192.984442] random: crng init done
>
> I have two questions (please, could you provide to me some help here):
> [1] How to fix this run-time bug (what I should do in the configuration)?
>      I found some interesting explanation about possible solution 
> /(PACKAGECONFIG)/:
> https://lists.yoctoproject.org/pipermail/yocto/2013-November/016965.html

Could be that you miss some required kernel configurations. See 
systemd/README 
(https://github.com/systemd/systemd/blob/8464d9e0dc506538fd0f2d1d667966750cb9cf30/README#L38)
> [2] I would like also to include networkctl service (should I do 
> something specific to
>      enable it, or this is done by default enabling systemd)?
PACKAGECONFIG will control which features you have enabled for systemd. 
To check which ones you have you can execute 'bitbake -e systemd | grep 
^PACKAGECONFIG='. If you want to change this config you can adjust 
PACKAGECONFIG in your own systemd_%.bbappend file.

I guess networkd is enabled default with the systemd recipe. But check 
it out. There are several way to see which files that are included in 
your image. I use buildhistory.bbclass in all my build which make it 
easy too look up what's included.

Regards,
/Peter


[-- Attachment #2: Type: text/html, Size: 5452 bytes --]

  reply	other threads:[~2019-01-21  8:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-21  6:56 Systemd service recipe fails while booting from initramfs Zoran Stojsavljevic
2019-01-21  8:34 ` Peter Bergin [this message]
2019-01-21  8:07 Lukasz Zemla
2019-01-22 15:41 ` Zoran Stojsavljevic
2019-01-22 15:48   ` Nicolas Dechesne
2019-01-22 16:38     ` Zoran Stojsavljevic
2019-01-22 16:45       ` Nicolas Dechesne
2019-01-22 21:08         ` Peter Bergin
2019-01-23  5:01           ` Zoran Stojsavljevic

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=8b846036-b9a8-1052-b5a3-283495df7419@berginkonsult.se \
    --to=peter@berginkonsult.se \
    --cc=yocto@yoctoproject.org \
    --cc=zoran.stojsavljevic@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.