Update config.sh

This commit is contained in:
proledatarian 2022-02-12 15:36:07 +00:00
parent 8f1553ce94
commit 7c547a30f4
1 changed files with 3 additions and 23 deletions

View File

@ -1,26 +1,6 @@
#!/bin/bash #!/bin/bash
#PS3="Please select a disk to partition:" sh partition.sh
echo "Please select a disk to partition:"
IFS=$'\n' #wget https://gitlab.com/srtghn3657/simple-modern-and-secure-arch-linux-install/-/raw/master/00-keyboard.conf
disks=( $(lsblk -d | tail -n+2 | awk '{print $1" "$4}') ) #cp ./00-keyboard.conf /etc/X11/xorg.conf.d/00-keyboard.conf
declare -a disks
select disk in ${disks[*]}
do
echo "You have choosen $disk."
done
# Partitioning using sgdisk.
# Zap existing partition table:
sgdisk -Z /dev/sda
# Create 256M boot partition.
sgdisk -n 1:0:+256M /dev/sda
# Create system partition:
sgdisk -n 2:0:0 /dev/vda
wget https://gitlab.com/srtghn3657/simple-modern-and-secure-arch-linux-install/-/raw/master/00-keyboard.conf
cp ./00-keyboard.conf /etc/X11/xorg.conf.d/00-keyboard.conf