[OE-core] [PATCH] initramfs-live-boot: disable systemd-update-done.service on live images

Otavio Salvador otavio.salvador at ossystems.com.br
Thu Aug 31 17:26:26 UTC 2017


On Thu, Aug 31, 2017 at 9:23 AM, Carlos Alberto Lopez Perez
<clopez at igalia.com> wrote:
> When systemd is used, it will invoke a service on first boot that triggers
> a rebuild of ldconfig caches (rebuild dynamic linker cache).
>
> This is fine on the first boot of a system that has been installed, but it
> makes no sense on a live system. The worst part is that rebuilding this
> caches is slow and it causes the live system to take longer to boot.
> (I measured this in 30 seconds longer on a standard PC system booting
> core-image-sato live from an USB memory).
>
> Disable this by touching /etc/.updated and /var/.updated on the live initramfs.
>
> For more details see https://bugzilla.redhat.com/show_bug.cgi?id=1201725 and
> https://www.freedesktop.org/software/systemd/man/systemd-update-done.service.html
>
> Signed-off-by: Carlos Alberto Lopez Perez <clopez at igalia.com>

This should be done to the live boot module of initramfs-framework as well.


-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list