ISO/configs/releng/airootfs/root/customize_airootfs.sh
2020-07-11 16:31:18 +03:00

15 lines
306 B
Bash
Executable File

#!/usr/bin/env bash
set -e -u
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
locale-gen
usermod -s /usr/bin/zsh root
cp -aT /etc/skel/ /root/
# unset the root password
passwd -d root
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist