diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-04-19 14:08:12 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-04-19 14:12:32 +0200 |
commit | 82a1fdfec988bb7e2e36ddcc9f68c17a53abdbfd (patch) | |
tree | fde8fb81d2bad778c1bdaa69d9011dd78fcb263c /update-kernel.in | |
parent | d7044c3a4456645db927a2f0d2a864fa42a3e2a9 (diff) | |
download | alpine-conf-82a1fdfec988bb7e2e36ddcc9f68c17a53abdbfd.zip |
update-kernel: make sure we only decompress kernel modules
Safeguard in case something else than kernel modules would be
compressed.
Diffstat (limited to 'update-kernel.in')
-rw-r--r-- | update-kernel.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/update-kernel.in b/update-kernel.in index f21db2e..a995de5 100644 --- a/update-kernel.in +++ b/update-kernel.in @@ -278,9 +278,9 @@ DTBDIR=$ROOT/boot/dtbs-$FLAVOR [ -d "$DTBDIR" ] || DTBDIR=$ROOT/usr/lib/linux-$KVER [ -d "$DTBDIR" ] || DTBDIR=$ROOT/boot find $ROOT/lib/modules \ - -name \*.gz -exec gunzip {} + \ - -o -name \*.xz -exec unxz {} + \ - -o -name \*.zst -exec unzstd --rm {} + \ + -name \*.ko.gz -exec gunzip {} + \ + -o -name \*.ko.xz -exec unxz {} + \ + -o -name \*.ko.zst -exec unzstd --rm {} + \ -o ! -name '' # don't fail if no files found. busybox find doesn't support -true depmod -b $ROOT "$KVER" |