aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-11-16 22:13:20 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-11-16 22:13:20 +0100
commitb4c57b40b01fbf5fc7fd4dec952e167346c54a2a (patch)
treeb112f89dd401e6024d1b2dbe5698b734cfb20232
parentRenamed main script (diff)
downloadarch-installer-b4c57b40b01fbf5fc7fd4dec952e167346c54a2a.tar.gz
arch-installer-b4c57b40b01fbf5fc7fd4dec952e167346c54a2a.tar.bz2
arch-installer-b4c57b40b01fbf5fc7fd4dec952e167346c54a2a.tar.xz
arch-installer-b4c57b40b01fbf5fc7fd4dec952e167346c54a2a.tar.zst
arch-installer-b4c57b40b01fbf5fc7fd4dec952e167346c54a2a.zip
Better formulation
-rwxr-xr-xjoes-arch-install-UEFI.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/joes-arch-install-UEFI.sh b/joes-arch-install-UEFI.sh
index 34ed2c9..291b75b 100755
--- a/joes-arch-install-UEFI.sh
+++ b/joes-arch-install-UEFI.sh
@@ -351,7 +351,7 @@ echo "# #"
echo "#=================================#"
echo && echo
dd if=/dev/zero of="$drv" bs=512 count=1
-sed -e 's/\s*\([\+0-9a-zA-Z \"=#()[]{}<>,:. - \_\/?!@$%^&~`*|]*\).*/\1/' << EOF | fdisk "$drv"
+sed -e 's/\s*\([\+0-9a-zA-Z \"=#()[]{}<>,:. - \_\/?!@$%^&~`*|]*\).*/\1/' << FDISK_INPUT | fdisk "$drv"
g # create a new GPT partition table
n # new partition (/dev/sdx1)
1 # partition number 1
@@ -379,7 +379,7 @@ t # change partition type
2 # partition number 2
19 # swap partition type
w # write the partition table and quit
-EOF
+FDISK_INPUT
mkswap "$drv""2"
mkfs.fat -F32 "$drv""1"
mkfs.ext4 "$drv""3"
@@ -433,7 +433,7 @@ echo "# 1. Now changing root #"
echo "# #"
echo "#=================================#"
sleep 2
-sed -e 's/\s*\([\+0-9a-zA-Z \"=#()[]{}<>,:. - \_\/?!@$%^&~`*|]*\).*/\1/' << EOF | arch-chroot /mnt/arch
+arch-chroot /mnt/arch << ARCH_CHROOT
clear
#===== V. CONFIGURING LINUX ======#
# #
@@ -501,7 +501,7 @@ sed -e 's/\s*\([\+0-9a-zA-Z \"=#()[]{}<>,:. - \_\/?!@$%^&~`*|]*\).*/\1/' << EOF
#=================================#
pacman -S networkmanager
Y
-EOF
+ARCH_CHROOT
sed -e 's/\s*\([\+0-9a-zA-Z \"=#()[]{}<>,:. - \_\/?!@$%^&~`*|]*\).*/\1/' << EOF | arch-chroot /mnt/arch
systemctl enable NetworkManager
sleep 2