mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

60 lines
1.8 KiB

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 "Creating lilo config:"
cp $confdir/x86/lilo-* boot/
echo "Creating floppy disk images:"
cp $confdir/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 $x; done
# else
# tmpfile=`mktemp -p $PWD`
# if sh ./makeimages.sh &> $tmpfile; then
# cat $tmpfile | while read x; do echo "$x"; done
# else
# cat $tmpfile | while read x; do echo "$x"; done
# fi
# rm -f $tmpfile
# cat > $xroot/ROCK/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 "Creating isolinux setup:"
#
echo "Extracting isolinux boot loader."
rm -rf isolinux ; mkdir -p isolinux
tar -O $taropt $base/download/mirror/s/syslinux-$syslinux_ver.tar.bz2 \
syslinux-$syslinux_ver/isolinux.bin > isolinux/isolinux.bin
#
echo "Creating isolinux config file."
cp $confdir/x86/{isolinux.cfg,help?.txt} isolinux/
#
echo "Copy images to isolinux directory."
[ -e $rootdir/boot/memtest86.bin ] && \
cp $rootdir/boot/memtest86.bin isolinux/memtest86 || true
cp $ROCKCFG_PKG_1ST_STAGE_INITRD.gz $rootdir/boot/vmlinuz* isolinux/
#
cat > $build_rock/isofs_arch.txt <<- EOT
BOOT -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.catalog
BOOTx -no-emul-boot -boot-load-size 4 -boot-info-table
DISK1 $disksdir/isolinux/ boot/isolinux/
EOT
fi