Changing upstart scripts
Before we start writing our recipe, we need to decide which upstart service manager type we will use. We have two options. One is SysVinit, which we were using until now. The second one is to use systemd. We will use the latter system because it is new and emerging, you should know about it, and I like it. It has a much better startup time. To enable it, we need to add the following lines to our auto.conf
file:
DISTRO_FEATURES_append = " systemd" VIRTUAL-RUNTIME_init_manager = "systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
We will have to build the full image again using the usual commands.
Tip
It is recommended that you force recompile virtual/kernel so that all the modules are also rebuilt.
I used the following command to recompile virtual/kernel:
$ bitbake -C compile virtual/kernel; bitbake core-image-sato
If you want to check systemd, it is recommended that you add systemd-analyze
to the image by adding it to the preceding package group and play with it...