mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-09 20:21:34 -05:00
Snapper configuration.
This commit is contained in:
parent
08005bc6ae
commit
b343cf3970
14
easy-arch.sh
14
easy-arch.sh
@ -91,11 +91,11 @@ echo $hostname > /mnt/etc/hostname
|
|||||||
# Setting up locales.
|
# Setting up locales.
|
||||||
read -r -p "Please insert the locale you use in this format (xx_XX): " locale
|
read -r -p "Please insert the locale you use in this format (xx_XX): " locale
|
||||||
echo "$locale.UTF-8 UTF-8" > /mnt/etc/locale.gen
|
echo "$locale.UTF-8 UTF-8" > /mnt/etc/locale.gen
|
||||||
echo "LANG=\"$locale\"" > /mnt/etc/locale.conf
|
echo "LANG=\"$locale\".UTF-8" > /mnt/etc/locale.conf
|
||||||
|
|
||||||
# Setting up keyboard layout.
|
# Setting up keyboard layout.
|
||||||
read -r -p "Please insert the keyboard layout you use: " kblayout
|
read -r -p "Please insert the keyboard layout you use: " kblayout
|
||||||
echo "KEYMAP=\"$kblayout\"" > /mnt/etc/vconsole.conf
|
echo "KEYMAP=\$kblayout\"" > /mnt/etc/vconsole.conf
|
||||||
|
|
||||||
# Setting hosts file.
|
# Setting hosts file.
|
||||||
echo "Setting hosts file."
|
echo "Setting hosts file."
|
||||||
@ -154,6 +154,11 @@ arch-chroot /mnt /bin/bash -e <<"EOF"
|
|||||||
echo "Creating a new initramfs."
|
echo "Creating a new initramfs."
|
||||||
mkinitcpio -P &>/dev/null
|
mkinitcpio -P &>/dev/null
|
||||||
|
|
||||||
|
# Snapper configuration
|
||||||
|
umount /.snapshots
|
||||||
|
rm -r /.snapshots
|
||||||
|
snapper -c root create-config /
|
||||||
|
|
||||||
# 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
|
||||||
@ -176,6 +181,11 @@ systemctl enable fstrim.timer --root=/mnt &>/dev/null
|
|||||||
echo "Enabling NetworkManager."
|
echo "Enabling NetworkManager."
|
||||||
systemctl enable NetworkManager --root=/mnt &>/dev/null
|
systemctl enable NetworkManager --root=/mnt &>/dev/null
|
||||||
|
|
||||||
|
# Enabling Snapper.
|
||||||
|
echo "Enabling Snapper."
|
||||||
|
systemctl enable snapper-timeline.timer --root=/mnt &>/dev/null
|
||||||
|
systemctl enable snapper-cleanup.timer --root=/mnt &>/dev/null
|
||||||
|
|
||||||
# Unmounting partitions.
|
# Unmounting partitions.
|
||||||
echo "Unmounting /mnt."
|
echo "Unmounting /mnt."
|
||||||
umount -R /mnt
|
umount -R /mnt
|
||||||
|
Loading…
Reference in New Issue
Block a user