On 12/05,
rama...@gmail.com wrote:
> It seems that systemd-tmpfiles-setup.service performs prior creating file
> /etc/tmpfiles.d/foo.conf by cloud init.
> Temporary workaround is to add custom service in cloud init like:
> - name: cloud-init-tmpfiles.service
> command: start
> content: |
> [Unit]
> Description=Create Volatile Files and Directories defined in
> cloud-init
> DefaultDependencies=no
> Conflicts=shutdown.target
> After=local-fs.target systemd-sysusers.service
>
> [Service]
> ExecStart=/usr/bin/systemd-tmpfiles --create
> /etc/tmpfiles.d/foo.conf
>
> [Install]
> WantedBy=multi-user.target
That is correct. If you use Ignition [1] instead, this workaround isn't
needed. This is due to the fact that Ignition runs before systemd,
runs. This just isn't possible with coreos-cloudinit.