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.

56 lines
1.6 KiB

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