diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-17 13:43:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-25 09:06:29 +0000 |
commit | 37b3d87f50e1388430febe0f7b49a2f27717e0bf (patch) | |
tree | c96be02bcd54b6f455477259af04bb177316edac /main/util-linux/0001-sfdisk-suppress-warning-about-missing-boot-partition.patch | |
parent | afad21c4b3e3e92874f184aebb740546c3d187f9 (diff) | |
download | aports-37b3d87f50e1388430febe0f7b49a2f27717e0bf.tar.bz2 aports-37b3d87f50e1388430febe0f7b49a2f27717e0bf.tar.xz |
main/util-linux: suppress warning with --quiet
fixes #3099
(cherry picked from commit 80f5ac62c11a29201922a51d941e60b4dfa104c2)
Diffstat (limited to 'main/util-linux/0001-sfdisk-suppress-warning-about-missing-boot-partition.patch')
-rw-r--r-- | main/util-linux/0001-sfdisk-suppress-warning-about-missing-boot-partition.patch | 31 |
1 files changed, 31 insertions, 0 deletions
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 <ncopa@alpinelinux.org> +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 <ncopa@alpinelinux.org> +--- + 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 + |