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

  1. use_isolinux=1
  2. syslinux_ver="`sed -n 's,.*syslinux-\(.*\).tar.*,\1,p' \
  3. $base/target/bootdisk/download.txt`"
  4. use_mdlbl=1
  5. mdlbl_ver="`sed -n 's,.*mdlbl-\(.*\).tar.*,\1,p' \
  6. $base/target/bootdisk/download.txt`"
  7. cd $disksdir
  8. echo "Creating lilo config:"
  9. cp $confdir/x86/lilo-* boot/
  10. echo "Creating floppy disk images:"
  11. cp $confdir/x86/makeimages.sh .
  12. chmod +x makeimages.sh
  13. # if [ $use_mdlbl -eq 1 ]
  14. # then
  15. # tar $taropt $base/download/mirror/m/mdlbl-$mdlbl_ver.tar.bz2
  16. # cd mdlbl-$mdlbl_ver
  17. # cp ../boot/vmlinuz .; cp ../initrd.gz initrd; ./makedisks.sh
  18. # for x in disk*.img; do mv $x ../floppy${x#disk}; done; cd ..
  19. # du -sh floppy*.img | while read x; do echo $x; done
  20. # else
  21. # tmpfile=`mktemp -p $PWD`
  22. # if sh ./makeimages.sh &> $tmpfile; then
  23. # cat $tmpfile | while read x; do echo "$x"; done
  24. # else
  25. # cat $tmpfile | while read x; do echo "$x"; done
  26. # fi
  27. # rm -f $tmpfile
  28. # cat > $xroot/ROCK/isofs_arch.txt <<- EOT
  29. # BOOT -b ${ROCKCFG_SHORTID}/boot_288.img -c ${ROCKCFG_SHORTID}/boot.catalog
  30. # EOT
  31. # fi
  32. if [ $use_isolinux -eq 1 ]
  33. then
  34. echo "Creating isolinux setup:"
  35. #
  36. echo "Extracting isolinux boot loader."
  37. rm -rf isolinux ; mkdir -p isolinux
  38. tar -O $taropt $base/download/mirror/s/syslinux-$syslinux_ver.tar.bz2 \
  39. syslinux-$syslinux_ver/isolinux.bin > isolinux/isolinux.bin
  40. #
  41. echo "Creating isolinux config file."
  42. cp $confdir/x86/{isolinux.cfg,help?.txt} isolinux/
  43. #
  44. echo "Copy images to isolinux directory."
  45. [ -e $rootdir/boot/memtest86.bin ] && \
  46. cp $rootdir/boot/memtest86.bin isolinux/memtest86 || true
  47. cp $ROCKCFG_PKG_1ST_STAGE_INITRD.gz $rootdir/boot/vmlinuz* isolinux/
  48. #
  49. cat > $build_rock/isofs_arch.txt <<- EOT
  50. BOOT -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.catalog
  51. BOOTx -no-emul-boot -boot-load-size 4 -boot-info-table
  52. DISK1 $disksdir/isolinux/ boot/isolinux/
  53. EOT
  54. fi