Skip to content

Instantly share code, notes, and snippets.

@jrh-spg
Created August 17, 2018 01:51
Show Gist options
  • Save jrh-spg/eaab52619bba311e435a947673ccdedb to your computer and use it in GitHub Desktop.
Save jrh-spg/eaab52619bba311e435a947673ccdedb to your computer and use it in GitHub Desktop.
while [ "$hn" == "" ]; do
clear
read -p "Hostname: " hn
done
clear
echo "network --device eth0 --bootproto=dhcp --hostname ${hn}" > /tmp/network.ks
pw=""
while [ "$pw" == "" ]; do
clear
read -p "Password: " pw
done
clear
chvt 1
echo "raid pv.01 --device=1 --fstype=\"physical volume (LVM)\" --level=1 --encrypted --passphrase=\"$pw\" raid.11 raid.12" > /tmp/password.ks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment