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.

48 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; mkdir -p $disksdir; chmod 700 $disksdir
  15. fi
  16. # Re-evaluate CC and other variables (as we have built the cross cc now)
  17. . scripts/parse-config
  18. if [ "$ROCK_DEBUG_RESCUE_NOSTAGE2" != 1 ]
  19. then
  20. . $base/target/$target/build_stage2.sh
  21. fi
  22. if [ "$ROCK_DEBUG_RESCUE_NOSTAGE1" != 1 ]
  23. then
  24. . $base/target/$target/build_stage1.sh
  25. fi
  26. if [ -f $base/target/$target/$arch/build.sh ]; then
  27. . $base/target/$target/$arch/build.sh
  28. fi
  29. echo_header "Creating ISO filesystem description."
  30. cd $disksdir; rm -rf isofs; mkdir -p isofs
  31. echo_status "Creating rescue/isofs directory.."
  32. ln system.tar.bz2 isofs/
  33. ln *.img isofs/ 2>/dev/null || true # might not exist on some architectures
  34. echo_status "Creating isofs.txt file .."
  35. echo "DISK1 build/${ROCKCFG_ID}/rescue/isofs/ `
  36. `${ROCKCFG_SHORTID}/" > ../isofs_generic.txt
  37. cat ../isofs_*.txt > ../isofs.txt