Just can't get my head around this.
Using Razor to deploy UCS systems in a vBlock (onto UCS Blades) - RHEL6 works like a charm (ish), but RHEL 5 just doesn't want to play nicely.
I first had the problem that it couldn't format storage .. but that seems sorted - now it seems installing, but it doesn't actually boot into the OS.
(posting picture in a sec)
Maybe someone has a clue, but I am lost right now
Any help is appreciated. I haven't written this to begin with, just trying to fix it after the guy walked out.
install
url --url=<%= repo_url %>
key --skip
cmdline
lang en_US.UTF-8
keyboard us
network --onboot=yes --device=eth0 --bootproto=dhcp --hostname=localhost.localdomain
rootpw <%= node.root_password %>
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --disabled
timezone --utc Europe/Amsterdam
#bootloader --location=mbr --driveorder=sda
zerombr
clearpart --all --initlabel
part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1
part swap --recommended
bootloader --location=mbr
#reboot
#bootloader --location=mbr --driveorder=sda
#zerombr
##clearpart --all --initlabel
#part pv.008002 --grow --size=1
#part /boot --fstype=ext3 --size=512
#volgroup VolGroup --pesize=4096 pv.008002
#logvol / --fstype=ext3 --name=lv_root --vgname=VolGroup --grow --size=1024 --maxsize=1024
#logvol /opt --fstype=ext3 --name=lv_opt --vgname=VolGroup --grow --size=1024 --maxsize=1024
#logvol /tmp --fstype=ext3 --name=lv_tmp --vgname=VolGroup --grow --size=1024 --maxsize=1024
#logvol /var --fstype=ext3 --name=lv_var --vgname=VolGroup --grow --size=2048 --maxsize=2048
#logvol /var/log --fstype=ext3 --name=lv_vlog --vgname=VolGroup --grow --size=2048 --maxsize=2048
#logvol /usr --fstype=ext3 --name=lv_usr --vgname=VolGroup --grow --size=4096 --maxsize=4096
#logvol swap --name=lv_swap --vgname=VolGroup --grow --size=2048 --maxsize=2048
#logvol /home --fstype=ext3 --name=lv_home --vgname=VolGroup --grow --size=100
reboot
%packages --nobase
openssh-clients
openssh-server
dhclient
curl
yum
at
acpid
vixie-cron
crontabs
logrotate
ntp
rsync
which
wget
unzip
-postfix
-prelink
@core
#@GNOME Desktop Environment
%post
echo "Kickstart post"
curl -s -o /root/razor_postinstall.sh <%= file_url("post_install") %>
echo "Downloaded Post install"
# Run razor_postinstall.sh on next boot via rc.local
if [ ! -f /etc/rc.d/rc.local ]; then
# On systems using systemd /etc/rc.d/rc.local does not exist at all
# though systemd is set up to run the file if it exists
touch /etc/rc.d/rc.local
chmod a+x /etc/rc.d/rc.local
fi
echo bash /root/razor_postinstall.sh >> /etc/rc.d/rc.local
chmod +x /root/razor_postinstall.sh
cat <<BANNER-EOF > /etc/issue
####################################################################
# #
# This system is for the use of authorized users only. Individuals #
# using this computer system without authority, or in excess of #
# their authority, are subject to having all of their activities #
# on this system monitored and recorded by system personnel. #
# #
####################################################################
BANNER-EOF
##
#
# TCPWrappers
#
##
echo "sshd[IMG]https://us.v-cdn.net/6030959/uploads/images/smilies/allout.gif[/IMG]allow" >> /etc/hosts.allow
echo "all[IMG]https://us.v-cdn.net/6030959/uploads/images/smilies/allout.gif[/IMG]deny" >> /etc/hosts.allow
echo "all:all" >> /etc/hosts.deny
sed -i 's/#Port 22/Port 22/g' /etc/ssh/sshd_config
sed -i 's/#StrictModes yes/StrictModes yes/g' /etc/ssh/sshd_config
sed -i 's/#PermitTunnel no/PermitTunnel no/g' /etc/ssh/sshd_config
sed -i 's/#Banner none/Banner \/etc\/issue/g' /etc/ssh/sshd_config
sed -i 's/#PermitEmptyPasswords no/PermitEmptyPasswords no/g' /etc/ssh/sshd_config
##
##
# Set the correct run level
##
sed 's/id:5:initdefault:/id:3:initdefault:/' /etc/inittab
##
##
# Temp disable rhn warnings
##
touch /etc/sysconfig/rhn/systemid
#
#Disable SeLinux
#
sed -i "s/HOSTNAME=.*/SELINUX=disabled/g" /etc/sysconfig/selinux
curl -s <%= stage_done_url("kickstart") %>
echo "<%= stage_done_url("kickstart") %>"
sleep 10
%end
Edit: Now it is booting, what the heck .. more testing needed.