From df548ce77a3be77a8c302b21d7d6a61c3af0ecb3 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Wed, 22 Dec 2010 06:21:31 +0000 Subject: [PATCH] added the sample files for rhels6 diskless service node also, removed the rhels5.3, rhels5.4 files, and added them for rhels5 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8501 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../netboot/rh/compute.rhels5.3.ppc64.pkglist | 16 ------- ...hels5.4.pkglist => compute.rhels5.pkglist} | 0 ...4.pkglist => compute.rhels5.ppc64.pkglist} | 0 ...stall => compute.rhels5.ppc64.postinstall} | 0 ...stall => service.rhels5.ppc64.postinstall} | 0 .../rh/service.rhels6.ppc64.otherpkgs.pkglist | 4 ++ .../netboot/rh/service.rhels6.ppc64.pkglist | 39 ++++++++++++++++ .../rh/service.rhels6.ppc64.postinstall | 45 +++++++++++++++++++ 8 files changed, 88 insertions(+), 16 deletions(-) delete mode 100644 xCAT-server/share/xcat/netboot/rh/compute.rhels5.3.ppc64.pkglist rename xCAT-server/share/xcat/netboot/rh/{compute.rhels5.4.pkglist => compute.rhels5.pkglist} (100%) rename xCAT-server/share/xcat/netboot/rh/{compute.rhels5.4.ppc64.pkglist => compute.rhels5.ppc64.pkglist} (100%) rename xCAT-server/share/xcat/netboot/rh/{compute.rhels5.3.ppc64.postinstall => compute.rhels5.ppc64.postinstall} (100%) rename xCAT-server/share/xcat/netboot/rh/{service.rhels5.3.ppc64.postinstall => service.rhels5.ppc64.postinstall} (100%) create mode 100644 xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.otherpkgs.pkglist create mode 100644 xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.pkglist create mode 100755 xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.postinstall diff --git a/xCAT-server/share/xcat/netboot/rh/compute.rhels5.3.ppc64.pkglist b/xCAT-server/share/xcat/netboot/rh/compute.rhels5.3.ppc64.pkglist deleted file mode 100644 index eae393156..000000000 --- a/xCAT-server/share/xcat/netboot/rh/compute.rhels5.3.ppc64.pkglist +++ /dev/null @@ -1,16 +0,0 @@ -bash -nfs-utils -openssl -dhclient -kernel -openssh-server -openssh-clients -busybox-anaconda -wget -vim-minimal -ntp -sysklogd -rpm -rsync -ppc64-utils -iputils diff --git a/xCAT-server/share/xcat/netboot/rh/compute.rhels5.4.pkglist b/xCAT-server/share/xcat/netboot/rh/compute.rhels5.pkglist similarity index 100% rename from xCAT-server/share/xcat/netboot/rh/compute.rhels5.4.pkglist rename to xCAT-server/share/xcat/netboot/rh/compute.rhels5.pkglist diff --git a/xCAT-server/share/xcat/netboot/rh/compute.rhels5.4.ppc64.pkglist b/xCAT-server/share/xcat/netboot/rh/compute.rhels5.ppc64.pkglist similarity index 100% rename from xCAT-server/share/xcat/netboot/rh/compute.rhels5.4.ppc64.pkglist rename to xCAT-server/share/xcat/netboot/rh/compute.rhels5.ppc64.pkglist diff --git a/xCAT-server/share/xcat/netboot/rh/compute.rhels5.3.ppc64.postinstall b/xCAT-server/share/xcat/netboot/rh/compute.rhels5.ppc64.postinstall similarity index 100% rename from xCAT-server/share/xcat/netboot/rh/compute.rhels5.3.ppc64.postinstall rename to xCAT-server/share/xcat/netboot/rh/compute.rhels5.ppc64.postinstall diff --git a/xCAT-server/share/xcat/netboot/rh/service.rhels5.3.ppc64.postinstall b/xCAT-server/share/xcat/netboot/rh/service.rhels5.ppc64.postinstall similarity index 100% rename from xCAT-server/share/xcat/netboot/rh/service.rhels5.3.ppc64.postinstall rename to xCAT-server/share/xcat/netboot/rh/service.rhels5.ppc64.postinstall diff --git a/xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.otherpkgs.pkglist b/xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.otherpkgs.pkglist new file mode 100644 index 000000000..8637f47ca --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.otherpkgs.pkglist @@ -0,0 +1,4 @@ +-OpenIPMI-tools +-tftp-server +xcat/xcat-core/xCATsn +xcat/xcat-dep/rh5/ppc64/conserver diff --git a/xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.pkglist b/xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.pkglist new file mode 100644 index 000000000..4d0932601 --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.pkglist @@ -0,0 +1,39 @@ +bash +openssl +dhclient +kernel +openssh-server +openssh-clients +busybox +vim-minimal +rpm +bind +bind-utils +ksh +nfs-utils +dhcp +bzip2 +rootfiles +cronie +wget +vsftpd +expect +perl-XML-Parser +postgresql-server +httpd +postgresql +perl-DBD-Pg +perl-IO-Socket-SSL +perl-XML-Simple +perl-Net-Telnet +net-snmp-perl +ntp +rsync +ppc64-utils +iputils +unixODBC +perl-DBD-MySQL +mysql-connector-odbc +dracut +dracut-network +dash diff --git a/xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.postinstall b/xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.postinstall new file mode 100755 index 000000000..5fbd8e26a --- /dev/null +++ b/xCAT-server/share/xcat/netboot/rh/service.rhels6.ppc64.postinstall @@ -0,0 +1,45 @@ +#!/bin/sh +#-- Do not remove following line if you want to make use of CVS version tracking +#-- $Id: compute.postinstall,v 1.21 2008/09/04 12:05:45 sikorsky Exp $ +#-- jurij.sikorsky@t-systems.cz +#-- +#-- this script is run after all packages from $profile.pkglist are installed +#-- +#-- it gets these arguments: +#-- +#-- $1 = install root (chroot directory for profile) +#-- $2 = OS version +#-- $3 = architecture +#-- $4 = profile name +#-- $5 = work dir (where genimage is located) +#-- +#-- +installroot=$1 +osver=$2 +arch=$3 +profile=$4 +workdir=$5 + +#-- Example how /etc/fstab can be automatically generated during image generation: +#cat <$installroot/etc/fstab +#proc /proc proc rw 0 0 +#sysfs /sys sysfs rw 0 0 +#devpts /dev/pts devpts rw,gid=5,mode=620 0 0 +#${profile}_${arch} / tmpfs rw 0 1 +#none /tmp tmpfs defaults,size=10m 0 2 +#none /var/tmp tmpfs defaults,size=10m 0 2 +#END + +#-- Uncomment the line contains "cons" in /etc/inittab +#cons:12345:respawn:/sbin/smart_agetty -L 38400 console +echo "co:2345:respawn:/sbin/agetty -L 38400 console" >> $installroot/etc/inittab + + +#-- Example of booted image versioning +#-- We want to know, with what configuration (version of the image) each node was booted. +#-- Hence, we keep image definition files and postscripts in CVS. During image generation we create file /etc/IMGVERSION and fill it with CVS "$Id$" of files with image definition (.pkglist, .exlist, .repolist, .postinstall). Then, during boot, each "CVS enabled" postscript (see /install/postscripts/cvs_template.sh and /install/postscripts/cvs_template.pl) adds one line to /etc/IMGVERSION. Then you can determine in any time what image you are running and what postscipts in which versions were run. +#cat /dev/null > $installroot/etc/IMGVERSION +#for ext in pkglist exlist postinstall repolist; do +# [ -r $workdir/$profile.$ext ] && cat $workdir/$profile.$ext | grep -E '^[[:space:]]*#.*[[:space:]]\$Id' >> $installroot/etc/IMGVERSION +#done +