mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-05 20:28:25 +02:00
27 lines
850 B
Bash
Executable File
27 lines
850 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# System-level Omarchy install work. This intentionally runs as root inside
|
|
# the target system. User-home setup stays in finalize.sh.
|
|
|
|
export OMARCHY_INSTALL_LOG_FILE="${OMARCHY_INSTALL_LOG_FILE:-/var/log/omarchy-install.log}"
|
|
|
|
set -eEo pipefail
|
|
|
|
_OMARCHY_INSTALLER_DIR=$(dirname "$(realpath "${BASH_SOURCE[0]}")")
|
|
export OMARCHY_PATH="${OMARCHY_PATH:-$_OMARCHY_INSTALLER_DIR}"
|
|
export OMARCHY_INSTALL="${OMARCHY_INSTALL:-$_OMARCHY_INSTALLER_DIR/install}"
|
|
export PATH="${OMARCHY_PATH}/bin:$_OMARCHY_INSTALLER_DIR/bin:$PATH"
|
|
|
|
source "$OMARCHY_INSTALL/helpers/mode.sh"
|
|
detect_install_mode
|
|
export_legacy_mode_flags
|
|
source "$OMARCHY_INSTALL/helpers/chroot.sh"
|
|
source "$OMARCHY_INSTALL/helpers/logging.sh"
|
|
|
|
if (( EUID != 0 )); then
|
|
echo "Error: system-finalize.sh must run as root" >&2
|
|
exit 1
|
|
fi
|
|
|
|
source "$OMARCHY_INSTALL/system/all.sh"
|