|
|
|
@ -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}" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|