From b15dc2d5970bfe6b6a4e2ce2ab1cea08f381e023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Sun, 15 Jul 2018 03:41:48 +0200 Subject: [PATCH] Use gdisk instead of fdisk when printing partition table --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3962dd4..f0e9d4b 100644 --- a/Makefile +++ b/Makefile @@ -287,7 +287,12 @@ build/os.file: ${os_filename} build/check_makefile file -kr $< > $@ build/os.fdisk: ${os_filename} build/check_makefile - fdisk -l $< > $@ +# gdisk commands: +# * Print partition table +# * Recovery and transformation options +# * print prOtective MBR table +# * Quit + printf 'p\nr\no\nq\n' | gdisk $< > $@ build/os.offsets: ${offset_names:%=build/offsets/%.hex} build/check_makefile grep '^' ${offset_names:%=build/offsets/%.hex} | sed -e 's/:/: 0x/' > $@