From 8678f592e4acf3ec00ec3c3469bd15975300efb5 Mon Sep 17 00:00:00 2001 From: crims0n Date: Mon, 25 Jan 2021 03:47:39 +0000 Subject: [PATCH] update initrd --- initrd | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/initrd b/initrd index e69de29..6539026 100644 --- a/initrd +++ b/initrd @@ -0,0 +1,44 @@ +#!/bin/bash + +set -e # exit on error +set -o pipefail # exit on pipeline error +set -u # treat unset variable as error + +SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" +PARENT_DIR="$(dirname "$SCRIPT_DIR")" +ISO_DIR="$(dirname "$SCRIPT_DIR")"/iso + +set +u +if [ -z $OUTPUT ]; then + . $SCRIPT_DIR/linux-live/buildconfig || exit 1 +fi +set -u +. $SCRIPT_DIR/linux-live/minioslib || exit 1 +. $SCRIPT_DIR/linux-live/config || exit 1 + +# don't change! use ./autoinstall instead +UNATTENDED="0" + +# ============= main ================ + +BUILD_DIR="" + +common_variables + +if [ -f /.dockerenv ] || [ "$container" = "podman" ]; then + new_run +fi + +console_colours + +allow_root_only + +create_livekitname_install_symlink + +create_completion + +create_backup + +build_initrd + +echo -e "${BOLD}${LIGHTYELLOW}$0${ENDCOLOUR} - ${LIGHTGREEN}Command completed successfully!${ENDCOLOUR}"