From 37b3d87f50e1388430febe0f7b49a2f27717e0bf Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 17 Jul 2014 13:43:43 +0000 Subject: main/util-linux: suppress warning with --quiet fixes #3099 (cherry picked from commit 80f5ac62c11a29201922a51d941e60b4dfa104c2) --- ...ress-warning-about-missing-boot-partition.patch | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 main/util-linux/0001-sfdisk-suppress-warning-about-missing-boot-partition.patch (limited to 'main/util-linux/0001-sfdisk-suppress-warning-about-missing-boot-partition.patch') diff --git a/main/util-linux/0001-sfdisk-suppress-warning-about-missing-boot-partition.patch b/main/util-linux/0001-sfdisk-suppress-warning-about-missing-boot-partition.patch new file mode 100644 index 0000000000..643c063496 --- /dev/null +++ b/main/util-linux/0001-sfdisk-suppress-warning-about-missing-boot-partition.patch @@ -0,0 +1,31 @@ +From 7f7379b7628f5572e752069276f35e4d32ad884d Mon Sep 17 00:00:00 2001 +From: Natanael Copa +Date: Thu, 17 Jul 2014 13:37:33 +0000 +Subject: [PATCH] sfdisk: suppress warning about missing boot partition with + --quiet + +Many use grub or lilo which does not care about boot partition. It +might also be that sfdisk is used to partition a data disk from a +script, so we hid the warning with --quiet. + +Signed-off-by: Natanael Copa +--- + disk-utils/sfdisk.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c +index b462705..95dbb45 100644 +--- a/fdisks/sfdisk.c ++++ b/fdisks/sfdisk.c +@@ -1324,7 +1324,7 @@ partitions_ok(int fd, struct disk_desc *z) { + break; + } + } +- if (pno == -1 || pno >= 4) ++ if (!quiet && (pno == -1 || pno >= 4)) + warnx(_("Warning: no primary partition is marked bootable (active)\n" + "This does not matter for LILO, but the DOS MBR will " + "not boot this disk.")); +-- +2.0.1 + -- cgit v1.2.3