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

  1. #
  2. # [COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  3. # [COPY]
  4. # [COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. # [COPY] Please add additional copyright information _after_ the line containing
  6. # [COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  7. # [COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  8. # [COPY]
  9. # [COPY] ROCK Linux: rock-src/package/teha/rescue-stage1-init/rescue-stage1-init.desc
  10. # [COPY] ROCK Linux is Copyright (C) 1998 - 2007 Clifford Wolf
  11. # [COPY]
  12. # [COPY] This program is free software; you can redistribute it and/or modify
  13. # [COPY] it under the terms of the GNU General Public License as published by
  14. # [COPY] the Free Software Foundation; either version 2 of the License, or
  15. # [COPY] (at your option) any later version. A copy of the GNU General Public
  16. # [COPY] License can be found at Documentation/COPYING.
  17. # [COPY]
  18. # [COPY] Many people helped and are helping developing ROCK Linux. Please
  19. # [COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  20. # [COPY] file for details.
  21. # [COPY]
  22. # [COPY] --- ROCK-COPYRIGHT-NOTE-END ---
  23. build_main() {
  24. INST_DIR=$root/lib/rock_initramfs
  25. mkdir -p $INST_DIR/libexec/
  26. $CC ${confdir}/libexec/gen_init_cpio.c -o $INST_DIR/libexec/gen_init_cpio
  27. install -m 755 ${confdir}/libexec/functions ${INST_DIR}/libexec/
  28. install -m 755 ${confdir}/libexec/build-list.sh ${INST_DIR}/libexec/
  29. install -m 755 ${confdir}/libexec/mkinitramfs.sh ${root}/usr/sbin/mkinitramfs
  30. # copy $confdir/build.d/* into running system...
  31. mkdir -p ${INST_DIR}/build.d
  32. for x in ${confdir}/build.d/*
  33. do
  34. install -m 644 ${x} ${INST_DIR}/build.d/
  35. done
  36. (
  37. # copy $confdir/files into the running system...
  38. cd ${confdir}/files
  39. find . -name .svn -prune -o -type d -exec mkdir -p ${INST_DIR}/files/{} ';'
  40. find . -name .svn -prune -o -type f -exec cp -v {} ${INST_DIR}/files/{} ';'
  41. )
  42. }
  43. autoextract=0
  44. srctar="none"
  45. custmain="build_main"