systemd-machine-id-commit.service 693 B

12345678910111213141516171819202122
  1. # This file is part of systemd.
  2. #
  3. # systemd is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Lesser General Public License as published by
  5. # the Free Software Foundation; either version 2.1 of the License, or
  6. # (at your option) any later version.
  7. [Unit]
  8. Description=Commit a transient machine-id on disk
  9. Documentation=man:systemd-machine-id-commit.service(8)
  10. DefaultDependencies=no
  11. Conflicts=shutdown.target
  12. Before=sysinit.target shutdown.target
  13. After=local-fs.target
  14. ConditionPathIsReadWrite=/etc
  15. ConditionPathIsMountPoint=/etc/machine-id
  16. [Service]
  17. Type=oneshot
  18. RemainAfterExit=yes
  19. ExecStart=/bin/systemd-machine-id-setup --commit
  20. TimeoutSec=30s