added config option to disable PXE/ISO creation

This commit is contained in:
nospoonuser 2019-01-12 13:32:19 +01:00
parent fe9e8ff79a
commit 73d777d5bd
5 changed files with 10 additions and 2 deletions

View File

@ -25,6 +25,9 @@ STAGEDIR="./stage"
CHROOT="./chroot" CHROOT="./chroot"
#do we want to build an iso
ISO="true"
#iso filename - gets extended by .iso #iso filename - gets extended by .iso
ISO_FILENAME="live" ISO_FILENAME="live"
@ -41,6 +44,8 @@ ISO_INCLUDE_UBUNTU_INSTALLER="true"
ISO_INCLUDE_DEBIAN_INSTALLER="true" ISO_INCLUDE_DEBIAN_INSTALLER="true"
#do we want to build a PXE environment
PXE="true"
#Include Memtest #Include Memtest
PXE_INCLUDE_MEMTEST="true" PXE_INCLUDE_MEMTEST="true"

View File

@ -5,4 +5,3 @@ ARCH_BASEDIR="archiso/arch"
PXE_HTTP_PORT=80 PXE_HTTP_PORT=80
ARCHISO_HTTP_PORT=80 ARCHISO_HTTP_PORT=80
LIVE_SSH_ROOTLOGIN="yes" LIVE_SSH_ROOTLOGIN="yes"

View File

@ -11,7 +11,7 @@ NC='\033[0m'
requiredir() { requiredir() {
[ -n "$1" ] || exit 1 [ -n "$1" ] || return 1
[ -e $1 ] || mkdir $1 [ -e $1 ] || mkdir $1
} }

View File

@ -11,6 +11,8 @@ einfo "Creating ISO"
ISOLINUX_MODULES="ldlinux.c32 libmenu.c32 menu.c32" ISOLINUX_MODULES="ldlinux.c32 libmenu.c32 menu.c32"
ISOLINUX_BIN="/usr/lib/ISOLINUX/isolinux.bin" ISOLINUX_BIN="/usr/lib/ISOLINUX/isolinux.bin"
[ "$ISO" == "true" ] || ( einfo "ISO build is not enabled - skip" && exit 0 )
checkstage live || eexit "Previous stage (live) was not finished" checkstage live || eexit "Previous stage (live) was not finished"
startstage iso startstage iso

View File

@ -14,6 +14,8 @@ einfo "Creating PXE enviroment"
PXELINUX_MODULES="libmenu.c32 menu.c32" PXELINUX_MODULES="libmenu.c32 menu.c32"
PXELINUX_BIN="/usr/lib/PXELINUX/pxelinux.0" PXELINUX_BIN="/usr/lib/PXELINUX/pxelinux.0"
[ "$PXE" == "true" ] || (einfo "PXE disabled" && exit 0)
checkstage live || eexit "Previous stage (live) was not finished" checkstage live || eexit "Previous stage (live) was not finished"
startstage pxe startstage pxe