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