2022-05-10 11:39:01 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-05-10 16:53:00 +00:00
|
|
|
if [ "$1" = "" ]; then
|
|
|
|
echo "Define i386/amd64 as the first argument."
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-05-10 11:39:01 +00:00
|
|
|
cd "$(dirname "$(realpath -s "$BASH_SOURCE")")"
|
|
|
|
source shell
|
|
|
|
source "env-$1"
|
|
|
|
source "env-proprietary"
|
|
|
|
make-base # Base image
|
2022-05-10 16:53:00 +00:00
|
|
|
apply-stage "$OPUS_HOME/input/stage01" "$OPUS_OUTPUT/$1" # Packages (non-graphical)
|
|
|
|
apply-stage "$OPUS_HOME/input/stage49" "$OPUS_OUTPUT/$1" # Packages (proprietary firmware)
|
|
|
|
apply-stage "$OPUS_HOME/input/stage50" "$OPUS_OUTPUT/$1" # Packages (graphical)
|
|
|
|
apply-stage "$OPUS_HOME/input/stage98" "$OPUS_OUTPUT/$1" # Default configs, etc.
|
|
|
|
apply-stage "$OPUS_HOME/input/stage99" "$OPUS_OUTPUT/$1" # Disk image preparation
|
|
|
|
make-image "$OPUS_OUTPUT/$1" "$OPUS_OUTPUT/${OPUS_NAME}-${OPUS_DIST}-${OPUS_ARCH}_$(date "+%Y.%m.%d-%H.%M.%S").img" # Disk image
|