Update/set root password in auto-install | pressku.com

Trending 3 months ago

I request to group nan guidelines password successful nan autoinstall arsenic it allows maine to cheque nan strategy by logging into nan console aft installation. Unfortunately, this doesn't look to work, and I person nan following:

#cloud-config users: - name: root lock_passwd: false hashed_passwd: <output from mkpasswd --method=SHA-512>

I moreover tried utilizing late-commands run-command sections pinch chpasswd commands for illustration nan following, but it didn't work

chroot /target sh -c 'echo "root:<output from mkpasswd --method=SHA-512>" | /usr/sbin/chpasswd -e'

Is it imaginable to alteration nan guidelines password utilizing auto-install? If so, I would admit immoderate assistance. Thanks

More
close