[arch-releng] [PATCH 2/5] [archiso] Avoid journald log to /var/log/journal
Pierre Schmitz
pierre at archlinux.de
Fri Oct 26 05:36:11 EDT 2012
Am 23.10.2012 17:03, schrieb Gerardo Exequiel Pozzi:
> This was recently enabled in [systemd] package.
>
> Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
> ---
> archiso/mkarchiso | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/archiso/mkarchiso b/archiso/mkarchiso
> index b9f12c1..95bb67f 100755
> --- a/archiso/mkarchiso
> +++ b/archiso/mkarchiso
> @@ -255,6 +255,10 @@ _cleanup () {
> if [[ -d "${work_dir}/root-image/var/log" ]]; then
> find "${work_dir}/root-image/var/log" -type f -delete
> fi
> + # Avoid journald use permanent storage (Storage=auto)
> + if [[ -d "${work_dir}/root-image/var/log/journal" ]]; then
> + rm -rf "${work_dir}/root-image/var/log/journal"
> + fi
> # Delete all temporary files and dirs
> if [[ -d "${work_dir}/root-image/var/tmp" ]]; then
> find "${work_dir}/root-image/var/tmp" -mindepth 1 -delete
This is more about style, but maybe we should explicitly disable it in
/etc/systemd/journald.conf (Storage=volatile).
--
Pierre Schmitz, https://pierre-schmitz.com
More information about the arch-releng
mailing list