[PATCH lorax/master] Remove /var/log/journal so journald won't write to overlay
Vratislav Podzimek
vpodzime at redhat.com
Wed Apr 24 08:15:43 UTC 2013
On Tue, 2013-04-23 at 14:32 -0400, Will Woods wrote:
> It's pretty pointless to copy data from /run/log/journal to
> /var/log/journal, since both of those are in-memory filesystems.
>
> This should somewhat reduce RAM use during installation.
> ---
> share/runtime-postinstall.tmpl | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl
> index e9a4d48..94f113c 100644
> --- a/share/runtime-postinstall.tmpl
> +++ b/share/runtime-postinstall.tmpl
> @@ -38,6 +38,9 @@ systemctl mask fedora-configure.service fedora-loadmodules.service \
> fedora-autorelabel.service fedora-autorelabel-mark.service \
> fedora-wait-storage.service media.mount
>
> +## Don't write the journal to the overlay, just keep it in RAM
> +remove var/log/journal
> +
> ## install some basic configuration files
> append etc/resolv.conf ""
> append etc/fstab ""
Looks good to me.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list