Commit cfec416
committed
Support automatic "noresume" when importing pools R/W
Rather than just warn the user about the need to set the "noresume"
kernel argument when booting after an active suspend partition is
detected and a pool is imported R/W, ZFSBootMenu now supports rewriting
the kernel command line to remove any "resume=" arguments and append a
"noresume". This uses awk to cleanly (and, it seems, correctly) handle
the possibility of double-quoted strings in the argument list, which the
kernel docs say are permitted. (The docs do not mention single-quoted
strings, so we don't support them.)
The prior behavior has been preserved by allowing the user to type
DANGEROUS instead of the redefined NORESUME response to the resume guard
prompt, just in case there is some unexpected edge case that thwarts
automatic redirection and the user wants to assume responsibility for
pool corruption.
Closes #78.1 parent 91296d1 commit cfec416
File tree
2 files changed
+57
-5
lines changed2 files changed
+57
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
191 | 228 | | |
192 | 229 | | |
193 | 230 | | |
| |||
689 | 726 | | |
690 | 727 | | |
691 | 728 | | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
696 | 742 | | |
697 | 743 | | |
698 | 744 | | |
699 | 745 | | |
700 | 746 | | |
701 | 747 | | |
702 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
703 | 754 | | |
704 | 755 | | |
705 | 756 | | |
| |||
0 commit comments