
* 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>
17 lines
490 B
Bash
17 lines
490 B
Bash
#!/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
|