From 8263d92b5bd0a529f77d3a609edd6488cd317e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20unbrot=20P=C3=A4tzold?= Date: Thu, 30 Apr 2026 17:16:26 +0200 Subject: [PATCH] Add install_from_repo.sh --- install.md | 2 +- system_setup/install_from_repo.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 system_setup/install_from_repo.sh diff --git a/install.md b/install.md index caec2b1..e346678 100644 --- a/install.md +++ b/install.md @@ -1,4 +1,4 @@ -# OEMDRV Bootstrap — install.sh +# OEMDRV Bootstrap — install.sh + install_from_repo.sh the script `./system_setup/install.sh` prepares a target machine for automated Fedora deployment. It shrinks an existing partition to carve out a dedicated **OEMDRV** partition, which Anaconda/Kickstart will detect automatically during installation. diff --git a/system_setup/install_from_repo.sh b/system_setup/install_from_repo.sh new file mode 100755 index 0000000..5273ed6 --- /dev/null +++ b/system_setup/install_from_repo.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh +# SPDX-FileCopyrightText: Daniel Pätzold +# SPDX-License-Identifier: AGPL-3.0-or-later +# +# Fetches the installfile from a repository and runs it +# +REPO_URL="${1:-https://gitea.dtext.online/obel1x/fedora-OEMDRV.git}" +REPO_BRANCH="${2:-main}" + +SCRIPTURL="${REPO_URL%.git}/raw/branch/${REPO_BRANCH}/system_setup/install.sh" +echo "Fetching from ${SCRIPTURL} and running script with sudo" +curl -fsSL ${SCRIPTURL} -o /tmp/install.sh && sudo bash /tmp/install.sh ${REPO_URL}