Commit 4aca8a81 authored by Gonglei's avatar Gonglei Committed by Gerd Hoffmann
Browse files

bootindex: delete bootindex when device is removed



Device should be removed from global boot list when
it is hot-unplugged.

Signed-off-by: default avatarGonglei <arei.gonglei@huawei.com>
Reviewed-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent d749e10c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -225,6 +225,8 @@ static void property_release_bootindex(Object *obj, const char *name,

{
    BootIndexProperty *prop = opaque;

    del_boot_device_path(prop->dev, prop->suffix);
    g_free(prop);
}