linux-automation / meta-lxatac

Build your own LXA TAC images and bundles
MIT License
5 stars 15 forks source link

meta-lxatac-software: tacd: create /srv/www in tacd.service #89

Closed hnez closed 7 months ago

hnez commented 7 months ago

The content of the /srv/www directory is exported by the tacd via HTTP. If this directory does not exist the user gets a (true, but somewhat confusing) 404 Not Found error if they try to access /srv via HTTP.

Usually a tmpfiles.d entry would be the way to go to create this directory, but it causes issues for directories on the /srv file system. See this comment copied from a similar commit (36d7cf538c7) for atftp.service:

The tmpfiles.d service runs very early in the boot process and even before system-update.target. This means it would clutter the /srv directory in the rootfs if the /srv partition was not yet mounted - because it was not generated yet by systemd-repart.