From 164ce49532c62efd098ed7414b7138d4e82ed18c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 13 Apr 2015 13:41:10 +0200 Subject: [PATCH] sfdisk: enable bootbits protection Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1210428 Signed-off-by: Karel Zak --- disk-utils/sfdisk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index 38d741a7d7..874afab49b 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -190,6 +190,7 @@ static void sfdisk_init(struct sfdisk *sf) if (!sf->cxt) err(EXIT_FAILURE, _("failed to allocate libfdisk context")); fdisk_set_ask(sf->cxt, ask_callback, (void *) sf); + fdisk_enable_bootbits_protection(sf->cxt, 1); if (sf->label_nested) { struct fdisk_context *x = fdisk_new_nested_context(sf->cxt, -- 2.47.2