Files
buildroot/package
Norbert Lange 01a7e1a9f8 package/systemd: add support for creating journal catalog DB
journald supports catalog files, or rather a binary database of
those.
Functionality added includes:

-   A config option allows enabling the binary database.

-   If BR2_ENABLE_LOCALE_PURGE is enabled, the catalogs not in the
    language whitelist are deleted first. This is done independently
    of the new option, since the catalogs are removed later anyway.

-   If the option is enabled, the database is built and moved to
    /usr/share/factory. This makes sure that /usr contains the entire
    system. A symlink is created in /var pointing to that file.

-   The catalog source files are deleted. They serve no purpose on the
    target once the database exists.

-   All of the above is done in a ROOTFS_PRE_CMD_HOOK rather than in the
    build/install step, because other packages than systemd itself may
    also install catalogs. This also makes sure that it is possible to
    do a re-build, because the catalog files are not removed in
    $(TARGET_DIR) itself, only in the temporary copy for rootfs creation.

-   The service normally used for creating the DB during boot is
    deleted. If the DB is not enabled, we also don't want to waste time
    and space on re-generating every boot. Conversely, if the DB is
    enabled, it is already there so doesn't need to be re-done on every
    boot either.

The new option depends on !BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW because
if the rootfs is not RW, /var is overmounted with a tmpfs. The factory
should handle this, but this only half-works [1].

[1] http://lists.busybox.net/pipermail/buildroot/2020-July/287016.html

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Reviewed-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Reviewed-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-01-09 09:43:28 +01:00
..
2022-01-07 18:52:32 +01:00
2022-01-05 23:38:53 +01:00
2022-01-08 23:35:41 +01:00
2022-01-05 23:44:42 +01:00
2022-01-07 22:08:05 +01:00
2022-01-08 22:48:16 +01:00
2022-01-07 18:51:44 +01:00
2022-01-08 23:35:41 +01:00
2022-01-08 15:49:00 +01:00
2022-01-04 18:32:58 +01:00
2022-01-08 00:26:20 +01:00
2022-01-09 00:17:09 +01:00
2022-01-07 18:43:21 +01:00
2022-01-08 14:45:33 +01:00
2022-01-04 18:32:58 +01:00
2022-01-04 20:58:30 +01:00
2022-01-04 18:49:20 +01:00
2022-01-07 22:08:05 +01:00
2022-01-08 21:54:08 +01:00
2022-01-08 21:58:32 +01:00
2022-01-08 19:58:28 +01:00
2022-01-08 23:35:41 +01:00
2022-01-05 21:33:11 +01:00
2022-01-08 15:49:10 +01:00
2022-01-07 22:09:47 +01:00
2022-01-04 18:49:20 +01:00
2022-01-09 00:17:09 +01:00
2022-01-06 11:32:23 +01:00