install btrfs-progs early for fsck.btrfs

This commit is contained in:
sundog 2020-08-01 17:22:27 +00:00
parent 5d9a520433
commit c4e306994d

View file

@ -1,56 +1,59 @@
# Arch Linux Finalization # Arch Linux Finalization
By default Arch Linux has very little software installed and even less configuration complete. By default Arch Linux has very little software installed and even less configuration complete.
The following commands will finalize the fundamental Arch Linux setup and perform some mild tuning. The following commands will finalize the fundamental Arch Linux setup and perform some mild tuning.
``` sh ``` sh
# login as root with password root # login as root with password root
# Initialize pacman # Initialize pacman
pacman-key --init pacman-key --init
pacman-key --populate archlinuxarm pacman-key --populate archlinuxarm
# Update system to latest software # Update system to latest software
pacman -Syy pacman -Syy
pacman -Su pacman -Su
systemctl reboot # Install btrfs-progs
pacman -S btrfs-progs
# Remove arch linux on arm default user # Reboot
userdel alarm systemctl reboot
# Set root password # Remove arch linux on arm default user
passwd userdel alarm
# Turn on colorized pacman output # Set root password
sed -i 's/#Color/Color/' /etc/pacman.conf # Add color to pacman passwd
# Install fundamental tools # Turn on colorized pacman output
pacman -S openssh tmux nano vim htop iotop nload python python-pip wget curl git bash-completion p7zip exfat-utils man-db man-pages btrfs-progs sudo sed -i 's/#Color/Color/' /etc/pacman.conf # Add color to pacman
# Tweak sshd to allow root login # Install fundamental tools
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config pacman -S openssh tmux nano vim htop iotop nload python python-pip wget curl git bash-completion p7zip exfat-utils man-db man-pages btrfs-progs sudo
systemctl enable --now sshd
systemctl restart sshd # Tweak sshd to allow root login
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config
# Finalize localiztation settings systemctl enable --now sshd
ln -sf /usr/share/zoneinfo/UTC /etc/localtime systemctl restart sshd
timedatectl set-local-rtc 0
timedatectl set-ntp true # Finalize localiztation settings
echo LANG=en_US.UTF-8 > /etc/locale.conf ln -sf /usr/share/zoneinfo/UTC /etc/localtime
sed -i "s/#en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen timedatectl set-local-rtc 0
locale-gen timedatectl set-ntp true
echo LANG=en_US.UTF-8 > /etc/locale.conf
# Finalize basic network config sed -i "s/#en_US.UTF-8/en_US.UTF-8/" /etc/locale.gen
nano -w /etc/hostname locale-gen
nano -w /etc/hosts
# Finalize basic network config
# Turn off kernel audit logging nano -w /etc/hostname
nano -w /boot/cmdline.txt nano -w /etc/hosts
add audit=0 at end of cmdline
# Turn off kernel audit logging
# Reboot system for all changes to take effect nano -w /boot/cmdline.txt
systemctl reboot add audit=0 at end of cmdline
# Reboot system for all changes to take effect
systemctl reboot
``` ```