Red Hat SATELLITE 5.3.0 RELEASE NOTES Technické informace Strana 36

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 199
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 35
# # copy the entire content onto the created machine
# mkdir /mnt/sysimage/root/distro
# (cd /mnt/source; tar -cf - . ) | (cd /mnt/sysimage/root/distro; tar -xpf -)
) 2>&1 | tee /mnt/sysimage/root/ks_post.log
%post
(
#set the time from a server, then use this to set the hwclock. Enable ntp
/usr/sbin/ntpdate -bu 10.16.255.2
hwclock --systohc
chkconfig ntpd on
cat <<EOF>/etc/ntp.conf
restrict default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
server 10.16.255.2
server 10.16.255.3
EOF
#register the machine with RHN so latest versions can be made available
rhnreg_ks --profilename=mgmt2.cloud.lab.eng.bos.redhat.com --username=milo
--password=<password>
#prepare to export the software distribution to install the satellite system
echo "/root/distro *(ro)" > /etc/exports
chkconfig nfs on
#prepare iptables
/bin/cp /etc/sysconfig/iptables /tmp/iptables
/usr/bin/head -n -2 /tmp/iptables > /etc/sysconfig/iptables
/bin/echo "-A RH-Firewall-1-INPUT -m physdev --physdev-is-bridged -j ACCEPT" >>
/etc/sysconfig/iptables
/usr/bin/tail -2 /tmp/iptables >> /etc/sysconfig/iptables
# Convert the public network in a bridge named cloud0
/root/distro/resources/cvt_br.sh eth0 cloud0
# Put a reasonable resolv.conf in place
#/bin/cp /etc/resolv.conf /etc/resolv.conf.orig
#/bin/cp /root/distro/resources/resolv.conf /etc/resolv.conf
#disable LRO - BZ 518531
echo "options bnx2x disable_tpa=1" >> /etc/modprobe.conf
# prepare actions to be performed on next boot.
/bin/cp /etc/rc.d/rc.local /etc/rc.d/rc.local.shipped
www.redhat.com 36
Zobrazit stránku 35
1 2 ... 31 32 33 34 35 36 37 38 39 40 41 ... 198 199

Komentáře k této Příručce

Žádné komentáře