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.

24 lines
578 B

  1. #!/bin/bash
  2. mainfunction="initramfs_mainfunction"
  3. initramfs_mainfunction ()
  4. {
  5. if [ "$ROCK_BUILD_TARGET" != 1 ] ; then
  6. echo "$xpkg can only be built with ./scripts/Build-Target!"
  7. false
  8. fi
  9. # get the default kernel version
  10. . $base/package/*/linux/kernelversion.sh
  11. initrd_config="$ROCKCFG_PKG_INITRAMFS_CONFIG"
  12. disksdir="$root/ROCK/target-finish"
  13. mkdir -p "$disksdir"
  14. $root/usr/sbin/mkinitramfs --root-dir ${root:-/} -o $disksdir/initrd.gz \
  15. --build-dir $confdir/build.d/$initrd_config \
  16. --files-dir $confdir/files/$initrd_config \
  17. -r $kernelversion
  18. }