scripts: drop LAKKA_DEVBUILD, LAKKA_NIGHTLY, add LAKKA_BUILD_TYPE

This commit is contained in:
Tomáš Kelemen (vudiq) 2024-05-27 13:47:56 +02:00
parent 5331fff92b
commit f5eaf79a20
No known key found for this signature in database
GPG Key ID: 5CE55E600E0B3B22
2 changed files with 4 additions and 5 deletions

View File

@ -57,8 +57,7 @@ function do_mkimage() {
STORAGE_SIZE="${STORAGE_SIZE:-32}" \
OVA_SIZE="${OVA_SIZE}" \
SKIP_VIRTUAL_APPLIANCE="${SKIP_VIRTUAL_APPLIANCE}" \
LAKKA_DEVBUILD="${LAKKA_DEVBUILD:-no}" \
LAKKA_NIGHTLY="${LAKKA_NIGHTLY:-no}" \
LAKKA_BUILD_TYPE="${LAKKA_BUILD_TYPE:-release}" \
${SCRIPTS}/mkimage
}

View File

@ -193,7 +193,7 @@ SAY =======
SAY live: boot ${DISTRO} using this USB memory device for storage
SAY installer: permanently install ${DISTRO} to HDD/SSD
EOF
if [ "${LAKKA_DEVBUILD}" = "yes" -o "${LAKKA_NIGHTLY}" = "yes" ]; then
if [ ! "${LAKKA_BUILD_TYPE}" = "release" ]; then
cat << EOF >> "${LE_TMP}/syslinux.cfg"
SAY debug: boot ${DISTRO} to console for debugging
EOF
@ -212,7 +212,7 @@ LABEL installer
KERNEL /${KERNEL_NAME}
APPEND boot=UUID=${UUID_SYSTEM} installer quiet systemd.debug_shell vga=current
EOF
if [ "${LAKKA_DEVBUILD}" = "yes" -o "${LAKKA_NIGHTLY}" = "yes" ]; then
if [ ! "${LAKKA_BUILD_TYPE}" = "release" ]; then
cat << EOF >> "${LE_TMP}/syslinux.cfg"
LABEL debug
@ -235,7 +235,7 @@ menuentry "Install ${DISTRO} to HDD/SSD" {
linux /KERNEL boot=UUID=${UUID_SYSTEM} installer quiet systemd.debug_shell vga=current
}
EOF
if [ "${LAKKA_DEVBUILD}" = "yes" -o "${LAKKA_NIGHTLY}" = "yes" ]; then
if [ ! "${LAKKA_BUILD_TYPE}" = "release" ]; then
cat << EOF >> "${LE_TMP}/grub.cfg"
menuentry "Debug ${DISTRO} (console)" {
search --set -f /KERNEL