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.

34 lines
866 B

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