Commit 2473008
committed
dracut/95nbft: Define respawn attempts on a connection failure
In case the `nvme connect-all --nbft` call fails, respawn the service
after 10 seconds and try again. Depends on nvme-cli to return non-zero
status in case of any of the SSNS records that are not marked
as 'unavailable' fails to connect.
The respawn cycle is broken by stopping the unit once rootfs
is mounted and system switches the root.
Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>1 parent 0a8524e commit 2473008
1 file changed
+5
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
0 commit comments