Compare commits

...

2 Commits

Author SHA1 Message Date
Ryan Hughes
267a9e1765 Fix 2025-10-08 20:16:55 -04:00
Ryan Hughes
0e1f585166 Add sudoers to fix polkit error 2025-10-08 20:02:21 -04:00
5 changed files with 14 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ if [[ -f "$FIRST_RUN_MODE" ]]; then
rm -f "$FIRST_RUN_MODE" rm -f "$FIRST_RUN_MODE"
bash "$OMARCHY_PATH/install/first-run/battery-monitor.sh" bash "$OMARCHY_PATH/install/first-run/battery-monitor.sh"
bash "$OMARCHY_PATH/install/first-run/cleanup-reboot-sudoers.sh"
bash "$OMARCHY_PATH/install/first-run/firewall.sh" bash "$OMARCHY_PATH/install/first-run/firewall.sh"
bash "$OMARCHY_PATH/install/first-run/dns-resolver.sh" bash "$OMARCHY_PATH/install/first-run/dns-resolver.sh"
bash "$OMARCHY_PATH/install/first-run/gnome-theme.sh" bash "$OMARCHY_PATH/install/first-run/gnome-theme.sh"

View File

@@ -0,0 +1,3 @@
if sudo test -f /etc/sudoers.d/99-omarchy-installer-reboot; then
sudo rm -f /etc/sudoers.d/99-omarchy-installer-reboot
fi

View File

@@ -1,2 +1,3 @@
run_logged $OMARCHY_INSTALL/post-install/pacman.sh run_logged $OMARCHY_INSTALL/post-install/pacman.sh
source $OMARCHY_INSTALL/post-install/allow-reboot.sh
source $OMARCHY_INSTALL/post-install/finished.sh source $OMARCHY_INSTALL/post-install/finished.sh

View File

@@ -0,0 +1,5 @@
# Allow passwordless reboot for the installer - removed in first-run
sudo tee /etc/sudoers.d/99-omarchy-installer-reboot >/dev/null <<EOF
$USER ALL=(ALL) NOPASSWD: /usr/bin/reboot
EOF
sudo chmod 440 /etc/sudoers.d/99-omarchy-installer-reboot

View File

@@ -31,10 +31,10 @@ if gum confirm --padding "0 0 0 $((PADDING_LEFT + 32))" --show-help=false --defa
# Clear screen to hide any shutdown messages # Clear screen to hide any shutdown messages
clear clear
# Use systemctl if available, otherwise fallback to reboot command if [[ -n "${OMARCHY_CHROOT_INSTALL:-}" ]]; then
if command -v systemctl &>/dev/null; then touch /var/tmp/omarchy-install-completed
systemctl reboot --no-wall 2>/dev/null exit 0
else else
reboot 2>/dev/null sudo reboot 2>/dev/null
fi fi
fi fi