61 lines
1.3 KiB
Bash
61 lines
1.3 KiB
Bash
#!/bin/sh
|
|
# Alpine mkimage profile: bee_debug
|
|
# Minimal LiveCD with audit binary + SSH for development/testing.
|
|
# No NVIDIA driver. SSH root login enabled.
|
|
|
|
profile_bee_debug() {
|
|
title="Bee Hardware Audit (debug)"
|
|
desc="Hardware audit LiveCD with SSH access for testing"
|
|
image_ext="iso"
|
|
output_format="iso"
|
|
kernel_flavors="lts"
|
|
kernel_addons=""
|
|
syslinux_serial="0 115200"
|
|
apks="
|
|
alpine-base
|
|
linux-lts
|
|
linux-firmware-none
|
|
|
|
dmidecode
|
|
smartmontools
|
|
nvme-cli
|
|
pciutils
|
|
ipmitool
|
|
util-linux
|
|
lsblk
|
|
e2fsprogs
|
|
lshw
|
|
|
|
dropbear
|
|
udhcpc
|
|
openrc
|
|
qrencode
|
|
tzdata
|
|
ca-certificates
|
|
|
|
strace
|
|
procps
|
|
lsof
|
|
file
|
|
less
|
|
vim
|
|
"
|
|
|
|
# overlay is applied after package install
|
|
# contains: audit binary, dropbear init, authorized_keys
|
|
}
|
|
|
|
build_bee_debug() {
|
|
# BEE_OVERLAY_DIR is exported by build-debug.sh (absolute path).
|
|
local overlay="${BEE_OVERLAY_DIR}"
|
|
if [ -d "$overlay" ]; then
|
|
cp -r "${overlay}/." "${ROOTFS}/"
|
|
fi
|
|
|
|
# enable services
|
|
_bootscript default bee-sshsetup
|
|
_bootscript default dropbear
|
|
_bootscript default bee-network
|
|
_bootscript default bee-audit-debug
|
|
}
|