Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove --fstab from findmnt call in sysinfo
Initially I used this argument as I work with systems with a lot of bind mounts and it felt unnecessary to list them all, eg: Mount points Disk usage Inodes usage / 49% of 19.3G 12.8% of 1299984 /rw 35% of 20.5G 26.3% of 1373568 /home 35% of 20.5G 26.3% of 1373568 /usr/local 35% of 20.5G 26.3% of 1373568 /var/spool/cron 35% of 20.5G 26.3% of 1373568 /etc/hosts 35% of 20.5G 26.3% of 1373568 /var/lib/systemd/timers 35% of 20.5G 26.3% of 1373568 /var/lib/plocate 35% of 20.5G 26.3% of 1373568 /var/lib/containerd 35% of 20.5G 26.3% of 1373568 /etc/docker 35% of 20.5G 26.3% of 1373568 /var/lib/docker 35% of 20.5G 26.3% of 1373568 /home/user/.emacs.d/elpa 2% of 3.9G 2.4% of 262144 /rw/home/user/.emacs.d/elpa 2% of 3.9G 2.4% of 262144 /proc/xen - of 0 100.0% of 00 However it seems impossible to filter theses mounts in one call, (https://unix.stackexchange.com/questions/430074/how-to-exclude-bind-mounts-from-findmnt-results-list) and --fstab is a bad compromise as mounts points may be declared in many others ways than /etc/fstab.
- Loading branch information