Add support for variable repo and refs (#23)
* Add ability to define repo / refs to use * Add bare mode
This commit is contained in:
1 parent
f6468f8cc6
commit
35bd1df498
4 files changed
+37
-2
No files matched your search
@@ -8,6 +8,9 @@ chroot_bash() {
|
||||
OMARCHY_USER_EMAIL="$(<user_email_address.txt)" \
|
||||
USER="$OMARCHY_USER" \
|
||||
HOME="/home/$OMARCHY_USER" \
|
||||
OMARCHY_REPO="$(<omarchy_installer_repo.txt)" \
|
||||
OMARCHY_REF="$(<omarchy_installer_ref.txt)" \
|
||||
OMARCHY_BARE="$(<omarchy_bare.txt)" \
|
||||
/bin/bash "$@"
|
||||
}
|
||||
|
||||
@@ -65,5 +68,5 @@ EOF
|
||||
chmod 440 /mnt/etc/sudoers.d/99-omarchy-installer
|
||||
|
||||
# Run Omarchy web installer
|
||||
chroot_bash -lc "wget -qO- https://omarchy.org/install-dev | bash"
|
||||
chroot_bash -lc "wget -qO- https://omarchy.org/install | bash"
|
||||
fi
|
||||
+5
-1
@@ -21,7 +21,11 @@ printf '%s\n' "${arch_packages[@]}" >>"packages.x86_64"
|
||||
|
||||
# Retrieve the latest configurator for setting up user and selecting install disk.
|
||||
wget -qO "airootfs/root/configurator" \
|
||||
https://raw.githubusercontent.com/omacom-io/omarchy-configurator/HEAD/configurator
|
||||
https://raw.githubusercontent.com/$OMARCHY_CONFIGURATOR_REPO/$OMARCHY_CONFIGURATOR_REF/configurator
|
||||
|
||||
echo "$OMARCHY_INSTALLER_REPO" >airootfs/root/omarchy_installer_repo.txt
|
||||
echo "$OMARCHY_INSTALLER_REF" >airootfs/root/omarchy_installer_ref.txt
|
||||
echo "$OMARCHY_BARE" >airootfs/root/omarchy_bare.txt
|
||||
|
||||
# Avoid using reflector for mirror identification as we are relying on the global CDN
|
||||
rm "airootfs/etc/systemd/system/multi-user.target.wants/reflector.service"
|
||||
|
||||
Reference in new issue
Block a user