helmuthdu / conky_colors

CONKY-colors is an easier way to configure Conky
GNU General Public License v3.0
123 stars 39 forks source link

Fix BTRFS snapshots and Docker BTRFS mountpoint displays in Conky. #75

Closed kevinchevreuil closed 2 years ago

kevinchevreuil commented 2 years ago

Bug noticed on Kaisen Linux distribution in version 1.8 and 2.0RC4. With the lsblk command, mount points created by BTRFS snapshots (for example with Timeshift or apt-btrfs-snapshot) and the Docker daemon activated, two mount points pointing to the same path conflict with the hdcommon.py script and the / partition is not displayed anymore or displays the name of the snapshot volume.

So I modified lsblk with the df command, with an exclude of /run and /dev as well as /tmp/apt-btrfs-snapshot (the exclude didn't work with lsblk), to correct this problem and display only the partitions created manually by the user.