I've written a shell script that will create a SLES10 AutoYaST installation 
file.  (These files are similar to Kickstart configuration files.)  Since 
AutoYaST files are in XML, editing one by hand is a little scary, and if you're 
looking at your first install, you won't have an existing one to modify anyway.

I don't know how many people will actually find this useful, but I decided it 
was worth developing regardless.  The script will ask a bunch of questions, try 
to validate the input as much as I felt capable of coding, and use the input to 
generate an autoinst.xml file that can be used by AutoYast to install a SLES10 
(pre-SP1) system.  Once SP1 is GA, I'll probably put out an update to handle 
that case.

The output of the script will be a file named autoinst.xml.  It will be created 
in your current working directory.  If there is already a file by that name in 
your current working directory, it will clobber it.

In your kernel parmfile, you point to this file as follows:
autoyast=nfs://server.name/path/to/autoinst.xml
autoyast=http://server.name/different/pathto/autoinst.xml
autoyast=... etc.

The filename doesn't _have_ to be autoinst.xml, but if you decide to use a 
different name, make sure your kernel parmfile matches exactly.

There's an entire manual on AutoYaST at
http://forgeftp.novell.com/yast/doc/SLES10/autoinstall/index.html for more 
information.

The script should be run on a Linux or UNIX system, but it only requires sh, 
not bash (you're welcome, Rick).  Don't try to run it on Windows, not even if 
you have Cygwin installed.  I tested it with Cygwin _once_, and I have no 
desire to try to outguess what your Cygwin settings are regarding MS-DOS versus 
UNIX line-endings, etc.  On my Celeron 600 system, it was pretty pokey, so 
don't be too surprised at the length of time between entering a value and being 
prompted for the next one.

It would be nice if the openssl command is in your PATH, but if not, it will 
fall back to stuffing plain text passwords into autoinst.xml, if you allow it 
to.  Those passwords will of course be encrypted by the system when putting 
them into /etc/shadow.  That's probably better than not letting it put 
passwords in at all, since that's even less secure, but I gave you the choice 
to take that risk.

Using this script does _not_ remove the need for creating a good kernel 
parmfile, or answering all the initial network setup questions.  The network 
has to be up for the system to find the autoinst.xml file.  (If you're capable 
of modifying the initrd to include autoinst.xml, you probably don't need this 
script in the first place!)

I've tested this both on z/VM and in an "LPAR" using Hercules, and got a usable 
running system in both cases.  Unless you've got a really beefy Hercules 
system, installing there can take quite a while, so be warned.

The resulting system will be _very_ minimal (by SLES/RHEL terms), only 221 
packages.  The complete list is shown below.  You'll find a number of packages 
you'll want to add on top of that, I'm sure.

If you apply the "nccreg.diff" patch and edit the appropriate values, the 
system will even register itself for updates via rug, without trying to fire up 
a web browser.  (The values to change should be easy to spot; they all start 
and end with "XXX".)  This will add some time to your install, since a lot of 
network traffic flows between the system and update.novell.com, but you'll need 
to do it eventually anyway, for at least one system.

The system will fit onto one 3390-3, whether a full-pack minidisk (cylinder 0 
belonging to z/VM and the other 3338 to Linux), or a full volume (with all 3339 
cylinders being used by Linux).  To minimize the effort of anyone using this to 
install a system, when the system is first created, it will be using an LVM 
logical volume for paging.  This means it will work in an LPAR situation, as 
well as z/VM.  In the z/VM case, you can move to using VDISK very simply, and 
reclaim the LVM space for other use.

If you use something larger than a 3390-3, the additional space will wind up in 
the LVM volume group, available for use as you see fit later on.

The file system layout of the resulting system once the installation is 
complete is:
Filesystem            Size  Used Avail Use% Mounted on
/dev/dasda1           388M   85M  284M  23% /
/dev/mapper/vg01-home  97M  4.2M   88M   5% /home
/dev/mapper/vg01-opt   74M  7.7M   63M  11% /opt
/dev/mapper/vg01-tmp  291M   17M  260M   6% /tmp
/dev/mapper/vg01-usr  642M  403M  207M  67% /usr
/dev/mapper/vg01-var  295M   57M  223M  21% /var

Filename                                Type            Size    Used    Priority
/dev/mapper/vg01-swap                   partition       524280  0       -1


Since this is being hosted on linuxvm.org, the usual caveats and disclaimers 
apply in terms of your particular system, how well it will or won't work, 
support, etc.  I tried to assume some level of sanity on the part of anyone 
using this, so don't go out of your way to prove me wrong.  I'll certainly try 
to correct any egregious problems, but I'm not looking for enhancement 
requests.  This is intended to be a slightly-less-blunt instrument than what 
people are having to deal with right now.

http://linuxvm.org/Patches/#autoinst


Mark Post


aaa_base-10-12.8
aaa_skel-2006.5.19-0.3
acl-2.2.34-14.2
ash-1.6.1-15.2
attr-2.4.28-16.2
audit-libs-1.1.3-23.2
autoyast2-installation-2.13.69-0.2
bash-3.1-24.4
bind-libs-9.3.2-17.4
bind-utils-9.3.2-17.4
blocxx-1.0.0-17.2
boost-1.33.1-17.2
bzip2-1.0.3-17.2
checkmedia-2.1-16.4
convmv-1.09-12.2
coreutils-5.93-22.2
cpio-2.6-19.2
cracklib-2.8.6-14.2
cron-4.1-45.4
curl-7.15.1-19.2
cyrus-sasl-2.1.21-18.4
cyrus-sasl-saslauthd-2.1.21-18.4
db-4.3.29-15.2
dbus-1-0.60-33.2
dbus-1-glib-0.60-33.2
dbus-1-mono-0.60-33.2
device-mapper-1.02.03-8.2
diffutils-2.8.7-17.2
e2fsprogs-1.38-25.2
ed-0.2-881.2
expat-2.0.0-13.2
file-4.16-15.5
filesystem-10-1.2
fillup-1.42-118.2
findutils-4.2.27-14.2
gawk-3.1.5-18.2
gdbm-1.8.3-243.2
gettext-0.14.5-13.2
glib2-2.8.5-21.2
glibc-2.4-31.2
glibc-32bit-2.4-31.2
glibc-locale-2.4-31.2
gnome-filesystem-0.1-261.2
gpg-1.4.2-23.4
gpg-pubkey-0dfb3188-41ed929b
gpg-pubkey-307e3d54-44201d5d
gpg-pubkey-3d25d3d9-36e12d04
gpg-pubkey-7e2e3b05-44748aba
gpg-pubkey-9c800aca-40d8063e
gpg-pubkey-a1912208-446a0899
gpm-1.20.1-322.2
grep-2.5.1a-20.2
groff-1.18.1.1-29.2
gzip-1.3.5-159.2
hal-0.5.6-33.10
hwinfo-12.34-0.2
info-4.8-22.2
insserv-1.04.0-20.4
iproute2-2.6.15-14.4
iptables-1.3.5-13.2
iputils-ss021109-167.2
kernel-default-2.6.16.21-0.8
klogd-1.4.1-559.2
krb5-1.4.3-19.2
ldapcpplib-0.0.4-14.2
less-394-14.2
libacl-2.2.34-14.2
libattr-2.4.28-16.2
libcap-1.92-499.4
libcom_err-1.38-25.2
libevent-1.1-13.2
libgcc-4.1.0-28.4
libgcrypt-1.2.2-13.2
libgpg-error-1.0-16.2
libicu-3.4-16.2
libidn-0.6.0-14.2
libjpeg-6.2.0-752.2
libnscd-1.1-16.2
libpng-1.2.8-19.2
libstdc++-4.1.0-28.4
libtiff-3.8.2-5.6
libusb-0.1.12-9.2
libxcrypt-2.4-12.2
libxml2-2.6.23-15.2
libxslt-1.1.15-15.2
liby2util-2.13.7-10.2
libzio-0.1-17.2
libzypp-1.2.0-1.21
libzypp-zmd-backend-7.1.1.0-42.45
limal-1.1.6-8.2
limal-bootloader-1.1.2-7.2
limal-ca-mgm-1.1.14-4.2
limal-ca-mgm-perl-1.1.14-4.2
limal-perl-1.1.6-8.2
logrotate-3.7.3-13.2
lsof-4.76-13.2
lukemftp-1.5-598.2
lvm2-2.02.02-11.2
mailx-11.25-14.2
mingetty-0.9.6s-88.2
mkinitrd-1.2-106.14
mkisofs-2.01-25.2
mktemp-1.5-744.2
module-init-tools-3.2.2-32.10
mono-core-1.1.13.8-2.7
mono-data-1.1.13.8-2.7
mono-web-1.1.13.8-2.7
multipath-tools-0.4.6-25.8
ncurses-5.5-18.2
netcat-1.10-883.2
netcfg-10-1.2
net-tools-1.60-583.4
openldap2-client-2.3.19-18.6
openslp-1.2.0-22.4
openssh-4.2p1-18.2
openssl-0.9.8a-18.4
pam-0.99.3.0-29.4
pam-modules-10-2.2
parted-1.6.25.1-15.2
pciutils-2.2.1-16.2
pcre-6.4-14.2
perl-5.8.8-14.2
perl-Bit-Vector-6.4-13.2
perl-Bootloader-0.2.25-0.6
perl-Carp-Clan-5.3-13.2
perl-Compress-Zlib-1.35-14.2
perl-Config-Crontab-1.11-12.2
perl-Config-IniFiles-2.39-13.2
perl-Crypt-SmbHash-0.12-13.2
perl-Date-Calc-5.4-14.2
perl-Digest-MD4-1.5-13.2
perl-Digest-SHA1-2.10-15.2
perl-gettext-1.05-13.2
perl-Parse-RecDescent-1.80-259.2
perl-URI-1.35-15.2
perl-X500-DN-0.28-133.2
perl-XML-Parser-2.34-43.2
perl-XML-Writer-0.600-13.2
permissions-2006.5.19-0.3
popt-1.7-271.4
postfix-2.2.9-10.2
procmail-3.22-56.4
procps-3.2.6-18.4
psmisc-22.1-14.2
pwdutils-3.0.7.1-17.10
readline-5.1-24.4
reiserfs-3.6.19-19.2
release-notes-sles-10-43.24
resmgr-0.9.8_SVNr75-18.4
rpm-4.4.2-43.4
rug-7.1.1.0-18.23
s390-32-1.1-115.2
s390-tools-1.5.3-13.6
sed-4.1.4-17.2
siga-10.101-12.2
sles-release-10-15.2
SPident-0.9-74.4_SLES_10_s390x_current_DVD
sqlite-3.2.8-15.2
sudo-1.6.8p12-18.2
suse-build-key-1.0-685.6
SuSEfirewall2-3.4_SVNr142-7.6
suseRegister-1.0-63.6
sysconfig-0.50.9-13.8
sysfsutils-1.3.0-16.2
syslog-ng-1.6.8-20.4
sysvinit-2.86-21.4
tar-1.15.1-23.2
tcpd-7.6-731.2
telnet-1.2-14.4
terminfo-5.5-18.2
timezone-2.4-31.2
udev-085-30.10
update-alternatives-1.8.3-16.2
utempter-0.5.5-16.2
util-linux-2.12r-35.6
vim-6.4.6-19.4
w3m-0.5.1-19.2
wget-1.10.2-15.4
wireless-tools-28pre13-22.4
xntp-4.2.0a-70.4
yast2-2.13.64.1-0.2
yast2-bootloader-2.13.75-0.2
yast2-core-2.13.23-1.3
yast2-country-2.13.24-1.2
yast2-firewall-2.13.8-0.3
yast2-hardware-detection-2.13.3-13.2
yast2-inetd-2.13.3-1.3
yast2-installation-2.13.132.4-0.2
yast2-ldap-2.13.4-8.2
yast2-ldap-client-2.13.17-0.2
yast2-mail-aliases-2.13.3-12.2
yast2-mouse-2.13.7-16.2
yast2-ncurses-2.13.40-1.2
yast2-network-2.13.56-1.2
yast2-ntp-client-2.13.11-0.3
yast2-online-update-2.13.43-1.2
yast2-online-update-frontend-2.13.43-1.2
yast2-packager-2.13.139-1.2
yast2-pam-2.13.3-1.3
yast2-perl-bindings-2.13.5-1.2
yast2-pkg-bindings-2.13.88-1.2
yast2-runlevel-2.13.8-3.2
yast2-s390-2.13.15-1.2
yast2-schema-2.13.2-13.2
yast2-security-2.13.4-0.2
yast2-slp-2.13.1-14.2
yast2-storage-2.13.69-0.2
yast2-storage-lib-2.13.69-0.2
yast2-support-2.13.3-0.3
yast2-sysconfig-2.13.6-0.3
yast2-theme-NLD-0.4.5-3.2
yast2-trans-en_US-2.13.5-7.2
yast2-transfer-2.13.3-12.2
yast2-trans-stats-2.11.0-21.2
yast2-update-2.13.32-1.2
yast2-users-2.13.18-0.3
yast2-xml-2.13.2-1.3
zisofs-tools-1.0.6-15.2
zlib-1.2.3-15.2
zmd-7.1.1.0-39.49
zmd-inventory-7.1.1.0-8.9

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to