Skip to content

Commit

Permalink
Merge branch 'sirlucjan-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
grazzolini committed Apr 2, 2021
2 parents ab6bad7 + 51ea831 commit ca7796a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion functions
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ try_enable_color() {

install_modules() {
local m moduledest=$BUILDROOT/lib/modules/$KERNELVERSION
local -a xz_comp gz_comp
local -a xz_comp gz_comp zst_comp

[[ $KERNELVERSION == none ]] && return 0

Expand All @@ -796,10 +796,14 @@ install_modules() {
*.gz)
gz_comp+=("$moduledest/kernel/${m##*/}")
;;
*.zst)
zst_comp+=("$moduledest/kernel/${m##*/}")
;;
esac
done
(( ${#xz_comp[*]} )) && xz -d "${xz_comp[@]}"
(( ${#gz_comp[*]} )) && gzip -d "${gz_comp[@]}"
(( ${#zst_comp[*]} )) && zstd -d --rm -q "${zst_comp[@]}"

msg "Generating module dependencies"
install -m644 -t "$moduledest" "$_d_kmoduledir"/modules.builtin
Expand Down

0 comments on commit ca7796a

Please sign in to comment.