diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-10-07 16:00:10 +0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-10-15 09:52:47 +0200 |
commit | a598f2ffc2df59afcea5454fb353b849911da90b (patch) | |
tree | 67d6152c0c06e67bfb147553e7aae1f5554c13cc | |
parent | e614b54b9340e6fe14eaecd378a2d7d7ebcde736 (diff) |
bootindex: support to set a existent device's bootindex to -1
When set a device's bootindex to -1, we remove it from global
fw_boot_order list.
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | bootdevice.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootdevice.c b/bootdevice.c index aac0ffbcef..a38479a72a 100644 --- a/bootdevice.c +++ b/bootdevice.c @@ -77,6 +77,7 @@ void add_boot_device_path(int32_t bootindex, DeviceState *dev, FWBootEntry *node, *i; if (bootindex < 0) { + del_boot_device_path(dev, suffix); return; } |