add rootfs size to stats

This commit is contained in:
Tobias Powalowski 2024-07-14 14:15:47 +02:00
parent dbdd4e7506
commit 3988097cff

View file

@ -35,7 +35,7 @@ echo -e "\e[1mArchboot Environment Stats:\e[m"
echo "Bootup speed (seconds): $(systemd-analyze | rg -o '= (.*)s' -r '$1') |\
Packages: $(pacman -Q | wc -l) |\
Available Memory (M): $(rg -o 'Ava.* (.*)[0-9]{3} k' -r '$1' </proc/meminfo) |\
Rootfs Size (M): $(du -sh / 2>"${_NO_LOG}" | rg -o '(.*)M /' -r '$1')"
Rootfs Size (M): $(du -sh / 2>"${_NO_LOG}" | rg -o '(.*)M' -r '$1')"
_run_test "journal"
if ! journalctl -p3 -xb | rg -q 'No entries'; then
journalctl -p3 -xb >>journal-error.txt