|
|
@ -12,13 +12,13 @@ |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
# --- 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() { |
|
|
|
mkinitrd_run() { |
|
|
|
if pkginstalled mkinitramfs; then |
|
|
|
local template="$1" |
|
|
|
echo_status "running mkinitramfs ..." |
|
|
|
sh "$root$( pkgprefix sbindir mkinitramfs )/mkinitramfs" -R "${root:-/}" \ |
|
|
|
sh "$root$( pkgprefix sbindir mkinitramfs )/mkinitramfs" -R "${root:-/}" "${lx_kernelrelease}" |
|
|
|
${template:+-T $template} "${lx_kernelrelease}" |
|
|
|
else |
|
|
|
|
|
|
|
echo_warning "mkinitramfs is missing." |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|