|
|
|
@ -15,6 +15,10 @@
|
|
|
|
|
hook_add postdoc 5 'mkinitrd_run' |
|
|
|
|
|
|
|
|
|
mkinitrd_run() { |
|
|
|
|
echo_status "running mkinitramfs ..." |
|
|
|
|
sh "$root/sbin/mkinitramfs" -R "${root:-/}" "${lx_kernelrelease}" |
|
|
|
|
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 |
|
|
|
|
} |
|
|
|
|