sfdisk: enable bootbits protection
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1210428 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
3457d90e30
commit
6265639505
|
@ -206,6 +206,7 @@ static void sfdisk_init(struct sfdisk *sf)
|
||||||
if (!sf->cxt)
|
if (!sf->cxt)
|
||||||
err(EXIT_FAILURE, _("failed to allocate libfdisk context"));
|
err(EXIT_FAILURE, _("failed to allocate libfdisk context"));
|
||||||
fdisk_set_ask(sf->cxt, ask_callback, (void *) sf);
|
fdisk_set_ask(sf->cxt, ask_callback, (void *) sf);
|
||||||
|
fdisk_enable_bootbits_protection(sf->cxt, 1);
|
||||||
|
|
||||||
if (sf->label_nested) {
|
if (sf->label_nested) {
|
||||||
struct fdisk_context *x = fdisk_new_nested_context(sf->cxt,
|
struct fdisk_context *x = fdisk_new_nested_context(sf->cxt,
|
||||||
|
|
Loading…
Reference in New Issue