Poettering: Factory Reset, Stateless Systems, Reproducible Systems & Verifiable Systems
Poettering: Factory Reset, Stateless Systems, Reproducible Systems & Verifiable Systems
Posted Jun 19, 2014 11:50 UTC (Thu) by Chousuke (subscriber, #54562)In reply to: Poettering: Factory Reset, Stateless Systems, Reproducible Systems & Verifiable Systems by rwmj
Parent article: Poettering: Factory Reset, Stateless Systems, Reproducible Systems & Verifiable Systems
Still, even in the cases where you do want /etc, you can use native mount units instead of /etc/fstab. It is strictly unnecessary on systemd systems. Just put your mount units in /etc/systemd/system/.
Of course, using /etc/fstab with systemd is perfectly fine... I do so myself. The whole point is that systemd doesn't care about it at all. The helper tool "systemd-fstab-generator" reads it if it exists and creates mount units for you during early boot (under /run/systemd/generator/), but the actual mounting logic in systemd doesn't even know that the file exists.
The same approach is used for other "legacy" configuration files such as /etc/crypttab
