home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd2.bin
/
suse
/
inst-sys
/
usr
/
lib
/
YaST
/
create_yast_bootdisk
< prev
next >
Wrap
Text File
|
2000-03-30
|
1KB
|
38 lines
#!/bin/bash
#
# Copyright (c) 1999 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved.
#
# Author: Thomas Fehr <fehr@suse.de>, 1999
#
FOUND=0
umount /mnt > /dev/null 2>&1
while [ $FOUND -eq 0 ]
do
umount /dev/cdrom > /dev/null 2>&1
echo -n "Insert the first SuSE installation CD into your CDROM drive and press Enter."
read
mount -r -t iso9660 /dev/cdrom /mnt
if [ ! -f /mnt/disks/eide01 ]
then
echo Wrong CDROM. File /disks/eide01 does not exist.
else
FOUND=1
fi
done
TMPDIR=/tmp/`basename $0`.$$
echo -n "Insert disk into floppy drive and press Enter."
read
cp -a /mnt/disks/eide01 .
umount /dev/cdrom > /dev/null 2>&1
echo "Copying floppy image to disk."
dd if=eide01 of=/dev/fd0
mount -tmsdos /dev/fd0 /mnt
echo "Copying /boot/vmlinuz to disk."
rm -f /mnt/*mod.gz /mnt/*mo.gz
cp /boot/vmlinuz /mnt/linux
cat /mnt/syslinux.cfg | sed "/^append/s/$/ linuxrc=auto yast=tape/" > tmp.cfg
mv tmp.cfg /mnt/syslinux.cfg
umount /mnt
rm -rf $TMPDIR
echo "Automated bootdisk creation complete."