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.

53 lines
1.6 KiB

  1. cd $disksdir
  2. echo_header "Cleaning boot directory:"
  3. rm -rfv boot/*-rock boot/System.map boot/kconfig* boot/initrd*.img boot/*.b boot/second
  4. echo_header "Creating yaboot setup:"
  5. #
  6. echo_status "Extracting yaboot boot loader images."
  7. mkdir -p boot etc
  8. tar --use-compress-program=bzip2 \
  9. -xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/yaboot.tar.bz2 \
  10. usr/lib/yaboot/yaboot -O > boot/yaboot
  11. tar --use-compress-program=bzip2 \
  12. -xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/yaboot.tar.bz2 \
  13. usr/lib/yaboot/yaboot.rs6k -O > boot/yaboot.rs6k
  14. mv boot/yaboot.rs6k install.bin
  15. #
  16. echo_status "Creating yaboot config files."
  17. cp -v $base/target/$target/powerpc/{boot.msg,ofboot.b} \
  18. boot
  19. (
  20. echo "device=cdrom:"
  21. cat $base/target/$target/powerpc/yaboot.conf
  22. ) > etc/yaboot.conf
  23. (
  24. echo "device=cd:"
  25. cat $base/target/$target/powerpc/yaboot.conf
  26. ) > boot/yaboot.conf
  27. #
  28. echo_status "Moving image (initrd) to boot directory."
  29. mv -v initrd.gz boot/
  30. #
  31. echo_status "Copy more config files."
  32. cp -v $base/target/$target/powerpc/mapping .
  33. #
  34. echo_status "Copying oldworld pmac support files..."
  35. rm -rf oldworld
  36. mkdir -p oldworld
  37. cp -v $base/download/mirror/B/BootX_1.2.2.sit oldworld/
  38. cp -v $base/target/$target/powerpc/oldworld-readme.txt oldworld/README.txt
  39. #
  40. datadir="build/${ROCKCFG_ID}/ROCK/livecd"
  41. cat > ../isofs_arch.txt <<- EOT
  42. BOOT -hfs -part -map $datadir/mapping -hfs-volid "ROCK_Linux_CD"
  43. BOOTx -hfs-bless boot -sysid PPC -l -L -r -T -chrp-boot
  44. BOOTx -prep-boot install.bin
  45. DISK1 $datadir/boot/ boot/
  46. DISK1 $datadir/etc/ etc/
  47. DISK1 $datadir/oldworld/ oldworld/
  48. DISK1 $datadir/install.bin install.bin
  49. EOT