diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-04-16 15:18:03 +0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2020-05-28 15:21:17 +0000 |
commit | 1bc9689361b4f1e586bd026d62f1b778f431cad1 (patch) | |
tree | 289ed02ba49d8716f57c261c5a1b82b6e5648518 /update-kernel.in | |
parent | 5d90f33f62375f23367d3c5a7badd2d7f1031744 (diff) | |
download | alpine-conf-1bc9689361b4f1e586bd026d62f1b778f431cad1.zip |
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"
Diffstat (limited to 'update-kernel.in')
-rw-r--r-- | update-kernel.in | 1 |
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" |