Skip to content

Commit

Permalink
Use regular echo inside of arch-chroot
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy <[email protected]>
  • Loading branch information
TommyTran732 committed Jun 2, 2024
1 parent e75067a commit 7cb72e3
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,6 @@ fi
## Configuring the system.
arch-chroot /mnt /bin/bash -e <<EOF
output(){
echo -e '\e[36m'"$1"'\e[0m';
}
# Setting up timezone.
# Temporarily hardcoding here
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime &>/dev/null
Expand All @@ -523,27 +519,27 @@ arch-chroot /mnt /bin/bash -e <<EOF
hwclock --systohc
# Generating locales.my keys aren't even on
output "Generating locales."
echo "Generating locales."
locale-gen
# Create SecureBoot keys. This isn't strictly necessary, but certain things like linux-hardened preset expects it and mkinitcpio will fail without it, sooo...
sbctl create-keys
# Generating a new initramfs.
output "Creating a new initramfs."
echo "Creating a new initramfs."
chmod 600 /boot/initramfs-linux*
mkinitcpio -P
# Installing GRUB.
output "Installing GRUB on /boot."
echo "Installing GRUB on /boot."
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
# Creating grub config file.
output "Creating GRUB config file."
echo "Creating GRUB config file."
grub-mkconfig -o /boot/grub/grub.cfg
# Adding user with sudo privilege
output "Adding $username with root privilege."
echo "Adding $username with root privilege."
useradd -m $username
usermod -aG wheel $username
Expand Down

0 comments on commit 7cb72e3

Please sign in to comment.