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.1 KiB

  1. if [[ $rockver = 2.0* ]] ; then
  2. disksdir="$build_dir/rescue"
  3. pkgsdir="$build_dir/pkgs"
  4. rootdir="$build_dir/root"
  5. else
  6. disksdir="$build_rock/rescue"
  7. pkgsdir="$build_rock/pkgs"
  8. rootdir="$build_rock/.."
  9. fi
  10. if [ "$ROCK_DEBUG_RESCUE_NOSTAGE2" != 1 -a \
  11. "$ROCK_DEBUG_RESCUE_NOSTAGE1" != 1 ]
  12. then
  13. pkgloop
  14. rm -rf $disksdir
  15. mkdir -p $disksdir
  16. chmod 700 $disksdir
  17. fi
  18. # Re-evaluate CC and other variables (as we have built the cross cc now)
  19. . scripts/parse-config
  20. if [ "$ROCK_DEBUG_RESCUE_NOSTAGE2" != 1 ]
  21. then
  22. . $base/target/$target/build_stage2.sh
  23. fi
  24. if [ "$ROCK_DEBUG_RESCUE_NOSTAGE1" != 1 ]
  25. then
  26. . $base/target/$target/build_stage1.sh
  27. fi
  28. if [ -f $base/target/$target/$arch/build.sh ]; then
  29. . $base/target/$target/$arch/build.sh
  30. fi
  31. echo_header "Creating ISO filesystem description."
  32. cd $disksdir
  33. rm -rf isofs
  34. mkdir -p isofs
  35. echo_status "Creating rescue/isofs directory.."
  36. ln system.tar.bz2 isofs/
  37. ln *.img isofs/ 2>/dev/null || true # might not exist on some architectures
  38. echo_status "Creating isofs.txt file .."
  39. echo "DISK1 build/${ROCKCFG_ID}/rescue/isofs/ `
  40. `${ROCKCFG_SHORTID}/" > ../isofs_generic.txt
  41. cat ../isofs_*.txt > ../isofs.txt