Skip to content

Commit

Permalink
Remove delay before PXE service
Browse files Browse the repository at this point in the history
Initially the service was written to be a one-shot service
hence the need for the delay to ensure a stable network before
starting the service. Since the service was rewritten to run
in an infinite loop until installation succeeds, the delay is
no longer needed.

Signed-off-by: Mark D Horn <[email protected]>
  • Loading branch information
mdhorn committed Dec 14, 2019
1 parent be11cbc commit 8a7e4b4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion etc/systemd/clr-installer-provision.service
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ [email protected] [email protected] [email protected]
[Service]
Type=oneshot
ExecStartPre=/bin/bash -l -c 'grep --quiet --no-message clri.descriptor= /proc/cmdline || (echo "Missing clr-install YAML on kernel command line" ; /bin/false)'
ExecStartPre=-/bin/bash -l -c '/usr/bin/sleep 10'
ExecStartPre=-/bin/bash -l -c '/usr/bin/cat /etc/issue'
ExecStart=/bin/bash -l -c 'until /usr/bin/clr-installer ; do echo "clr-installer failed...retying"; sleep 5 ; done ; /usr/bin/reboot'
StandardInput=tty
Expand Down

0 comments on commit 8a7e4b4

Please sign in to comment.