All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Systemd service recipe fails while booting from initramfs
@ 2019-01-21  8:07 Lukasz Zemla
  2019-01-22 15:41 ` Zoran Stojsavljevic
  0 siblings, 1 reply; 9+ messages in thread
From: Lukasz Zemla @ 2019-01-21  8:07 UTC (permalink / raw)
  To: Zoran Stojsavljevic, Yocto Project

From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Zoran Stojsavljevic
Sent: Monday, January 21, 2019 7:56 AM

[...]

> 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

Probably you are missing CONFIG_CGROUPS in your kernel configuration.
Please read README file in the systemd sources folder - it describes all options
required to be enabled in kernel configuration.

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

Please add following to your conf/local.conf file:
PACKAGECONFIG_append_pn-systemd = " networkd"

Best regards,
Lukasz Zemla

***
The information in this email is confidential and intended solely for the individual or entity to whom it is addressed.  If you have received this email in error please notify the sender by return e-mail, delete this email, and refrain from any disclosure or action based on the information.
***

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Systemd service recipe fails while booting from initramfs
@ 2019-01-21  6:56 Zoran Stojsavljevic
  2019-01-21  8:34 ` Peter Bergin
  0 siblings, 1 reply; 9+ messages in thread
From: Zoran Stojsavljevic @ 2019-01-21  6:56 UTC (permalink / raw)
  To: Yocto Project

[-- 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 --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-01-23  5:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21  8:07 Systemd service recipe fails while booting from initramfs 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
  -- strict thread matches above, loose matches on Subject: below --
2019-01-21  6:56 Zoran Stojsavljevic
2019-01-21  8:34 ` Peter Bergin

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.