From 21a2d28d54ef061f635d0192c1162bf85a707c9f Mon Sep 17 00:00:00 2001 From: jedi Date: Wed, 29 Jan 2020 21:02:02 +0100 Subject: [PATCH] wip --- entry.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/entry.sh b/entry.sh index a25b3c8..b10ce58 100755 --- a/entry.sh +++ b/entry.sh @@ -13,8 +13,24 @@ function first_stage(){ break done - echo mkfs.ext4 ${DEVICE}p1 - mkfs.ext4 ${DEVICE}p1 + wipefs -a ${DEVICE} + + ( + echo o + echo n + echo + echo + echo +2G + echo n + echo + echo + echo + echo w + ) | fdisk ${DEVICE} + partprobe + + echo mkfs.ext4 ${DEVICE}1 + mkfs.ext4 ${DEVICE}1 mount ${DEVICE}p1 $TARGET echo mount ${DEVICE}p1 $TARGET echo debootstrap sid $TARGET