I am having issues using sed injecting a password into the grub.conf file.
Here is the syntax I am using:
sed -i /^timeout/s/$/"\npassword -md5 $1$ctuLL1$V4DZinO.4eTYjsGXOfU1F/" /boot/grub/grub.conf
Grub MD5:
$1$ctuLL1$V4DZinO.4eTYjsGXOfU1F/
Thanks for looking!
What I used seems to be working:
It is how I'm injecting a password during cobbler provisioning.
Obviously, you'll have to escape any special characters in the MD5 hash otherwise
sed
will complain.