aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-12-18 15:23:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-12-18 15:23:10 +0000
commit3fd2ce439dda613a56e3d130c192040a88817787 (patch)
treeb61f73f69e65211518498910d6af9f9034ebf9e7
parent5358f24b8ba5c359db504421d09fc16cf9e7f8cf (diff)
downloadalpine-conf-3fd2ce439dda613a56e3d130c192040a88817787.tar.bz2
alpine-conf-3fd2ce439dda613a56e3d130c192040a88817787.tar.xz
update-kernel: fix dtbs dir
-rw-r--r--update-kernel.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/update-kernel.in b/update-kernel.in
index 0079182..3d13d25 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -264,7 +264,7 @@ fi
KVER_FLAVOR=
[ "$FLAVOR" = vanilla ] || KVER_FLAVOR=-$FLAVOR
KVER=$(basename $(ls -d $ROOT/lib/modules/*"$KVER_FLAVOR"))
-DTBDIR=$ROOT/usr/lib/linux-$KVER
+DTBDIR=$ROOT/boot/dtbs-$FLAVOR
depmod -b $ROOT "$KVER"
@@ -341,8 +341,8 @@ if [ -d "$DTBDIR" ]; then
_opwd=$PWD
case "$MEDIA,$FLAVOR" in
yes,rpi*) _dtb="$DESTDIR/" ;;
- yes,*) _dtb="$DESTDIR/boot/dtbs" ;;
- *,*) _dtb="$DESTDIR/dtbs" ;;
+ yes,*) _dtb="$DESTDIR/boot/dtbs-$FLAVOR" ;;
+ *,*) _dtb="$DESTDIR/dtbs/dtbs-$FLAVOR" ;;
esac
mkdir -p "$_dtb"
_dtb=$(realpath "$_dtb")