mirror of https://github.com/ipxe/ipxe.git
[image] Avoid ending up with multiple selected images on re-registration
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/1/head
parent
9fa4ac2e9a
commit
4562223420
|
@ -128,6 +128,12 @@ int register_image ( struct image *image ) {
|
|||
imgindex++ );
|
||||
}
|
||||
|
||||
/* Avoid ending up with multiple "selected" images on
|
||||
* re-registration
|
||||
*/
|
||||
if ( image_find_selected() )
|
||||
image->flags &= ~IMAGE_SELECTED;
|
||||
|
||||
/* Add to image list */
|
||||
image_get ( image );
|
||||
image->flags |= IMAGE_REGISTERED;
|
||||
|
|
Loading…
Reference in New Issue