|
|
|
use_isolinux=1
|
|
syslinux_ver="`sed -n 's,.*syslinux-\(.*\).tar.*,\1,p' \
|
|
$base/target/bootdisk/download.txt`"
|
|
use_mdlbl=1
|
|
mdlbl_ver="`sed -n 's,.*mdlbl-\(.*\).tar.*,\1,p' \
|
|
$base/target/bootdisk/download.txt`"
|
|
|
|
cd $disksdir
|
|
|
|
echo_header "Creating lilo config and cleaning boot directory:"
|
|
cp $base/target/$target/x86/lilo-* boot/
|
|
for x in boot/*; do
|
|
[ -L $x -a -f $x ] || continue
|
|
cp -L $x $x.data; mv $x.data $x
|
|
echo "dereferenced \`$x'"
|
|
done
|
|
rm -rfv boot/*-rock boot/grub boot/System.map boot/kconfig boot/*.24**
|
|
|
|
echo_header "Creating floppy disk images:"
|
|
cp $base/target/$target/x86/makeimages.sh .
|
|
chmod +x makeimages.sh
|
|
|
|
if [ $use_mdlbl -eq 1 ]
|
|
then
|
|
tar $taropt $base/download/mirror/m/mdlbl-$mdlbl_ver.tar.bz2
|
|
cd mdlbl-$mdlbl_ver
|
|
cp ../boot/vmlinuz .; cp ../initrd.gz initrd; ./makedisks.sh
|
|
for x in disk*.img; do mv $x ../floppy${x#disk}; done; cd ..
|
|
du -sh floppy*.img | while read x; do echo_status $x; done
|
|
else
|
|
tmpfile=`mktemp -p $PWD`
|
|
if sh ./makeimages.sh &> $tmpfile; then
|
|
cat $tmpfile | while read x; do echo_status "$x"; done
|
|
else
|
|
cat $tmpfile | while read x; do echo_error "$x"; done
|
|
fi
|
|
rm -f $tmpfile
|
|
cat > ../isofs_arch.txt <<- EOT
|
|
BOOT -b ${ROCKCFG_SHORTID}/boot_288.img -c ${ROCKCFG_SHORTID}/boot.catalog
|
|
EOT
|
|
fi
|
|
|
|
if [ $use_isolinux -eq 1 ]
|
|
then
|
|
echo_header "Creating isolinux setup:"
|
|
#
|
|
echo_status "Extracting isolinux boot loader."
|
|
mkdir -p isolinux
|
|
tar -O $taropt $base/download/mirror/s/syslinux-$syslinux_ver.tar.bz2 \
|
|
syslinux-$syslinux_ver/isolinux.bin > isolinux/isolinux.bin
|
|
#
|
|
echo_status "Creating isolinux config file."
|
|
cp $base/target/$target/x86/isolinux.cfg isolinux/
|
|
cp $base/target/$target/x86/help?.txt isolinux/
|
|
#
|
|
echo_status "Copy images to isolinux directory."
|
|
cp boot/memtest86.bin isolinux/memtest86
|
|
cp initrd.gz boot/vmlinuz isolinux/
|
|
#
|
|
cat > ../isofs_arch.txt <<- EOT
|
|
BOOT -b isolinux/isolinux.bin -c isolinux/boot.catalog
|
|
BOOTx -no-emul-boot -boot-load-size 4 -boot-info-table
|
|
DISK1 build/${ROCKCFG_ID}/ROCK/bootdisk/isolinux/ isolinux/
|
|
EOT
|
|
fi
|
|
|