aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-04-18 20:58:11 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-04-18 20:58:11 -0400
commitef13192ee02a6c243c0ae805ff1353a545fffe10 (patch)
tree388ce88b8c3195585ede413c454b55b7e9a60fff
parent3bae5a919f3d40f836554313a5302a956914c431 (diff)
script mode parted
-rwxr-xr-xinstall.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index 443f465..76a4bf4 100755
--- a/install.sh
+++ b/install.sh
@@ -18,11 +18,11 @@ xargs -n1 echo | sed 1q | rev | cut -c 2- | rev ))"
umount $DRIVE*
if [ ! -e installed ]; then
- parted $DRIVE -- mklabel gpt
- yes ignore | parted $DRIVE -- mkpart fat32 0 512M
- parted $DRIVE -- set 1 esp on
- yes ignore | parted $DRIVE -- mkpart ext4 512M -30G
- parted $DRIVE -- mkpart ntfs -30G -0
+ parted -s $DRIVE -- mklabel gpt
+ parted -s $DRIVE -- mkpart fat32 0 512M
+ parted -s $DRIVE -- set 1 esp on
+ parted -s $DRIVE -- mkpart ext4 512M -30G
+ parted -s $DRIVE -- mkpart ntfs -30G -0
yes | mkfs.vfat ${PART}1
yes | mkfs.ntfs ${PART}3
cryptsetup luksFormat ${PART}2