From c701b731da69b11c0b4eefe2136b1078e29f14e0 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Fri, 13 Dec 2013 09:03:37 -0600 Subject: [PATCH] bug: broken versions of sfdisk (2.17.2) See: https://github.com/RobertCNelson/netinstall/issues/20 Reported-by: Stephen Koone Reported-by: Matthew Sears Signed-off-by: Robert Nelson --- mk_mmc.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mk_mmc.sh b/mk_mmc.sh index e650a8b..ced61e9 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -96,6 +96,16 @@ detect_software () { echo "" exit fi + + unset test_sfdisk + test_sfdisk=$(LC_ALL=C sfdisk -v 2>/dev/null | grep 2.17.2 | awk '{print $1}') + if [ "x${test_sdfdisk}" = "xsfdisk" ] ; then + echo "" + echo "Detected known broken sfdisk:" + echo "See: https://github.com/RobertCNelson/netinstall/issues/20" + echo "" + exit + fi } local_bootloader () {