From b94edc07f433952b670606570dbd50ac05980b7a Mon Sep 17 00:00:00 2001
From: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
Date: Fri, 28 Aug 2015 22:26:15 +0200
Subject: [PATCH] image_assemble: fix unit of partition offset (bytes->sectors)

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index af06f4c..2c2c012 100644
--- a/Makefile
+++ b/Makefile
@@ -401,7 +401,7 @@ $(GRUB_ASSEMBLE_DIR)/grub.i386-pc : | $(WORKSPACE)
 
 image_assemble: $(IMAGE_FILE)
 $(IMAGE_FILE): $(IMAGE_PART_FILE)
-	ddrescue --output-position=2048 --sparse "$(IMAGE_PART_FILE)" "$@"
+	ddrescue --output-position=2048s --sparse "$(IMAGE_PART_FILE)" "$@"
 	#sfdisk: start, as large as possible, FAT, bootable
 	echo -e "label: dos\nunit: sectors\n2048,+,b,*"\
 		| sfdisk "$@"
-- 
GitLab