diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-16 23:52:29 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-16 23:52:29 +0100 |
commit | ba7d1b25bf2e394b2c266b4de26f3831055f5e96 (patch) | |
tree | 08c1a602fea9a266c11920beb1a124d9c875b01d | |
parent | test sleep (diff) | |
download | arch-installer-ba7d1b25bf2e394b2c266b4de26f3831055f5e96.tar.gz arch-installer-ba7d1b25bf2e394b2c266b4de26f3831055f5e96.tar.bz2 arch-installer-ba7d1b25bf2e394b2c266b4de26f3831055f5e96.tar.xz arch-installer-ba7d1b25bf2e394b2c266b4de26f3831055f5e96.tar.zst arch-installer-ba7d1b25bf2e394b2c266b4de26f3831055f5e96.zip |
new partitioning model
Diffstat (limited to '')
-rwxr-xr-x | joes-arch-install-UEFI.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh index 77c5759..a13f4fc 100755 --- a/joes-arch-install-UEFI.sh +++ b/joes-arch-install-UEFI.sh @@ -353,32 +353,36 @@ echo && echo sleep 123 dd if=/dev/zero of="$drv" bs=512 count=1 sed -e 's/\s*\([\+0-9a-zA-Z \"=#()[]{}<>,:. - \_\/?!@$%^&~`*|]*\).*/\1/' << FDISK_INPUT | fdisk "$drv" -g # create a new GPT partition table +o # create a new DOS partition table n # new partition (/dev/sdx1) +p # primary 1 # partition number 1 # first sector (2048) +$btsze # boot size partition Y # YES n # new partition (/dev/sdx2) +p # primary 2 # partition number 2 # default start block +$swpsze # swap size partition Y # YES n # new partition (/dev/sdx3) +p # primary 3 # partition number 3 # default start block +$rtsze # root size partition Y # YES n # new partition (/dev/sdx4) +p # primary 4 # partition number 4 # default start block # all that remains t # change partition type 1 # part 1 -1 # EFI partition type +ef # EFI partition type t # change partition type 2 # partition number 2 -19 # swap partition type +82 # swap partition type w # write the partition table and quit FDISK_INPUT mkswap "$drv""2" |