Browse Source

mkinitramfs: Enhanced linux26 integration to use the original initrd.img instead of the one at /boot when possible

early
Alejandro Mery 16 years ago
parent
commit
e84cc7804c
  1. 14
      base/mkinitramfs/pkg_linux26_post.conf

14
base/mkinitramfs/pkg_linux26_post.conf

@ -12,13 +12,13 @@
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
hook_add postdoc 5 'mkinitrd_run'
. package/*/mkinitramfs/find_template.in
hook_add postdoc 5 "mkinitrd_run $initrd_img"
mkinitrd_run() {
if pkginstalled mkinitramfs; then
echo_status "running mkinitramfs ..."
sh "$root$( pkgprefix sbindir mkinitramfs )/mkinitramfs" -R "${root:-/}" "${lx_kernelrelease}"
else
echo_warning "mkinitramfs is missing."
fi
local template="$1"
sh "$root$( pkgprefix sbindir mkinitramfs )/mkinitramfs" -R "${root:-/}" \
${template:+-T $template} "${lx_kernelrelease}"
}

Loading…
Cancel
Save