From ac2f90ce643fab074f42621d15deb134e114676c Mon Sep 17 00:00:00 2001 From: sikorsky Date: Wed, 10 Sep 2008 14:40:45 +0000 Subject: [PATCH] Added sles/compute.postinstall example script (for genimage patch in rev 2119) git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2121 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../xcat/netboot/sles/compute.postinstall | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 xCAT-server/share/xcat/netboot/sles/compute.postinstall diff --git a/xCAT-server/share/xcat/netboot/sles/compute.postinstall b/xCAT-server/share/xcat/netboot/sles/compute.postinstall new file mode 100755 index 000000000..0ce70de5a --- /dev/null +++ b/xCAT-server/share/xcat/netboot/sles/compute.postinstall @@ -0,0 +1,30 @@ +#!/bin/sh +#-- +#-- 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 + +