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.

62 lines
1.9 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_header "Creating lilo config and cleaning boot directory:"
  9. cp $base/target/$target/x86/lilo-* boot/
  10. rm -rfv boot/*-rock boot/grub boot/System.map boot/kconfig boot/*.24**
  11. echo_header "Creating floppy disk images:"
  12. cp $base/target/$target/x86/makeimages.sh .
  13. chmod +x makeimages.sh
  14. if [ $use_mdlbl -eq 1 ]
  15. then
  16. tar $taropt $base/download/mirror/m/mdlbl-$mdlbl_ver.tar.bz2
  17. cd mdlbl-$mdlbl_ver
  18. cp ../boot/vmlinuz .; cp ../initrd.gz initrd; ./makedisks.sh
  19. for x in disk*.img; do mv $x ../floppy${x#disk}; done; cd ..
  20. du -sh floppy*.img | while read x; do echo_status $x; done
  21. else
  22. tmpfile=`mktemp -p $PWD`
  23. if sh ./makeimages.sh &> $tmpfile; then
  24. cat $tmpfile | while read x; do echo_status "$x"; done
  25. else
  26. cat $tmpfile | while read x; do echo_error "$x"; done
  27. fi
  28. rm -f $tmpfile
  29. cat > ../isofs_arch.txt <<- EOT
  30. BOOT -b ${ROCKCFG_SHORTID}/boot_288.img -c ${ROCKCFG_SHORTID}/boot.catalog
  31. EOT
  32. fi
  33. if [ $use_isolinux -eq 1 ]
  34. then
  35. echo_header "Creating isolinux setup:"
  36. #
  37. echo_status "Extracting isolinux boot loader."
  38. mkdir -p isolinux
  39. tar -O $taropt $base/download/mirror/s/syslinux-$syslinux_ver.tar.bz2 \
  40. syslinux-$syslinux_ver/isolinux.bin > isolinux/isolinux.bin
  41. #
  42. echo_status "Creating isolinux config file."
  43. cp $base/target/$target/x86/isolinux.cfg isolinux/
  44. cp $base/target/$target/x86/help?.txt isolinux/
  45. #
  46. echo_status "Copy images to isolinux directory."
  47. cp boot/memtest86.bin isolinux/memtest86
  48. cp initrd.gz boot/vmlinuz isolinux/
  49. #
  50. cat > ../isofs_arch.txt <<- EOT
  51. BOOT -b isolinux/isolinux.bin -c isolinux/boot.catalog
  52. BOOTx -no-emul-boot -boot-load-size 4 -boot-info-table
  53. DISK1 build/${ROCKCFG_ID}/ROCK/bootdisk/isolinux/ isolinux/
  54. EOT
  55. fi