Commit 57b5572
committed
zfsbootmenu: remove legacy root= usage/design
ZFSBootMenu has danced around `$root` for a few years now, as a holdover from
very early design decisions picked up from Dracut. We don't actually _need_ to
tie ourselves to that variable - and in fact, a lot of the early startup process
can be simplified by no longer trying to stuff so much logic into it.
To that end, the legacy but undocumented support for
`root=zfsbootmenu:POOL=pool` has been completely removed. `root` on the ZBM KCL
is no longer honored. `zbm.prefer` with the documented syntax is now the only
way to tell ZFSBootMenu which pool should be preferentially used in the boot
process. Accordingly, the global `zbm_prefer_pool` variable is now set when a
pool should be preferred, and the accompanying `zbm_require_pool` variable is
used to indicate how firm that pool requirement is. One quirk of this is that a
pool name of `zfsbootmenu` can now actually be a value that `zbm.prefer` will
respect/honor.1 parent 22032ed commit 57b5572
File tree
4 files changed
+32
-54
lines changed4 files changed
+32
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 108 | | |
117 | | - | |
| 109 | + | |
| 110 | + | |
118 | 111 | | |
119 | 112 | | |
120 | 113 | | |
| |||
126 | 119 | | |
127 | 120 | | |
128 | 121 | | |
129 | | - | |
| 122 | + | |
130 | 123 | | |
131 | 124 | | |
132 | 125 | | |
| |||
148 | 141 | | |
149 | 142 | | |
150 | 143 | | |
151 | | - | |
152 | | - | |
| 144 | + | |
| 145 | + | |
153 | 146 | | |
154 | 147 | | |
155 | 148 | | |
156 | 149 | | |
157 | 150 | | |
158 | 151 | | |
159 | | - | |
| 152 | + | |
160 | 153 | | |
161 | 154 | | |
162 | 155 | | |
| |||
186 | 179 | | |
187 | 180 | | |
188 | 181 | | |
| 182 | + | |
189 | 183 | | |
190 | 184 | | |
191 | 185 | | |
| |||
205 | 199 | | |
206 | 200 | | |
207 | 201 | | |
| 202 | + | |
208 | 203 | | |
209 | 204 | | |
210 | 205 | | |
211 | | - | |
212 | | - | |
| 206 | + | |
| 207 | + | |
213 | 208 | | |
214 | 209 | | |
215 | | - | |
| 210 | + | |
216 | 211 | | |
217 | 212 | | |
218 | | - | |
| 213 | + | |
| 214 | + | |
219 | 215 | | |
220 | 216 | | |
221 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | 202 | | |
208 | 203 | | |
209 | 204 | | |
| |||
224 | 219 | | |
225 | 220 | | |
226 | 221 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
247 | 228 | | |
248 | 229 | | |
249 | 230 | | |
250 | 231 | | |
251 | 232 | | |
252 | | - | |
| 233 | + | |
253 | 234 | | |
254 | | - | |
255 | | - | |
| 235 | + | |
| 236 | + | |
256 | 237 | | |
257 | 238 | | |
258 | | - | |
259 | | - | |
| 239 | + | |
| 240 | + | |
260 | 241 | | |
261 | 242 | | |
262 | | - | |
| 243 | + | |
263 | 244 | | |
264 | 245 | | |
265 | 246 | | |
266 | 247 | | |
267 | | - | |
268 | | - | |
269 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments