Omarchy install - capture install log (#868)

* Omarchy install log

* Slim down the logging setup a bit, put it in a known directory, tell user about it

* Stick to what was

* Not needed here

* Prefer the duplication

---------

Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
Shigeto Kumagai
2025-08-22 14:58:33 +02:00
committed by GitHub
co-authored by David Heinemeier Hansson
parent b2161f1f31
commit 3a0bb502b6
4 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -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
+5
View File
@@ -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
+16
View File
@@ -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