mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9b3e13df8 | ||
|
|
9775b01070 | ||
|
|
b42dcf098b | ||
|
|
6ae31aedae | ||
|
|
63b0cd64bd | ||
|
|
bf779a6bbc | ||
|
|
774b4700ef | ||
|
|
400a87955e | ||
|
|
fe48a16a90 |
18
bin/omarchy-update-analyze-logs
Executable file
18
bin/omarchy-update-analyze-logs
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
update_log="/tmp/omarchy-update.log"
|
||||||
|
|
||||||
|
# Check for errors
|
||||||
|
if grep -qi "error" "$update_log"; then
|
||||||
|
echo -e "\e[31mNon-stopping errors detected during update:\e[0m"
|
||||||
|
grep -i "error" "$update_log"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check for initramfs generation failure
|
||||||
|
if grep -q "Updating linux initcpios" "$update_log"; then
|
||||||
|
if ! grep -q "Initcpio image generation successful" "$update_log"; then
|
||||||
|
echo -e '\e[31mError: Initramfs generation may have failed. Review logs before restart.\e[0m'
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
fi
|
||||||
@@ -5,6 +5,9 @@ set -e
|
|||||||
# Ensure screensaver/sleep doesn't set in during updates
|
# Ensure screensaver/sleep doesn't set in during updates
|
||||||
hyprctl dispatch tagwindow +noidle &> /dev/null || true
|
hyprctl dispatch tagwindow +noidle &> /dev/null || true
|
||||||
|
|
||||||
|
# Capture update logs
|
||||||
|
exec > >(tee "/tmp/omarchy-update.log") 2>&1
|
||||||
|
|
||||||
# Perform all update steps
|
# Perform all update steps
|
||||||
omarchy-update-time
|
omarchy-update-time
|
||||||
omarchy-update-keyring
|
omarchy-update-keyring
|
||||||
@@ -12,6 +15,9 @@ omarchy-update-available-reset
|
|||||||
omarchy-update-system-pkgs
|
omarchy-update-system-pkgs
|
||||||
omarchy-migrate
|
omarchy-migrate
|
||||||
omarchy-hook post-update
|
omarchy-hook post-update
|
||||||
|
|
||||||
|
omarchy-update-analyze-logs
|
||||||
|
|
||||||
omarchy-update-restart
|
omarchy-update-restart
|
||||||
|
|
||||||
# Re-enable screensaver/sleep after updates
|
# Re-enable screensaver/sleep after updates
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ sudo pacman -Syyu --noconfirm
|
|||||||
if pacman -Qem >/dev/null; then
|
if pacman -Qem >/dev/null; then
|
||||||
if omarchy-pkg-aur-accessible; then
|
if omarchy-pkg-aur-accessible; then
|
||||||
echo -e "\e[32m\nUpdate AUR packages\e[0m"
|
echo -e "\e[32m\nUpdate AUR packages\e[0m"
|
||||||
yay -Sua --noconfirm
|
yay -Sua --noconfirm --ignore gcc14,gcc14-libs
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
echo -e "\e[31m\nAUR is unavailable (so skipping updates)\e[0m"
|
echo -e "\e[31m\nAUR is unavailable (so skipping updates)\e[0m"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ if [ -n "$NVIDIA" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pacman -S --needed --noconfirm "$KERNEL_HEADERS" "${PACKAGES[@]}"
|
omarchy-pkg-add "$KERNEL_HEADERS" "${PACKAGES[@]}"
|
||||||
|
|
||||||
# Configure modprobe for early KMS
|
# Configure modprobe for early KMS
|
||||||
sudo tee /etc/modprobe.d/nvidia.conf <<EOF >/dev/null
|
sudo tee /etc/modprobe.d/nvidia.conf <<EOF >/dev/null
|
||||||
|
|||||||
@@ -3,6 +3,17 @@ echo "Migrate legacy NVIDIA GPUs to nvidia-580xx driver (if needed)"
|
|||||||
# Only migrate GTX 9xx or 10xx (Pascal/Maxwell)
|
# Only migrate GTX 9xx or 10xx (Pascal/Maxwell)
|
||||||
NVIDIA="$(lspci | grep -i 'nvidia')"
|
NVIDIA="$(lspci | grep -i 'nvidia')"
|
||||||
if echo "$NVIDIA" | grep -qE "GTX 9|GTX 10"; then
|
if echo "$NVIDIA" | grep -qE "GTX 9|GTX 10"; then
|
||||||
|
if ! pacman -Qq | grep -qE '^linux(-[a-z0-9]+)?-headers$'; then
|
||||||
|
echo "Error: no linux headers package installed (required for DKMS drivers). Please install the appropriate headers and re-run this migration."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Piping yes to override existing packages
|
# Piping yes to override existing packages
|
||||||
yes | sudo pacman -S nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils
|
yes | sudo pacman -S nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils
|
||||||
|
|
||||||
|
# Verify packages were installed
|
||||||
|
if ! pacman -Qq nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils &>/dev/null; then
|
||||||
|
echo "Error: NVIDIA 580xx driver packages failed to install"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
accent = "#829dd4"
|
accent = "#82FB9C"
|
||||||
cursor = "#ddf7ff"
|
cursor = "#ddf7ff"
|
||||||
foreground = "#ddf7ff"
|
foreground = "#ddf7ff"
|
||||||
background = "#0B0C16"
|
background = "#0B0C16"
|
||||||
|
|||||||
Reference in New Issue
Block a user