user-configdrive.service 1020 B

123456789101112131415161718192021222324
  1. [Unit]
  2. Description=Load cloud-config from /media/configdrive
  3. Requires=coreos-setup-environment.service
  4. After=coreos-setup-environment.service system-config.target
  5. Before=user-config.target
  6. # HACK: work around ordering between config drive and ec2 metadata It is
  7. # possible for OpenStack style systems to provide both the metadata service
  8. # and config drive, to prevent the two from stomping on each other, force
  9. # this to run after OEM and after metadata (if it exsts). I'm doing this
  10. # here instead of in the oem service because the oem unit is not written
  11. # to disk until the OEM cloud config is evaluated and I want to make sure
  12. # systemd knows about the ordering as early as possible.
  13. # coreos-cloudinit could implement a simple lock but that cannot be used
  14. # until after the systemd dbus calls are made non-blocking.
  15. After=oem-cloudinit.service
  16. [Service]
  17. Type=oneshot
  18. TimeoutSec=10min
  19. RemainAfterExit=yes
  20. EnvironmentFile=-/etc/environment
  21. ExecStart=/usr/bin/coreos-cloudinit --from-configdrive=/media/configdrive