The current usage pattern of image_probe() is a legacy from the time before commit 34b6ecb ("[image] Simplify image management") when loading an image to its executable location in memory was a separate action from actually executing the image. Call image_probe() as soon as an image is registered. This allows "imgstat" to display image type information for all images and allows image-consuming code to assume that image->type is already set correctly. Ignore failures if image_probe() does not recognise the image, since we do expect to handle unrecognised images (initrds, modules, etc). Unrecognised images will be left with a NULL image->type, which image-consuming code can easily check. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
157 |
|
157 |
|
158 |
|
158 |
|
159 |
|
159 |
|
|
160 |
|
|
|
161 |
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
160 |
|
186 |
|
161 |
|
187 |
|
162 |
|
188 |
|
|
|
||
189 |
|
215 |
|
190 |
|
216 |
|
191 |
|
217 |
|
|
218 |
|
|
|
219 |
|
|
|
220 |
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
|
|
|
224 |
|
|
|
225 |
|
|
192 |
|
226 |
|
193 |
|
227 |
|
194 |
|
228 |
|
|
|
||
226 |
|
260 |
|
227 |
|
261 |
|
228 |
|
262 |
|
229 |
|
|
|
230 |
|
|
|
231 |
|
|
|
232 |
|
|
|
233 |
|
|
|
234 |
|
|
|
235 |
|
|
|
236 |
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
|
|
|
240 |
|
|
|
241 |
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
|
|
|
257 |
|
|
|
258 |
|
|
|
259 |
|
263 |
|
260 |
|
264 |
|
261 |
|
265 |
|
|
|
||
288 |
|
292 |
|
289 |
|
293 |
|
290 |
|
294 |
|
291 |
|
|
|
292 |
|
|
|
|
295 |
|
|
|
296 |
|
|
|
297 |
|
|
293 |
|
298 |
|
|
299 |
|
|
294 |
|
300 |
|
295 |
|
301 |
|
296 |
|
302 |
|
|
|
||
382 |
|
388 |
|
383 |
|
389 |
|
384 |
|
390 |
|
385 |
|
|
|
386 |
|
|
|
|
391 |
|
|
|
392 |
|
|
387 |
|
393 |
|
388 |
|
394 |
|
389 |
|
395 |
|
|
|
||
404 |
|
410 |
|
405 |
|
411 |
|
406 |
|
412 |
|
407 |
|
|
|
408 |
|
413 |
|
409 |
|
414 |
|
410 |
|
415 |
|
411 |
|
416 |
|
412 |
|
417 |
|
413 |
|
418 |
|
414 |
|
|
|
415 |
|
|
|
416 |
|
|
|
|
419 |
|
|
417 |
|
420 |
|
418 |
|
421 |
|
419 |
|
422 |
|
|
|
||
472 |
|
475 |
|
473 |
|
476 |
|
474 |
|
477 |
|
475 |
|
|
|
476 |
|
|
|
477 |
|
|
|
|
478 |
|
|
478 |
|
479 |
|
479 |
|
480 |
|
480 |
|
481 |
|
|
|
||
163 |
|
163 |
|
164 |
|
164 |
|
165 |
|
165 |
|
166 |
|
|
|
167 |
|
166 |
|
168 |
|
167 |
|
169 |
|
168 |
|
|
|
||
57 |
|
57 |
|
58 |
|
58 |
|
59 |
|
59 |
|
60 |
|
|
|
61 |
|
|
|
|
60 |
|
|
|
61 |
|
|
62 |
|
62 |
|
63 |
|
63 |
|
64 |
|
64 |
|
|
|
||
77 |
|
77 |
|
78 |
|
78 |
|
79 |
|
79 |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
80 |
|
83 |
|