Skip to content

Commit 5de9580

Browse files
committed
sdk_entry: Source .sdkenv to get COREOS_OFFICIAL
Fix bug where COREOS_OFFICIAL wasn't available during sdk_entry.sh execution, causing official builds to incorrectly use persistent module signing keys instead of ephemeral /tmp keys. Signed-off-by: Daniel Zatovic <daniel.zatovic@gmail.com>
1 parent 7d30c71 commit 5de9580

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sdk_lib/sdk_entry.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
# Source SDK environment variables if available (includes COREOS_OFFICIAL, etc.)
4+
if [ -f /mnt/host/source/.sdkenv ]; then
5+
source /mnt/host/source/.sdkenv
6+
fi
7+
38
if [ -n "${SDK_USER_ID:-}" ] ; then
49
# If the "core" user from /usr/share/baselayout/passwd has the same ID, allow to take it instead
510
usermod --non-unique -u $SDK_USER_ID sdk

0 commit comments

Comments
 (0)