DEAL WITH IT

Signed-off-by: RouxAntoine <antoinroux@hotmail.fr>
This commit is contained in:
RouxAntoine 2024-01-05 19:29:30 +01:00
parent 9d2c64daab
commit 0c7175284b
Signed by: antoine
GPG Key ID: 098FB66FC0475E70

View File

@ -17,7 +17,7 @@ mkdir -p $DISK_ROOT
sudo mount $DISK_FILE $DISK_ROOT sudo mount $DISK_FILE $DISK_ROOT
sudo pacstrap -c $DISK_ROOT bash filesystem systemd-sysvcompat pacman iproute2 git sudo pacstrap -c $DISK_ROOT bash filesystem systemd-sysvcompat pacman iproute2 openssh git vim
echo "nameserver 1.1.1.1" | sudo tee $DISK_ROOT/etc/resolv.conf echo "nameserver 1.1.1.1" | sudo tee $DISK_ROOT/etc/resolv.conf
@ -39,9 +39,14 @@ EOF
sudo ln -s /etc/systemd/system/internal-network.service $DISK_ROOT/etc/systemd/system/multi-user.target.wants/ sudo ln -s /etc/systemd/system/internal-network.service $DISK_ROOT/etc/systemd/system/multi-user.target.wants/
sudo ln -s /usr/lib/systemd/system/sshd.service $DISK_ROOT/etc/systemd/system/multi-user.target.wants/ sudo ln -s /usr/lib/systemd/system/sshd.service $DISK_ROOT/etc/systemd/system/multi-user.target.wants/
# allow root login with empty password, unsafe !
sudo tee $DISK_ROOT/etc/ssh/sshd_config.d/98-archlinux.conf <<-'EOF'
PermitEmptyPasswords yes
PermitRootLogin yes
EOF
# Remove default (locked) root password # Remove default (locked) root password
# See https://github.com/archlinux/svntogit-packages/commit/0320c909f3867d47576083e853543bab1705185b # See https://github.com/archlinux/svntogit-packages/commit/0320c909f3867d47576083e853543bab1705185b
sudo sed 's/^root:.*/root::14871::::::/' -i $DISK_ROOT/etc/shadow sudo sed 's/^root:.*/root::14871::::::/' -i $DISK_ROOT/etc/shadow
sudo umount $DISK_ROOT sudo umount $DISK_ROOT