Commit 65a1a33
committed
Loop the emergency shell when initial pool imports fail
Originally, ZFSBootMenu would drop to an emergency shell once if the
initial `zpool import -aN` failed to yield a usable pool, then terminate
when the user quit the shell. This required the user attempt to make the
pool importable and then reboot to allow ZFSBootMenu to try again.
With this change, the pool health check and drop to emergency_shell are
looped until a usable pool is identified. This allows the user to
manually import a pool if possible, then type `exit` to allow
ZFSBootMenu to attempt to proceed without an intervening reboot.1 parent fc4c396 commit 65a1a33
File tree
1 file changed
+16
-11
lines changed1 file changed
+16
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | | - | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
0 commit comments