Skip to content

Commit

Permalink
generate kernel module dependencies after install
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Aug 16, 2023
1 parent b29741d commit 9609c1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/config-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ for type in $target; do
# Install the kernel
if [[ ${LAUNCHPAD} == "Y" ]]; then
chroot ${chroot_dir} /bin/bash -c "apt-get -y install linux-image-5.10.160-rockchip linux-headers-5.10.160-rockchip"
chroot ${chroot_dir} /bin/bash -c "depmod -a 5.10.160-rockchip"
else
cp "${linux_image_package}" "${linux_headers_package}" ${chroot_dir}/tmp
chroot ${chroot_dir} /bin/bash -c "dpkg -i /tmp/{${linux_image_package},${linux_headers_package}} && rm -rf /tmp/*"
chroot ${chroot_dir} /bin/bash -c "depmod -a $(echo "${linux_image_package}" | sed -rn 's/linux-image-(.*)_[[:digit:]].*/\1/p')"
fi

# Copy device trees and overlays
Expand Down

0 comments on commit 9609c1c

Please sign in to comment.