summaryrefslogtreecommitdiff
path: root/arch-magik.sh
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2024-09-18 18:54:04 +0530
committerSaumit <justsaumit@protonmail.com>2024-09-18 18:54:04 +0530
commit687f81bc8bb581d166d8cdb3aa602b74133257ef (patch)
tree0325724464ca3988041e3eab41ff060759e31f36 /arch-magik.sh
parentd2f043d55e88f7fd83714bc722897e995139fc77 (diff)
Enhance user guidance with warnings
Diffstat (limited to 'arch-magik.sh')
-rwxr-xr-xarch-magik.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch-magik.sh b/arch-magik.sh
index 42f82cf..7de37df 100755
--- a/arch-magik.sh
+++ b/arch-magik.sh
@@ -7,6 +7,7 @@
#part1
printf '\033c'
echo "Welcome to Saumit's arch installer and ricing bootstraping script"
+echo "This script is to be run in a live iso environment. \nFor Ricing/Bootstraping refer to the part2 and part3 of this script"
# For faster overall Download of packages
sed -i "s/^#ParallelDownloads = 5$/ParallelDownloads = 15/" /etc/pacman.conf
@@ -24,15 +25,18 @@ pacman --noconfirm -Sy archlinux-keyring
loadkeys us
timedatectl set-ntp true
lsblk
-echo "Enter the drive for partitioning: (cfdisk /dev/sda or /dev/nvme0n1)"
+echo "WARNING: The following operations will FORMAT your drive. Please be very careful!"
+echo "Ensure you have backups of any important data before proceeding."
+echo "Enter the drive for partitioning: (e.g. /dev/sda or /dev/nvme0n1)"
+lsblk -d
read drive
cfdisk $drive
lsblk
echo "Enter EFI partition: "
read efipartition
mkfs.vfat -F 32 $efipartition
-read -p "Did you also create a swap partition? [y/n]" answer
-if [[ $answer = y ]] ; then
+read -p "Did you also create a swap partition? [y/n]" answerswap
+if [[ $answerswap = y ]] ; then
echo "Enter the swap partition: "
read swappartition
mkswap $swappartition