Add install_from_repo.sh
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Executable
+12
@@ -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}
|
||||
Reference in New Issue
Block a user