fix: add arch=x86_64 to profile, improve abuild key generation in setup
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
profile_bee_debug() {
|
||||
title="Bee Hardware Audit (debug)"
|
||||
desc="Hardware audit LiveCD with SSH access for testing"
|
||||
arch="x86_64"
|
||||
image_ext="iso"
|
||||
output_format="iso"
|
||||
kernel_flavors="lts"
|
||||
|
||||
@@ -104,6 +104,24 @@ if [ ! -d /usr/share/aports ]; then
|
||||
/usr/share/aports
|
||||
fi
|
||||
|
||||
# --- abuild signing key (required by mkimage.sh) ---
|
||||
if [ ! -f "${HOME}/.abuild/abuild.conf" ]; then
|
||||
echo ""
|
||||
echo "=== generating abuild signing key ==="
|
||||
mkdir -p "${HOME}/.abuild"
|
||||
abuild-keygen -a -n 2>/dev/null || true
|
||||
# abuild-keygen requires doas to install the key system-wide; do it manually
|
||||
PUB=$(ls "${HOME}/.abuild/"*.pub 2>/dev/null | head -1)
|
||||
if [ -n "$PUB" ]; then
|
||||
cp "$PUB" /etc/apk/keys/
|
||||
PRIV="${PUB%.pub}"
|
||||
echo "PACKAGER_PRIVKEY=\"${PRIV}\"" > "${HOME}/.abuild/abuild.conf"
|
||||
echo "abuild key: $PRIV"
|
||||
else
|
||||
echo "WARNING: abuild key generation failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== builder setup complete ==="
|
||||
echo "Next: sh iso/builder/build-debug.sh"
|
||||
|
||||
Reference in New Issue
Block a user