]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
flash-images: remove wrong 2nd partition
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 6 Jul 2017 16:37:44 +0000 (18:37 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 6 Jul 2017 16:37:44 +0000 (18:37 +0200)
the new sfdisk seems not able to skip a partition anymore.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/flash-images

index 121dc1148b93e45827a09411b857ea72e2944cb0..8ed7f63756f4d3924a83289f24deaf5b4629bc65 100644 (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)