mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 11:30:55 +00:00
delete tab character and trailing whitespace
accidentally used a literal tab for when defining a color instead of 4 spaces
This commit is contained in:
parent
f281da1821
commit
804c2ca509
1 changed files with 11 additions and 11 deletions
22
easy-arch.sh
22
easy-arch.sh
|
|
@ -8,7 +8,7 @@ clear
|
|||
UNDERLINE='\e[4m'
|
||||
RESET='\e[0m' # Reset text to default appearance
|
||||
# High intensity colors:
|
||||
BRED='\e[91m'
|
||||
BRED='\e[91m'
|
||||
BGREEN='\e[92m'
|
||||
BYELLOW='\e[93m'
|
||||
BPURPLE='\e[95m'
|
||||
|
|
@ -57,7 +57,7 @@ virt_check () {
|
|||
esac
|
||||
}
|
||||
|
||||
# Selecting a kernel to install (function).
|
||||
# Selecting a kernel to install (function).
|
||||
kernel_selector () {
|
||||
print "List of kernels:"
|
||||
print "1) Stable: Vanilla Linux kernel with a few specific Arch Linux patches applied"
|
||||
|
|
@ -79,7 +79,7 @@ kernel_selector () {
|
|||
esac
|
||||
}
|
||||
|
||||
# Selecting a way to handle internet connection (function).
|
||||
# Selecting a way to handle internet connection (function).
|
||||
network_selector () {
|
||||
print "Network utilities:"
|
||||
print "1) IWD: iNet wireless daemon is a wireless daemon for Linux written by Intel (WiFi-only)"
|
||||
|
|
@ -232,7 +232,7 @@ keyboard_selector () {
|
|||
loadkeys $kblayout
|
||||
return 0
|
||||
esac
|
||||
|
||||
|
||||
}
|
||||
|
||||
# Selecting the target for the installation.
|
||||
|
|
@ -378,25 +378,25 @@ print "Setting up grub config."
|
|||
UUID=$(blkid -s UUID -o value $CRYPTROOT)
|
||||
sed -i "s,^GRUB_CMDLINE_LINUX=\",&rd.luks.name=$UUID=cryptroot root=$BTRFS\",g" /mnt/etc/default/grub
|
||||
|
||||
# Configuring the system.
|
||||
# Configuring the system.
|
||||
arch-chroot /mnt /bin/bash -e <<EOF
|
||||
|
||||
# Setting up timezone.
|
||||
echo "Setting up the timezone."
|
||||
ln -sf /usr/share/zoneinfo/$(curl -s http://ip-api.com/line?fields=timezone) /etc/localtime &>/dev/null
|
||||
|
||||
|
||||
# Setting up clock.
|
||||
echo "Setting up the system clock."
|
||||
hwclock --systohc
|
||||
|
||||
|
||||
# Generating locales.
|
||||
echo "Generating locales."
|
||||
locale-gen &>/dev/null
|
||||
|
||||
|
||||
# Generating a new initramfs.
|
||||
echo "Creating a new initramfs."
|
||||
mkinitcpio -P &>/dev/null
|
||||
|
||||
|
||||
# Snapper configuration
|
||||
echo "Configuring Snapper."
|
||||
umount /.snapshots
|
||||
|
|
@ -406,7 +406,7 @@ arch-chroot /mnt /bin/bash -e <<EOF
|
|||
mkdir /.snapshots
|
||||
mount -a
|
||||
chmod 750 /.snapshots
|
||||
|
||||
|
||||
# Installing GRUB.
|
||||
echo "Installing GRUB on /boot."
|
||||
grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=GRUB &>/dev/null
|
||||
|
|
@ -426,7 +426,7 @@ if [ -n "$username" ]; then
|
|||
print "Adding the user $username to the system with root privilege."
|
||||
arch-chroot /mnt useradd -m -G wheel -s /bin/bash "$username"
|
||||
sed -i '/%wheel ALL=(ALL) ALL/s/^# //' /mnt/etc/sudoers
|
||||
print "Setting user password for $username."
|
||||
print "Setting user password for $username."
|
||||
echo "$username:$userpass" | arch-chroot /mnt chpasswd
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue