[LORAX rhel7/master] Make sure tmpfs is enabled (#908253)

Vratislav Podzimek vpodzime at redhat.com
Fri Feb 15 10:11:05 UTC 2013


On Thu, 2013-02-14 at 16:56 -0800, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
> 
> NOTE: better solution, but requires systemd to include tmp.mount
> ---
>  share/runtime-postinstall.tmpl | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl
> index e87a627..1c0f9ba 100644
> --- a/share/runtime-postinstall.tmpl
> +++ b/share/runtime-postinstall.tmpl
> @@ -22,6 +22,10 @@ move etc/yum.repos.d etc/anaconda.repos.d
>  remove etc/systemd/system/default.target
>  symlink /lib/systemd/system/anaconda.target etc/systemd/system/default.target
>  
> +## Make sure tmpfs is enabled
> +mkdir etc/systemd/system/local-fs.target.wants/
> +symlink /lib/systemd/system/tmp.mount etc/systemd/system/local-fs.target.wants/tmp.mount
> +
>  ## Disable unwanted systemd services
>  systemctl disable systemd-readahead-collect.service \
>                    systemd-readahead-replay.service \
Ooops, I have overlooked this one. The code looks good and it looks like
a best way. ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list