Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
set root password for kickstart installation with ksmeta "password_root" parameter
#from crypt import crypt
#set $rpwd = $getVar('$password_root', None)
#if $rpwd
#set $rootpassword = crypt($rpwd, "$1$salt")
sed -i -e 's#^rootpw.*#rootpw --iscrypted $rootpassword#g' /tmp/ks.cfg
#end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.