#!/bin/bash
## Nom de la distrib dans dists/ du media d'origine
# ex: bullseye, stable
set -x
export MEDIA_VERSION=$(debian_version_to_codename $DEBVERSION)

# "di-utils_": l'underscore est utile et important au bon fonctionnement
export UDEBS="wget-udeb di-utils_ di-utils-exit-installer di-utils-mapdevfs di-utils-reboot di-utils-shell di-utils-terminfo openssh-server-udeb scibian-archive-keyring"
if [ "$DEBVERSION" -ge 12 ]; then
    export UDEBS="$UDEBS libssl3-udeb libcrypto3-udeb"
else
    export UDEBS="$UDEBS libssl1.1-udeb libcrypto1.1-udeb"
fi
export UDEBS_SCI="haveged-udeb scibian-archive-keyring-udeb"

export SCI_REPO=http://scibian.org/repos
#export DEB_REPO=http://deb.debian.org/debian
export DEB_REPO="$SCI_REPO"

SCIBIAN_KEYRING=/usr/share/keyrings/scibian-archive-keyring.gpg

export DIRISOS="$SCRIPTDIR/isos"

#############################
# Path to DEBIAN CD to modify
# Automatic
export DEBIAN_CD=$(ls $DIRISOS/debian-$(debian_codename_to_version $MEDIA_VERSION).*-amd64-netinst.iso | sort -n | head -1)
# Manual override
#export DEBIAN_CD=$DIRISOS/debian-11.5.0-amd64-netinst.iso
##########
# BIOS or not ?
export UEFI_ONLY=1

######################################
# Different variables for naming the CD
# These variables are not used if CD_VERSION is not set
export CD_VERSION_PREFIX=""
export CD_VERSION_SUFFIX=""

# If this variable is not set, the CD version will be set according to MEDIA_VERSION
export CD_VERSION=""

###########
# A bit experimental
export CLEAN_UP="TRUE"
