Commit 9ff2e8d2 authored by Ophélie Gagnard's avatar Ophélie Gagnard

installation/dependencies.sh: Add genericity for package handling.

parent 6d3722a4
set -e
ARCH=amd64
PACKAGE_EXTENSION=.deb
MCA_VERSION=dep--mca-static_1-1
FLUENTBIT_VERSION=fluent-bit_1-1
MCA_PACKAGE=${MCA_VERSION}_${ARCH}${PACKAGE_EXTENSION}
FLUENTBIT_PACKAGE=${FLUENTBIT_VERSION}_${ARCH}${PACKAGE_EXTENSION}
# basic and dirty detection of the working directory
# it assumes the script is called either from initramfs-with-mca/installation (where fluent-bit_1-1_amd64.deb is located)
# or initramfs-with-mca/ in which case it changes to installation/ so that the package is available
if [ ! -e fluent-bit_1-1_amd64.deb ]; then
if [ ! -e "$FLUENTBIT_PACKAGE" ]; then
cd installation/
fi
......@@ -15,6 +22,6 @@ git config --global user.name "Francois Gagnard"
# building initramfs
apt -y install dracut-core dracut dracut-network
wget https://download.opensuse.org/repositories/home:/fg.nxd/Debian_11/amd64/dep--mca-static_1-1_amd64.deb
apt -y install ./dep--mca-static_1-1_amd64.deb
apt -y install ./fluent-bit_1-1_amd64.deb
wget https://download.opensuse.org/repositories/home:/fg.nxd/Debian_11/$ARCH/"$MCA_PACKAGE"
apt -y install ./"$MCA_PACKAGE"
apt -y install ./"$FLUENTBIT_PACKAGE"
# This file is sourced by various other scripts used to install this project.
ARCH=amd64
PACKAGE_EXTENSION=.deb
MCA_VERSION=1-1
FLUENTBIT_VERSION=1-1
MCA_PACKAGE_NAME=dep--mca-static
FLUENTBIT_PACKAGE_NAME=fluent-bit
# used in dracut.module/configure
MCA_NAME_AND_VERSION=${MCA_PACKAGE_NAME}_${MCA_VERSION}
FLUENTBIT_NAME_AND_VERSION=${FLUENTBIT_PACKAGE_NAME}_${FLUENTBIT_VERSION}
# used in installation/dependencies.sh
APT_UTILITY_PACKAGES="sudo wget tree"
APT_SPECIFIC_PACKAGES="dracut-core dracut dracut-network"
MCA_PACKAGE_FILE=${MCA_NAME_AND_VERSION}_${ARCH}${PACKAGE_EXTENSION}
FLUENTBIT_PACKAGE_FILE=${FLUENTBIT_NAME_AND_VERSION}_${ARCH}${PACKAGE_EXTENSION}
URL_PATTERN="https://download.opensuse.org/repositories/home:/fg.nxd/Debian_11/"
MCA_PACKAGE_URL=${URL_PATTERN}/${ARCH}/${MCA_PACKAGE_FILE}
FLUENTBIT_PACKAGE_URL=${URL_PATTERN}/${ARCH}/${FLUENTBIT_PACKAGE_FILE}
# DEBUG 100
#echo MCA_PACKAGE_FILE = ${MCA_PACKAGE_FILE}
#echo FLUENTBIT_PACKAGE_FILE = ${FLUENTBIT_PACKAGE_FILE}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment