aboutsummaryrefslogtreecommitdiffci
path: root/surface-editbootconfig.sh
diff refs
from:
to:
diff options
context:
space:
mode:
authorGravatar Saya Andy <saya.andy@posteo.com> 2026-09-07 12:33:58 +0700
committerGravatar Saya Andy <saya.andy@posteo.com> 2026-09-07 12:33:58 +0700
commitcd45abe68eec0d00e6b51d765db273a424352529 (patch)
tree3b35a0941dd03c98539c9ecfe1e321126df365ac /surface-editbootconfig.sh
parent2411d569bb9c00b434691bf0a2add278e16c798e (diff)
downloadkiwi-descriptions-f45.tar.gz
kiwi-descriptions-f45.zip
fix: release-split dtb copiesf45
Diffstat (limited to 'surface-editbootconfig.sh')
-rwxr-xr-xsurface-editbootconfig.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/surface-editbootconfig.sh b/surface-editbootconfig.sh
index a426645..e6cc67c 100755
--- a/surface-editbootconfig.sh
+++ b/surface-editbootconfig.sh
@@ -27,12 +27,12 @@ esac
dtb_name=x1p42100-microsoft-sp12in.dtb
-# The working directory is the image root, so this is kernel-surface's own
-# version-independent copy. config.sh has already failed the build if the
-# package did not provide it.
-dtb_src="usr/lib/surface-dtb/${dtb_name}"
-if [[ ! -f "${dtb_src}" ]]; then
- echo "surface-editbootconfig: ${dtb_src} not found in the image root" >&2
+# The working directory is the image root, so this is kernel-surface's own copy,
+# under a directory named for the kernel version because that package is
+# installonly. config.sh has already failed the build if it is not there.
+dtb_src=$(ls -1 usr/lib/surface-dtb/*/"${dtb_name}" 2>/dev/null | sort -V | tail -n1)
+if [[ -z "${dtb_src}" ]]; then
+ echo "surface-editbootconfig: no ${dtb_name} under usr/lib/surface-dtb/ in the image root" >&2
exit 1
fi