]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: (dos) be more verbose when change bootable flag
authorKarel Zak <kzak@redhat.com>
Wed, 16 Oct 2013 10:13:34 +0000 (12:13 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 23 Oct 2013 08:46:10 +0000 (10:46 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c

index ac8708fb6ca6c407d269d9bf0ee46648d576d6bf..11d3c71f4cce88547008fcf31773467606b4a5ef 100644 (file)
@@ -1931,6 +1931,11 @@ static int dos_toggle_partition_flag(
 
                p->boot_ind = (p->boot_ind ? 0 : ACTIVE_FLAG);
                partition_set_changed(cxt, i, 1);
+               fdisk_sinfo(cxt, FDISK_INFO_SUCCESS,
+                       p->boot_ind ?
+                       _("The bootable flag on partition %zu is enabled now.") :
+                       _("The bootable flag on partition %zu is disabled now."),
+                       i + 1);
                break;
        default:
                return 1;