aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-04-16 15:18:03 +0300
committerTimo Teräs <timo.teras@iki.fi>2020-04-16 15:18:03 +0300
commit0c0ded1d885431bf4509222368278ec6644bf646 (patch)
tree289ed02ba49d8716f57c261c5a1b82b6e5648518
parent5d90f33f62375f23367d3c5a7badd2d7f1031744 (diff)
downloadalpine-conf-0c0ded1d885431bf4509222368278ec6644bf646.tar.bz2
alpine-conf-0c0ded1d885431bf4509222368278ec6644bf646.tar.xz
update-kernel: fallback to old dtbdir if new one does not exist
This allows running update-kernel on new alpine and to create images from stable branch by overriding repository files. Fixes: 3fd2ce43 "update-kernel: fix dtbs dir"
-rw-r--r--update-kernel.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/update-kernel.in b/update-kernel.in
index 3d13d25..d9b774f 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -265,6 +265,7 @@ KVER_FLAVOR=
[ "$FLAVOR" = vanilla ] || KVER_FLAVOR=-$FLAVOR
KVER=$(basename $(ls -d $ROOT/lib/modules/*"$KVER_FLAVOR"))
DTBDIR=$ROOT/boot/dtbs-$FLAVOR
+[ -d "$DTBDIR" ] || DTBDIR=$ROOT/usr/lib/linux-$KVER
depmod -b $ROOT "$KVER"