mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Update easy-arch.sh
This commit is contained in:
parent
60d702d827
commit
61617beb60
1 changed files with 1 additions and 6 deletions
|
|
@ -190,15 +190,12 @@ arch-chroot /mnt /bin/bash -e <<EOF
|
||||||
|
|
||||||
# Setting up clock.
|
# Setting up clock.
|
||||||
hwclock --systohc
|
hwclock --systohc
|
||||||
|
|
||||||
# Generating locales.
|
# Generating locales.
|
||||||
echo "Generating locales."
|
echo "Generating locales."
|
||||||
locale-gen &>/dev/null
|
locale-gen &>/dev/null
|
||||||
|
|
||||||
# Generating a new initramfs.
|
# Generating a new initramfs.
|
||||||
echo "Creating a new initramfs."
|
echo "Creating a new initramfs."
|
||||||
mkinitcpio -P &>/dev/null
|
mkinitcpio -P &>/dev/null
|
||||||
|
|
||||||
# Snapper configuration
|
# Snapper configuration
|
||||||
umount /.snapshots
|
umount /.snapshots
|
||||||
rm -r /.snapshots
|
rm -r /.snapshots
|
||||||
|
|
@ -207,7 +204,6 @@ arch-chroot /mnt /bin/bash -e <<EOF
|
||||||
mkdir /.snapshots
|
mkdir /.snapshots
|
||||||
mount -a
|
mount -a
|
||||||
chmod 750 /.snapshots
|
chmod 750 /.snapshots
|
||||||
|
|
||||||
# Installing GRUB.
|
# Installing GRUB.
|
||||||
echo "Installing GRUB on /boot."
|
echo "Installing GRUB on /boot."
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=GRUB &>/dev/null
|
grub-install --target=x86_64-efi --efi-directory=/boot/ --bootloader-id=GRUB &>/dev/null
|
||||||
|
|
@ -215,7 +211,6 @@ arch-chroot /mnt /bin/bash -e <<EOF
|
||||||
# Creating grub config file.
|
# Creating grub config file.
|
||||||
echo "Creating GRUB config file."
|
echo "Creating GRUB config file."
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
|
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
|
||||||
|
|
||||||
# Adding user with sudo privilege
|
# Adding user with sudo privilege
|
||||||
if [ -n "$username" ]; then
|
if [ -n "$username" ]; then
|
||||||
echo "Adding $username with root privilege."
|
echo "Adding $username with root privilege."
|
||||||
|
|
@ -228,7 +223,7 @@ EOF
|
||||||
# Setting root password.
|
# Setting root password.
|
||||||
echo "Setting root password."
|
echo "Setting root password."
|
||||||
arch-chroot /mnt /bin/passwd
|
arch-chroot /mnt /bin/passwd
|
||||||
[ -n "$username" ] && echo "Setting user password for ${username}." && arch-chroot /mnt /bin/passwd $username
|
[ -n "$username" ] && echo "Setting user password for ${username}." && arch-chroot /mnt /bin/passwd "$username"
|
||||||
|
|
||||||
# Enabling Reflector timer.
|
# Enabling Reflector timer.
|
||||||
echo "Enabling Reflector."
|
echo "Enabling Reflector."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue