From c337c551d68f93f402453b05d1ac268c072c732b Mon Sep 17 00:00:00 2001 From: eichehome Date: Wed, 20 Dec 2023 00:08:58 +0100 Subject: [PATCH] Some first setup and setup for manual-mkosi --- manual-build/init.sh | 54 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 manual-build/init.sh diff --git a/manual-build/init.sh b/manual-build/init.sh new file mode 100644 index 0000000..935016c --- /dev/null +++ b/manual-build/init.sh @@ -0,0 +1,54 @@ +#!/bin/bash + +# shellcheck disable=SC2059 # $1 and $2 can contain the printf modifiers +out() { printf "$1 $2\n" "${@:3}"; } +error() { out "==> ERROR:" "$@"; } >&2 +warning() { out "==> WARNING:" "$@"; } >&2 +msg() { out "==>" "$@"; } +die() { error "$@"; exit 1; } + +DEVICE="/dev/vda" + +mkdir repart || die 'Fehler beim erstellen des Directory' +cd repart || die 'Fehler beim Directorywechsel' + +cat >10-esp.conf <20-root.conf <