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.

61 lines
1.7 KiB

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