Skip to content

Commit

Permalink
manual prompt part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
h-lunah authored Nov 27, 2022
1 parent 6ab132d commit 02106c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions trolley-arch.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
BLK=$(lsblk | sed -n '2p' | awk '{print $1}')
DEV="/dev/$BLK"
lsblk
echo Please enter the device name to use...
read DEV

# ask for hostname
read -p "Please enter a hostname to use: " HOSTNAME
Expand Down Expand Up @@ -34,5 +35,5 @@ echo $HOSTNAME >> /mnt/etc/hostname
genfstab -U /mnt >> /mnt/etc/fstab
# perform chroot tasks
cp ./trolley-arch-chroot.sh /mnt
arch-chroot /mnt ./trolley-arch-chroot.sh
arch-chroot /mnt ./trolley-arch-chroot.sh $DEV
echo "You have successfully installed Arch Linux on your computer. You may now reboot."

0 comments on commit 02106c5

Please sign in to comment.