Skip to content

Instantly share code, notes, and snippets.

@e-minguez
Created January 14, 2014 13:50
Show Gist options
  • Save e-minguez/8418567 to your computer and use it in GitHub Desktop.
Save e-minguez/8418567 to your computer and use it in GitHub Desktop.
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