var-volatile-lib.service 496 B

12345678910111213141516171819
  1. [Unit]
  2. Description=Bind mount volatile /var/lib
  3. DefaultDependencies=false
  4. Before=local-fs.target systemd-random-seed.service
  5. RequiresMountsFor=/var/volatile /var
  6. ConditionPathIsReadWrite=/var/volatile
  7. ConditionPathExists=/var/lib
  8. ConditionPathIsReadWrite=!/var/lib
  9. [Service]
  10. Type=oneshot
  11. RemainAfterExit=Yes
  12. StandardOutput=syslog
  13. TimeoutSec=0
  14. ExecStart=/sbin/mount-copybind /var/volatile/lib /var/lib
  15. ExecStop=/bin/umount /var/lib
  16. [Install]
  17. WantedBy=local-fs.target systemd-random-seed.service