Fixing keyring issues with the base keyring; making sure depriv has a home folder; enable sshd

This commit is contained in:
2026-06-29 14:12:22 -05:00
parent 38e55047b5
commit bec54c5efb

View File

@@ -60,9 +60,13 @@ if [ "$answer" != "YES" ]; then
exit 1;
fi
# Sync the keys
pacman-key --init
pacman-key --populate
pacman -Sy archlinux-keyring
umount /mnt/boot; umount /mnt
pacman -Syy
if [ -z "$nodiskbuild" ]; then
header Allocating space
dd if=/dev/zero of="$disk" bs=1M count=1000
@@ -192,12 +196,13 @@ fi
# Set password
header Set new root passphrase and depriviledged user '(depriv)' password.
arch-chroot /mnt useradd depriv
arch-chroot /mnt useradd -m depriv
arch-chroot /mnt passwd
arch-chroot /mnt passwd depriv
# Set SSH host keys
arch-chroot /mnt ssh-keygen -A
arch-chroot /mnt systemctl enable sshd
# Set hostname
header Set hostname