[yocto] Systemd service recipe fails while booting from initramfs
Zoran Stojsavljevic
zoran.stojsavljevic at gmail.com
Sun Jan 20 22:56:20 PST 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190121/246b22ca/attachment.html>
More information about the yocto
mailing list