1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-09-19 15:14:43 -04:00

Compare commits

..

No commits in common. "7018a7945f1d12d07a179f11584b6841668d0b9d" and "f4655b87cfdee0e7c0b0ce05a05946f71d4ac030" have entirely different histories.

View File

@ -505,36 +505,41 @@ fi
## Configuring the system. ## Configuring the system.
arch-chroot /mnt /bin/bash -e <<EOF arch-chroot /mnt /bin/bash -e <<EOF
# Setting up timezone # Setting up timezone.
# Temporarily hardcoding here # Temporarily hardcoding here
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
# Setting up clock # Setting up clock.
hwclock --systohc hwclock --systohc
# Generating locales # Generating locales.my keys aren't even on
echo 'Generating locales.'
locale-gen locale-gen
# Create SecureBoot keys # Create SecureBoot keys. This isn't strictly necessary, but certain things like linux-hardened preset expects it and mkinitcpio will fail without it, sooo...
# This isn't strictly necessary, but linux-hardened preset expects it and mkinitcpio will fail without it
sbctl create-keys sbctl create-keys
# Generating a new initramfs # Generating a new initramfs.
echo 'Creating a new initramfs.'
chmod 600 /boot/initramfs-linux* chmod 600 /boot/initramfs-linux*
mkinitcpio -P mkinitcpio -P
# Installing GRUB # Installing GRUB.
echo "Installing GRUB on /boot."
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock
# Creating grub config file # Creating grub config file.
echo "Creating GRUB config file."
grub-mkconfig -o /boot/grub/grub.cfg grub-mkconfig -o /boot/grub/grub.cfg
# Adding user with sudo privilege # Adding user with sudo privilege
echo 'Adding $username with root privilege.'
useradd -m $username useradd -m $username
usermod -aG wheel $username usermod -aG wheel $username
if [ "${install_mode}" = 'desktop' ]; then if [ "${install_mode}" = 'desktop' ]; then
# Setting up dconf # Setting up dconf
echo 'Setting up dconf.'
dconf update dconf update
fi fi
@ -543,6 +548,7 @@ arch-chroot /mnt /bin/bash -e <<EOF
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
# Snapper configuration # Snapper configuration
echo 'Configuring Snapper.'
umount /.snapshots umount /.snapshots
rm -r /.snapshots rm -r /.snapshots
snapper --no-dbus -c root create-config / snapper --no-dbus -c root create-config /