ISO/configs/releng/airootfs/root/customize_airootfs.sh

15 lines
306 B
Bash
Raw Normal View History

2020-07-11 10:42:57 +02:00
#!/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