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.

43 lines
1.3 KiB

  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 images."
  10. mkdir -p boot etc
  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. tar --use-compress-program=bzip2 \
  15. -xf $base/build/${ROCKCFG_ID}/pkgs/yaboot.tar.bz2 \
  16. usr/lib/yaboot/yaboot.rs6k -O > boot/yaboot.rs6k
  17. #
  18. echo_status "Creating yaboot config file."
  19. cp -v $base/target/$target/powerpc/{yaboot.conf,boot.msg,ofboot.b} \
  20. boot
  21. echo_status "Creating the IBM RS/6k yaboot config file."
  22. cp -v $base/target/$target/powerpc/yaboot.conf etc
  23. echo "Duplicates of /boot used on IBM RS/6k hardware." > etc/README
  24. #
  25. echo_status "Moving image (initrd) to yaboot directory."
  26. mv -v initrd.img boot/
  27. #
  28. echo_status "Copy more config files."
  29. cp -v $base/target/$target/powerpc/mapping .
  30. #
  31. datdir="build/${ROCKCFG_ID}/bootdisk"
  32. cat > ../isofs_arch.txt <<- EOT
  33. BOOT -hfs -part -map $datdir/mapping -hfs-volid "ROCK_Linux_CD"
  34. BOOTx -hfs-bless boot -sysid PPC
  35. DISK1 $datdir/boot/ boot/
  36. SCRIPT sh $base/target/bootdisk/powerpc/bless-rs6k.sh $disksdir
  37. EOT
  38. fi