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.

36 lines
908 B

  1. use_yaboot=1
  2. cd $disksdir
  3. echo_header "Creating cleaning boot directory:"
  4. rm -rfv boot/*-rock boot/System.map boot/kconfig*
  5. if [ $use_yaboot -eq 1 ]
  6. then
  7. echo_header "Creating yaboot setup:"
  8. #
  9. echo_status "Extracting yaboot boot loader."
  10. mkdir -p boot
  11. tar --use-compress-program=bzip2 \
  12. -xf $base/build/${ROCKCFG_ID}/pkgs/yaboot.tar.bz2 \
  13. usr/lib/yaboot/yaboot -O > boot/yaboot
  14. #
  15. echo_status "Creating yaboot config file."
  16. cp -v $base/target/$target/powerpc/{yaboot.conf,boot.msg,ofboot.b} \
  17. boot
  18. #
  19. echo_status "Moving image (initrd) to yaboot directory."
  20. mv -v initrd.img boot/
  21. #
  22. echo_status "Copy more config files."
  23. cp -v $base/target/$target/powerpc/mapping .
  24. #
  25. datdir="build/${ROCKCFG_ID}/bootdisk"
  26. cat > ../isofs_arch.txt <<- EOT
  27. BOOT -hfs -part -map $datdir/mapping -hfs-volid "ROCK_Linux_CD"
  28. BOOTx -hfs-bless boot -sysid PPC
  29. DISK1 $datdir/boot/ boot/
  30. EOT
  31. fi