Skip to content

Commit

Permalink
Add persistent storage stats in status console
Browse files Browse the repository at this point in the history
This allows to inspect the usage of the persistent partition, which is
otherwise not inspectable without remote access. Other partitions are
not included on the assumption that a reboot would fix everything due to
their volatile state of being.
  • Loading branch information
knuton committed Aug 24, 2023
1 parent 2004085 commit 26b60a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/playos-status.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ let
screen=$(xrandr --current | grep '*' | awk '{print $1}')
networkCount=$(connmanctl services | grep wifi | wc -l)
rfid=$(opensc-tool --list-readers | pr -T -o 2)
dataDiskFree=$(df -h /mnt/data | pr -T -o 2)
controller=$(systemctl is-active playos-controller)
time=$(date +'%T %Z')
printf "\033c"
Expand All @@ -19,6 +20,8 @@ let
"Wi-Fi networks found: $networkCount" \
"RFID readers connected:" \
"$rfid" \
"Persistent storage:" \
"$dataDiskFree" \
"Controller: $controller" \
"Updated at: $time" \
> ${ttyPath}
Expand Down
1 change: 1 addition & 0 deletions controller/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- os: Split system definition into base and application layers
- os: Make build outputs and displayed system name configurable through application layer
- os: Include live system ISO in deployed outputs
- status screen: Display persistent storage usage statistics

# [2023.2.0] - 2023-03-06

Expand Down

0 comments on commit 26b60a5

Please sign in to comment.