#!/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; } declare -A GUID="" GUID=([ESP]="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" [ROOT]="4f68bce3-e8cd-4db1-96e7-fbcaf984b709") DEVICE="/dev/vda" mkdir repart || die 'Fehler beim erstellen des Directory' cd repart || die 'Fehler beim Directorywechsel' cat >10-esp.conf <20-root.conf <