Fixing keyring issues with the base keyring; making sure depriv has a home folder; enable sshd
This commit is contained in:
@@ -60,9 +60,13 @@ if [ "$answer" != "YES" ]; then
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Sync the keys
|
||||||
|
pacman-key --init
|
||||||
|
pacman-key --populate
|
||||||
|
pacman -Sy archlinux-keyring
|
||||||
|
|
||||||
umount /mnt/boot; umount /mnt
|
umount /mnt/boot; umount /mnt
|
||||||
|
|
||||||
pacman -Syy
|
|
||||||
if [ -z "$nodiskbuild" ]; then
|
if [ -z "$nodiskbuild" ]; then
|
||||||
header Allocating space
|
header Allocating space
|
||||||
dd if=/dev/zero of="$disk" bs=1M count=1000
|
dd if=/dev/zero of="$disk" bs=1M count=1000
|
||||||
@@ -192,12 +196,13 @@ fi
|
|||||||
|
|
||||||
# Set password
|
# Set password
|
||||||
header Set new root passphrase and depriviledged user '(depriv)' 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
|
||||||
arch-chroot /mnt passwd depriv
|
arch-chroot /mnt passwd depriv
|
||||||
|
|
||||||
# Set SSH host keys
|
# Set SSH host keys
|
||||||
arch-chroot /mnt ssh-keygen -A
|
arch-chroot /mnt ssh-keygen -A
|
||||||
|
arch-chroot /mnt systemctl enable sshd
|
||||||
|
|
||||||
# Set hostname
|
# Set hostname
|
||||||
header Set hostname
|
header Set hostname
|
||||||
|
|||||||
Reference in New Issue
Block a user