提交 4aca8a81 编写于 作者: G Gonglei 提交者: Gerd Hoffmann

bootindex: delete bootindex when device is removed

Device should be removed from global boot list when
it is hot-unplugged.
Signed-off-by: NGonglei <arei.gonglei@huawei.com>
Reviewed-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 d749e10c
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册