All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zoran Stojsavljevic <zoran.stojsavljevic@gmail.com>
To: Yocto Project <yocto@yoctoproject.org>
Subject: Systemd service recipe fails while booting from initramfs
Date: Mon, 21 Jan 2019 07:56:20 +0100	[thread overview]
Message-ID: <CAGAf8LzrskfFOqq78ztWRy7eqeE4uWh8=AbkS9X7gkmGx_9A6Q@mail.gmail.com> (raw)

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

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 serviceVIRTUAL-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 directoryFailed
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
[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)?

Thank you,
Zoran

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

             reply	other threads:[~2019-01-21  6:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-21  6:56 Zoran Stojsavljevic [this message]
2019-01-21  8:34 ` Systemd service recipe fails while booting from initramfs Peter Bergin
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='CAGAf8LzrskfFOqq78ztWRy7eqeE4uWh8=AbkS9X7gkmGx_9A6Q@mail.gmail.com' \
    --to=zoran.stojsavljevic@gmail.com \
    --cc=yocto@yoctoproject.org \
    /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.