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
This commit is contained in:
parent
d138e18555
commit
ac2f90ce64
30
xCAT-server/share/xcat/netboot/sles/compute.postinstall
Executable file
30
xCAT-server/share/xcat/netboot/sles/compute.postinstall
Executable file
@ -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 <<END >$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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user