flash-images: remove wrong 2nd partition

the new sfdisk seems not able to skip a partition anymore.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Arne Fitzenreiter
2017-07-06 18:37:44 +02:00
parent 62bf80f851
commit 025e1fe146

View File

@@ -94,6 +94,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
# Write Partition table
echo -e "$(S_OFFSET),$(S_BOOT),$(PART_TYPE),*\n,0,0\n$$(( $(S_BOOT) + $(S_OFFSET) )),$(S_ROOT),L\n" \
| sfdisk -uS $(DEVICE)
-echo -e "d\n2\nw\n\q\n" | fdisk $(DEVICE)
kpartx -v -a $(DEVICE)