diff --git a/install.sh b/install.sh index fc7918db..b192c503 100755 --- a/install.sh +++ b/install.sh @@ -17,6 +17,7 @@ catch_errors() { echo "You can retry by running: bash ~/.local/share/omarchy/install.sh" fi + echo "See your installation log in ~/.local/state/omarchy/installation.log" echo "Get help from the community: https://discord.gg/tXFUdasqhY" } @@ -33,6 +34,9 @@ show_subtext() { echo } +# Start logging +source $OMARCHY_INSTALL/log/before-install.sh + # Install prerequisites source $OMARCHY_INSTALL/preflight/chroot.sh source $OMARCHY_INSTALL/preflight/mirrorlist.sh @@ -87,6 +91,9 @@ if ping -c5 omarchy.org &>/dev/null; then yay -Syu --noconfirm fi +# Stop logging +source $OMARCHY_INSTALL/log/after-install.sh + # Reboot show_logo laseretch 920 show_subtext "You're done! So we're ready to reboot now..." diff --git a/install/development/terminal.sh b/install/development/terminal.sh index c34affbf..2c8c464a 100644 --- a/install/development/terminal.sh +++ b/install/development/terminal.sh @@ -3,7 +3,7 @@ yay -S --noconfirm --needed \ unzip inetutils impala \ fd eza fzf ripgrep zoxide bat dust jq xmlstarlet \ - wl-clipboard fastfetch btop \ + wl-clipboard btop \ man tldr less whois plocate \ starship bash-completion \ alacritty diff --git a/install/log/after-install.sh b/install/log/after-install.sh new file mode 100644 index 00000000..71978631 --- /dev/null +++ b/install/log/after-install.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +echo -e "\n--- Pacman packages (after installation) ---" +echo "Total packages installed: $(pacman -Q | wc -l)" +pacman -Q diff --git a/install/log/before-install.sh b/install/log/before-install.sh new file mode 100644 index 00000000..66be587a --- /dev/null +++ b/install/log/before-install.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# Start logging a copy of everything sent to STDOUT and STDERR +mkdir -p ~/.local/state/omarchy/logs/ +exec &> >(tee -a ~/.local/state/omarchy/logs/installation.log) + +echo "--- System state before installation ---" +sudo pacman -S --noconfirm fastfetch +fastfetch + +echo -e "\n--- System logs (journalctl / current boot) ---" +journalctl -b --no-pager + +echo -e "\n--- Pacman packages (before installation) ---" +echo "Total packages installed: $(pacman -Q | wc -l)" +pacman -Q