I need to set the root password in the autoinstall as it allows me to check the system by logging into the console after installation. Unfortunately, this doesn't seem to work, and I have the following:
#cloud-configusers: - name: root lock_passwd: false hashed_passwd: <output from mkpasswd --method=SHA-512>
I even tried using late-commands
run-command
sections with chpasswd commands like the following, but it didn't work
chroot /target sh -c 'echo "root:<output from mkpasswd --method=SHA-512>" | /usr/sbin/chpasswd -e'
Is it possible to change the root password using auto-install? If so, I would appreciate any assistance. Thanks