
© Copyright IBM Corp. 2008. All rights reserved. 227
Appendix C. Linux source code
This section lists the Linux source code associated with this book. Following is the clone
script.
Obtaining and using the Web material
The pdf of this book is available on the Internet at:
http://www.redbooks.ibm.com/abstracts/sg247492.html
The files associated with this book are in a zipped tar file at:
ftp://www.redbooks.ibm.com/redbooks/SG247492
Download the tar file to your NFS server and use it as is described in 7.2.1, “Copying files to
the controller” on page 109. After untarring the file, you will have a directory named
virt-cookbook-RH5.2. Under that directory are the following files and directory:
README.txt The main README file
clone-1.0-5.s390x.rpm The script to clone the golden image to a target user ID
vm/ A directory containing files used on z/VM
The clone script
Following is the clone script that installs into /usr/sbin/ when the RPM
clone-1.0-5.s390x.rpm is installed:
#!/bin/sh
#
# clone.sh is a script that clones Linux images. It makes use of vmcp to
# relay messages to the z/VM system and configuration files to modify
# the new image once it has been cloned.
#
# The script reads in /etc/sysconfig/clone for user setting customizations.
#
# For details on how this script works see the book:
C
Komentarze do niniejszej Instrukcji