Renamed configurator
This commit is contained in:
1 parent
50d770b43e
commit
84dec181e1
4 files changed
+10
-9
No files matched your search
@@ -25,13 +25,13 @@ catch_errors() {
|
|||||||
trap catch_errors ERR
|
trap catch_errors ERR
|
||||||
|
|
||||||
if [[ $(tty) == "/dev/tty1" ]]; then
|
if [[ $(tty) == "/dev/tty1" ]]; then
|
||||||
# Configurator for new user install
|
# Configurator for user information, disk selection, and wifi configuration
|
||||||
NETWORK_NEEDED=1 ./installer
|
NETWORK_NEEDED=1 ./configurator
|
||||||
|
|
||||||
# Get username from installer config for reliable error recovery
|
# Get username from installer config for reliable error recovery
|
||||||
OMARCHY_USER="$(jq -r '.users[0].username' user_credentials.json)"
|
OMARCHY_USER="$(jq -r '.users[0].username' user_credentials.json)"
|
||||||
|
|
||||||
# Install using files generated by the ./installer
|
# Install using files generated by the ./configurator
|
||||||
archinstall \
|
archinstall \
|
||||||
--config user_configuration.json \
|
--config user_configuration.json \
|
||||||
--creds user_credentials.json \
|
--creds user_credentials.json \
|
||||||
@@ -46,6 +46,6 @@ $OMARCHY_USER ALL=(ALL:ALL) NOPASSWD: ALL
|
|||||||
EOF
|
EOF
|
||||||
chmod 440 /mnt/etc/sudoers.d/99-omarchy-installer
|
chmod 440 /mnt/etc/sudoers.d/99-omarchy-installer
|
||||||
|
|
||||||
# Install from the Omarchy web 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-dev | bash"
|
||||||
fi
|
fi
|
||||||
+4
-3
@@ -5,7 +5,7 @@ set -e
|
|||||||
pacman-key --init
|
pacman-key --init
|
||||||
pacman --noconfirm -Sy archlinux-keyring archiso sudo base-devel wget git
|
pacman --noconfirm -Sy archlinux-keyring archiso sudo base-devel wget git
|
||||||
|
|
||||||
# Packages needed for when we run the Omarchy installer
|
# Packages needed for the Omarchy configurator (installer will fetch its own)
|
||||||
arch_packages=(git wget gum openssl iw jq)
|
arch_packages=(git wget gum openssl iw jq)
|
||||||
|
|
||||||
# We build our iso here
|
# We build our iso here
|
||||||
@@ -19,8 +19,9 @@ cp -r /archiso/configs/releng/* .
|
|||||||
# Add our needed packages to packages.x86_64
|
# Add our needed packages to packages.x86_64
|
||||||
printf '%s\n' "${arch_packages[@]}" >>"packages.x86_64"
|
printf '%s\n' "${arch_packages[@]}" >>"packages.x86_64"
|
||||||
|
|
||||||
# Insert the configurator in the root users home folder (default user in the official releng ISO profile).
|
# Retrieve the latest configurator for setting up user and selecting install disk.
|
||||||
wget -qO "airootfs/root/installer" https://raw.githubusercontent.com/omacom-io/omarchy-installer/HEAD/installer
|
wget -qO "airootfs/root/configurator" \
|
||||||
|
https://raw.githubusercontent.com/omacom-io/omarchy-configurator/HEAD/configurator
|
||||||
|
|
||||||
# Avoid using reflector for mirror identification as we are relying on the global CDN
|
# 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"
|
rm "airootfs/etc/systemd/system/multi-user.target.wants/reflector.service"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
["/root"]="0:0:750"
|
["/root"]="0:0:750"
|
||||||
["/root/.automated_script.sh"]="0:0:755"
|
["/root/.automated_script.sh"]="0:0:755"
|
||||||
["/root/.gnupg"]="0:0:700"
|
["/root/.gnupg"]="0:0:700"
|
||||||
+ ["/root/installer"]="0:0:755"
|
+ ["/root/configurator"]="0:0:755"
|
||||||
+ ["/var/cache/omarchy/mirror/offline/"]="0:0:775"
|
+ ["/var/cache/omarchy/mirror/offline/"]="0:0:775"
|
||||||
+ ["/root/check_connectivity.sh"]="0:0:755"
|
+ ["/root/check_connectivity.sh"]="0:0:755"
|
||||||
["/usr/local/bin/choose-mirror"]="0:0:755"
|
["/usr/local/bin/choose-mirror"]="0:0:755"
|
||||||
|
|||||||
@@ -20,6 +20,6 @@
|
|||||||
["/usr/local/bin/choose-mirror"]="0:0:755"
|
["/usr/local/bin/choose-mirror"]="0:0:755"
|
||||||
- ["/usr/local/bin/Installation_guide"]="0:0:755"
|
- ["/usr/local/bin/Installation_guide"]="0:0:755"
|
||||||
- ["/usr/local/bin/livecd-sound"]="0:0:755"
|
- ["/usr/local/bin/livecd-sound"]="0:0:755"
|
||||||
+ ["/root/installer"]="0:0:755"
|
+ ["/root/configurator"]="0:0:755"
|
||||||
)
|
)
|
||||||
|
|
||||||
Reference in new issue
Block a user