mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
add stats
This commit is contained in:
parent
110b7d4e40
commit
a9b1d852fc
1 changed files with 7 additions and 6 deletions
|
@ -31,6 +31,9 @@ _result() {
|
||||||
_archboot_check
|
_archboot_check
|
||||||
echo "Waiting for pacman keyring..."
|
echo "Waiting for pacman keyring..."
|
||||||
_pacman_keyring
|
_pacman_keyring
|
||||||
|
echo "Bootup speed: $(systemd-analyze | rg -o '= (.*)' -r '$1') \
|
||||||
|
Packages: $(pacman -Q | wc -l) \
|
||||||
|
Available Memory: $(rg -o 'Ava.* (.*)[0-9]{3} k') </proc/meminfo)"
|
||||||
_run_test "journal"
|
_run_test "journal"
|
||||||
if ! journalctl -p3 -xb | rg -q 'No entries'; then
|
if ! journalctl -p3 -xb | rg -q 'No entries'; then
|
||||||
journalctl -p3 -xb >>journal-error.txt
|
journalctl -p3 -xb >>journal-error.txt
|
||||||
|
@ -40,21 +43,21 @@ _run_test "ldd"
|
||||||
echo -n "/usr/bin "
|
echo -n "/usr/bin "
|
||||||
for i in /usr/bin/*; do
|
for i in /usr/bin/*; do
|
||||||
if ldd "${i}" 2>"${_NO_LOG}" | rg -q 'not found'; then
|
if ldd "${i}" 2>"${_NO_LOG}" | rg -q 'not found'; then
|
||||||
echo "${i}" >>bin-binary-error.txt
|
echo "${i}" >>ldd-error.txt
|
||||||
ldd "${i}" | rg 'not found' >>ldd-error.txt
|
ldd "${i}" | rg 'not found' >>ldd-error.txt
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo -n "/usr/lib "
|
echo -n "/usr/lib "
|
||||||
for i in $(fd -u -t x -E '*.so.*' -E '*.so' -E 'ssh-sk-helper' . /usr/lib); do
|
for i in $(fd -u -t x -E '*.so.*' -E '*.so' -E 'ssh-sk-helper' . /usr/lib); do
|
||||||
if ldd "${i}" 2>"${_NO_LOG}" | rg -q 'not found'; then
|
if ldd "${i}" 2>"${_NO_LOG}" | rg -q 'not found'; then
|
||||||
echo "${i}" >>lib-binary-error.txt
|
echo "${i}" >>ldd-error.txt
|
||||||
ldd "${i}" | rg 'not found' >>ldd-error.txt
|
ldd "${i}" | rg 'not found' >>ldd-error.txt
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# ignore wrong reported libsystemd-shared by libsystemd-core
|
# ignore wrong reported libsystemd-shared by libsystemd-core
|
||||||
for i in $(fd -u '.so' /usr/lib); do
|
for i in $(fd -u '.so' /usr/lib); do
|
||||||
if ldd "${i}" 2>"${_NO_LOG}" | rg -v 'tree_sitter|libsystemd-shared' | rg -q 'not found'; then
|
if ldd "${i}" 2>"${_NO_LOG}" | rg -v 'tree_sitter|libsystemd-shared' | rg -q 'not found'; then
|
||||||
echo "${i}" >>lib-error.txt
|
echo "${i}" >>ldd-error.txt
|
||||||
ldd "${i}" | rg 'not found' >>ldd-error.txt
|
ldd "${i}" | rg 'not found' >>ldd-error.txt
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -76,9 +79,7 @@ for i in $(rg '/usr/bin/(.*)' -r '$1' binary.txt); do
|
||||||
done
|
done
|
||||||
_result base-binary-error.txt
|
_result base-binary-error.txt
|
||||||
_run_test "modules included /usr/lib/firmware"
|
_run_test "modules included /usr/lib/firmware"
|
||||||
if ! archboot-fw-check.sh run; then
|
archboot-fw-check.sh run
|
||||||
TEST_FAIL=1
|
|
||||||
fi
|
|
||||||
_result fw-error.txt
|
_result fw-error.txt
|
||||||
# uninstall base again!
|
# uninstall base again!
|
||||||
pacman --noconfirm -Rdd base gettext &>>"${_LOG}"
|
pacman --noconfirm -Rdd base gettext &>>"${_LOG}"
|
||||||
|
|
Loading…
Reference in a new issue