27 lines (26 with data), 922 Bytes
#standard image prep scripts for suse
# edit to fit your installation
# First steps follow your installation instructions for downloading and installing your new
# z/series linux distro.
# once this new image is up then mkdir /mnt/new
# you should nfs mount your nfsserver archive mountpoint to /mnt/new on your new image.
# this script will do the rest and create a backup of your new image for vmlmat use.
mkdir /mnt/old
mkdir /var/clone
mkdir /swap
cp /mnt/new/vmlmat/cpy/clone/* /var/clone
cp /var/clone/suloginv /sbin
dd if=/dev/zero of=/swap/swapfile bs=1M count=256
mkswap -c /swap/swapfile
chmod 700 /swap
chmod 600 /swap/swapfile
swapon /swap/swapfile
# this is a nice feature to have your console autologon
echo 1:01236:respawn:/sbin/suloginv /dev/console >> /etc/inittab
echo /swap/swapfile /swap swap defaults 0 0 >> /etc/fstab
mount -a
vi /etc/inittab
vi /etc/fstab
cd /var/clone
umount /mnt/new
./bkclone