diff --git a/create_pxeinitrd.sh b/create_pxeinitrd.sh index 1989225..bca6dc8 100755 --- a/create_pxeinitrd.sh +++ b/create_pxeinitrd.sh @@ -1,11 +1,7 @@ #!/bin/bash set -Eeuxo pipefail -HOSTNAME=localhost -RELEASE=unstable - TMP_DIR=${TMP_DIR:=$PWD} - MNT_DIR=$TMP_DIR/newroot INITRD_DIR=$TMP_DIR/initramfs RESULT_DIR=$TMP_DIR/files @@ -14,7 +10,9 @@ RESULT_DIR=$TMP_DIR/files [[ -d $INITRD_DIR ]] || mkdir -p $INITRD_DIR [[ -d $RESULT_DIR ]] || mkdir -p $RESULT_DIR +HOSTNAME=localhost # Configs overwritable via environment variables +RELEASE=${RELEASE:=unstable} FLAVOUR=${FLAVOUR:=debian} # Either 'debian' or 'ubuntu' INCLUDES=${INCLUDES:="openssh-server,init,curl,parted,xz-utils,vim,locales-all,less,ceph-common,dmidecode,iputils-ping,fping,tcpdump,rsync,ethtool,lldpd,iproute2,net-tools,sudo,gnupg,tcpdump,mtr-tiny,ifupdown,ipmitool,iptables,telnet,netcat,bridge-utils,vlan,ifstat,ncurses-term,wget,dhcpcd5"} MIRROR=${MIRROR:="https://mirrors.wit.com/debian"}