Created
January 14, 2014 13:50
-
-
Save e-minguez/8418567 to your computer and use it in GitHub Desktop.
set root password for kickstart installation with ksmeta "password_root" parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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