| author | 2026-09-07 12:33:58 +0700 | |
|---|---|---|
| committer | 2026-09-07 12:33:58 +0700 | |
| commit | cd45abe68eec0d00e6b51d765db273a424352529 (patch) | |
| tree | 3b35a0941dd03c98539c9ecfe1e321126df365ac /surface-editbootconfig.sh | |
| parent | 2411d569bb9c00b434691bf0a2add278e16c798e (diff) | |
| download | kiwi-descriptions-cd45abe68eec0d00e6b51d765db273a424352529.tar.gz kiwi-descriptions-cd45abe68eec0d00e6b51d765db273a424352529.zip | |
fix: release-split dtb copies
Diffstat (limited to 'surface-editbootconfig.sh')
| -rwxr-xr-x | surface-editbootconfig.sh | 12 |
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 |