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.

52 lines
1.5 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}/ROCK/pkgs/yaboot.tar.bz2 \
  13. usr/lib/yaboot/yaboot -O > boot/yaboot
  14. tar --use-compress-program=bzip2 \
  15. -xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/yaboot.tar.bz2 \
  16. usr/lib/yaboot/yaboot.rs6k -O > boot/yaboot.rs6k
  17. cp boot/yaboot.rs6k install.bin
  18. #
  19. echo_status "Creating yaboot config files."
  20. cp -v $base/target/$target/powerpc/{boot.msg,ofboot.b} \
  21. boot
  22. (
  23. echo "device=cdrom:"
  24. cat $base/target/$target/powerpc/yaboot.conf
  25. ) > etc/yaboot.conf
  26. (
  27. echo "device=cd:"
  28. cat $base/target/$target/powerpc/yaboot.conf
  29. ) > boot/yaboot.conf
  30. #
  31. echo_status "Moving image (initrd) to boot directory."
  32. mv -v initrd.gz boot/
  33. #
  34. echo_status "Copy more config files."
  35. cp -v $base/target/$target/powerpc/mapping .
  36. #
  37. datadir="build/${ROCKCFG_ID}/ROCK/bootdisk"
  38. cat > ../isofs_arch.txt <<- EOT
  39. BOOT -hfs -part -map $datadir/mapping -hfs-volid "ROCK_Linux_CD"
  40. BOOTx -hfs-bless boot -sysid PPC -l -L -r -T -chrp-boot
  41. BOOTx --prep-boot install.bin
  42. DISK1 $datadir/boot/ boot/
  43. DISK1 $datadir/etc/ etc/
  44. DISK1 $datadir/install.bin install.bin
  45. EOT
  46. # SCRIPT sh $base/target/bootdisk/powerpc/bless-rs6k.sh $disksdir
  47. fi