summaryrefslogtreecommitdiffstats
path: root/arch-install/arch-setup-0.sh
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2021-08-23 18:04:53 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2021-08-23 18:08:11 +0200
commit0ed5b8f5815b90958546cab28d30ba8f2e5a780c (patch)
treefd35fcfed0ee79207f70723b4a23a1453c3004fb /arch-install/arch-setup-0.sh
parente3d5a59dcab323b40b836ce4f965080eca407319 (diff)
downloadbin-0ed5b8f5815b90958546cab28d30ba8f2e5a780c.zip
bin-0ed5b8f5815b90958546cab28d30ba8f2e5a780c.tar.gz
arch-setup-0.sh : fix DEV in mkfs
Diffstat (limited to 'arch-install/arch-setup-0.sh')
-rwxr-xr-xarch-install/arch-setup-0.sh14
1 files changed, 4 insertions, 10 deletions
diff --git a/arch-install/arch-setup-0.sh b/arch-install/arch-setup-0.sh
index 80a2899..42c9345 100755
--- a/arch-install/arch-setup-0.sh
+++ b/arch-install/arch-setup-0.sh
@@ -1,9 +1,6 @@
#! /bin/bash
-echo "you must first edit :"
-echo " /dev/sda[0-9]"
-echo " SGDISK"
-exit 1
+DEV=/dev/sda
function say()
{
@@ -27,7 +24,6 @@ echo "UEFI VARS : $VARS"
# to retreive size info $ sgdisk -p $DEV
# N sectors * 512 / 1024 / 1024 / 1024 -> Gb
say "SGDISK"
-DEV=/dev/sda
sgdisk -og $DEV || exit 1
sgdisk -n 1:2048:264191 -c 1:efi -t 1:ef02 $DEV || exit 1
sgdisk -n 2:264192:209979391 -c 2:rootfs -t 2:8300 $DEV || exit 1
@@ -36,11 +32,9 @@ sgdisk -n 3:209979392 -c 3:homefs -t 3:8300 $DEV || exit 1
sgdisk -p $DEV || exit 1
say "MKFS"
-mkfs.fat -F32 /dev/${DEV}1 || exit 1
-mkfs.ext4 -L root /dev/${DEV}2 || exit 1
-mkfs.ext4 -L home /dev/${DEV}3 || exit 1
-#mkswap /dev/${DEV}4
-#swapon
+mkfs.fat -F32 ${DEV}1 || exit 1
+mkfs.ext4 -L root ${DEV}2 || exit 1
+mkfs.ext4 -L home ${DEV}3 || exit 1
parted $DEV set 1 bios_grub on
say "MOUNT"