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.

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