Quote:> Assume I have a laptop computer without a floppy
> drive ( I don't, but assume it anyway :).
> I want to create a custom boot cdrom. This
> seems to require that I have a floppy drive
> to create the (lilo) boot section for the cd.
> Is there software, or a procedure, available
> that will allow this without the actual floppy
> drive?
> Thanks in Advance,
> John
I use this script:
------------------------------
#! /bin/bash
#set -e
if [ $# -ne 2 ]; then
echo 'usage: mk-boot-floppy <kernel> <root>'
exit -1
fi
kernel=$1
root=$2
MTOOLSRC=mtools.rc.$$; export MTOOLSRC
cat > $MTOOLSRC <<EOF
drive g: file="boot.img" 1.44m mformat_only
EOF
[ -f boot.img ] && rm -f boot.img
dd if=/dev/zero of=boot.img bs=1024 count=1440
mformat -l "CoolCS boot" g:
/usr/coolcs/bin/syslinux-1.52/syslinux boot.img
cp $kernel linux.$$
rdev linux.$$ $root
mcopy linux.$$ g:vmlinux
rm linux.$$
cat > syslinux.cfg.$$ <<EOF
prompt 1
timeout 50
label linux
kernel vmlinux
EOF
mcopy syslinux.cfg.$$ g:syslinux.cfg
rm syslinux.cfg.$$
mdir g:
rm $MTOOLSRC
------------------------------------
Mike McDonald