I’m re-snapping gotop, which has a disk widget showing mounted filesystems and their info, however, it gets fake mount points instead of the real ones:
Comparison:
Is there any way to fix this without patching the source?
I’m re-snapping gotop, which has a disk widget showing mounted filesystems and their info, however, it gets fake mount points instead of the real ones:
Comparison:
Is there any way to fix this without patching the source?
A possible solution is to patch the source to detect the existence of the /var/lib/snapd/hostfs
path in the mount point and strip it out as the real mount point:
host $ snap run --shell gotop-brlin
gotop-brlin $ grep sdb /proc/self/mounts
... stripped ...
/dev/sdb4 /var/lib/snapd/hostfs ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sdb4 /var/lib/snapd/hostfs ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sdb3 /var/lib/snapd/hostfs/media/Windows fuseblk rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 0 0
... stripped ...
id. est.:
/var/lib/snapd/hostfs -> /
/var/lib/snapd/hostfs/media/Windows -> /media/Windows