| author | 2026-09-07 12:33:58 +0700 | |
|---|---|---|
| committer | 2026-09-27 23:44:47 +0700 | |
| commit | 5ae23b3e6d38c01e0043075ab260734eb118d24a (patch) | |
| tree | 4d2abfbf1586576c2e7591cff265290267e78318 /surface-editbootconfig.sh | |
| parent | f3ba79f2ed030a4f70fda79622fd3c95974a47e7 (diff) | |
| download | kiwi-descriptions-5ae23b3e6d38c01e0043075ab260734eb118d24a.tar.gz kiwi-descriptions-5ae23b3e6d38c01e0043075ab260734eb118d24a.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 |