From: Luca Boccassi Date: Tue, 25 Feb 2025 00:06:52 +0000 (+0000) Subject: mkosi-obs: also check that ESP offset is not an empty string X-Git-Tag: v26~353^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90aaa05f1dad368ae0a6a52fa99f5763d3692127;p=thirdparty%2Fmkosi.git mkosi-obs: also check that ESP offset is not an empty string Can also happen, not just 'null' --- diff --git a/mkosi/resources/mkosi-obs/mkosi.build b/mkosi/resources/mkosi-obs/mkosi.build index 7fbe3c7df..c59717106 100755 --- a/mkosi/resources/mkosi-obs/mkosi.build +++ b/mkosi/resources/mkosi-obs/mkosi.build @@ -66,7 +66,7 @@ while read -r SIG; do unzstd "${DEST%efi}raw.zst" fi offset="$(systemd-repart --json=short "${DEST%efi}raw" | jq -r '.[] | select(.type == "esp") | .offset')" - if [ "$offset" = "null" ]; then + if [ -z "$offset" ] || [ "$offset" = "null" ]; then rm -f "${DEST%efi}raw" continue fi