From a2dfe97f4244513917b08b538ad1a0db60ae4804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 12 Feb 2021 16:19:18 +0100 Subject: arch-setup : use DEV --- arch-install/arch-setup-0.sh | 16 ++++++++-------- arch-install/arch-setup-1.sh | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/arch-install/arch-setup-0.sh b/arch-install/arch-setup-0.sh index 3ca3912..80a2899 100755 --- a/arch-install/arch-setup-0.sh +++ b/arch-install/arch-setup-0.sh @@ -36,19 +36,19 @@ sgdisk -n 3:209979392 -c 3:homefs -t 3:8300 $DEV || exit 1 sgdisk -p $DEV || exit 1 say "MKFS" -mkfs.fat -F32 /dev/sda1 || exit 1 -mkfs.ext4 -L root /dev/sda2 || exit 1 -mkfs.ext4 -L home /dev/sda3 || exit 1 -#mkswap /dev/sda4 +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 -parted /dev/sda set 1 bios_grub on +parted $DEV set 1 bios_grub on say "MOUNT" -mount /dev/sda2 /mnt +mount /dev/${DEV}2 /mnt mkdir /mnt/boot -mount /dev/sda1 /mnt/boot +mount /dev/${DEV}1 /mnt/boot mkdir /mnt/home -mount /dev/sda3 /mnt/home +mount /dev/${DEV}3 /mnt/home say "SWAPFS" dd if=/dev/zero of=/mnt/swapfile bs=1M count=512 || exit 1 diff --git a/arch-install/arch-setup-1.sh b/arch-install/arch-setup-1.sh index fce95d1..80baf04 100755 --- a/arch-install/arch-setup-1.sh +++ b/arch-install/arch-setup-1.sh @@ -20,3 +20,5 @@ echo "GRUB" #grub-install --target=i386-pc --recheck /dev/sda grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub_uefi --recheck grub-mkconfig -o /boot/grub/grub.cfg + +echo " !!! set your root password !!!" -- cgit v1.1-2-g2b99