Merge "Fix openssl passwd args for initial password change"
This commit is contained in:
commit
7d7547f97d
@ -435,7 +435,7 @@ fi
|
||||
|
||||
if [ -n "${INITIAL_PASSWORD}" ]; then
|
||||
ilog "Patching kickstart.cfg for custom default password"
|
||||
sed -i.bak 's@sudo --password 4SuW8cnXFyxsk@sudo --password 4SuW8cnXFyxsk; echo "sysadmin:'"$(openssl passwd --crypt "$INITIAL_PASSWORD")"'" | chpasswd -e@' "${BUILDDIR}/kickstart/kickstart.cfg"
|
||||
sed -i.bak 's@sudo --password 4SuW8cnXFyxsk@sudo --password 4SuW8cnXFyxsk; echo "sysadmin:'"$(openssl passwd -quiet -crypt "$INITIAL_PASSWORD")"'" | chpasswd -e@' "${BUILDDIR}/kickstart/kickstart.cfg"
|
||||
fi
|
||||
|
||||
unmount_efiboot_img
|
||||
|
Loading…
x
Reference in New Issue
Block a user