Closed Aleksanaa closed 1 year ago
Can you please post the content of /proc/mounts
?
Can you please post the content of
/proc/mounts
?
Obviously the same with the mount
command output above.
Can you please post the content of
/proc/mounts
?
And this is what matters:
/dev/mapper/nix on /nix type btrfs (rw,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/)
/dev/mapper/nix on /var/lib type btrfs (rw,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/)
/dev/mapper/nix on /nix/store type btrfs (ro,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/)
/dev/mapper/nix on /etc/NetworkManager/system-connections type btrfs (rw,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/)
/dev/mapper/nix on /etc/nixos type btrfs (rw,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/)
As you can see, I'm using tmpfs as root, and a module named impermanence bind mount my /etc/nixos
, /etc/NetworkManager
and /var/lib
to /nix/persist/<the corresponding dir>
. The /nix/store
is just a bind mount nixos sets to ensure that directory is readonly.
And this list seems to be sorted by time. So what we could do is just follow its order and only show once for every block device.
Obviously the same with the mount command output above.
Its usually not exactly the same (mount
sometimes adds "" and stuff like that) and since fastfetch parses the file, I need to know exactly what it has to look for.
Obviously the same with the mount command output above.
Its usually not exactly the same (
mount
sometimes adds "" and stuff like that) and since fastfetch parses the file, I need to know exactly what it has to look for.
none / tmpfs rw,relatime,size=2097152k,mode=755 0 0
/dev/dm-0 /nix btrfs rw,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/dm-0 /var/lib btrfs rw,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/ 0 0
tmpfs /run tmpfs rw,nosuid,nodev,size=3546244k,nr_inodes=819200,mode=755 0 0
devtmpfs /dev devtmpfs rw,nosuid,size=709252k,nr_inodes=1769209,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=3,mode=620,ptmxmode=666 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,size=7092488k 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
ramfs /run/keys ramfs rw,nosuid,nodev,relatime,mode=750 0 0
tmpfs /run/wrappers tmpfs rw,nodev,relatime,size=7092488k,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/dm-0 /nix/store btrfs ro,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/ 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
ramfs /run/credentials/systemd-tmpfiles-setup-dev.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
/dev/dm-0 /etc/NetworkManager/system-connections btrfs rw,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/dm-0 /etc/nixos btrfs rw,noatime,compress=lzo,ssd,discard,space_cache=v2,subvolid=5,subvol=/ 0 0
ramfs /run/credentials/systemd-sysctl.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
/dev/nvme0n1p1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
ramfs /run/credentials/systemd-tmpfiles-setup.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
/dev/mapper/_dev_nvme0n1p3 /home/aleksana btrfs rw,relatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=1418496k,nr_inodes=354624,mode=700,uid=1000,gid=100 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
portal /run/user/1000/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
git head should be working.
git head should be working.
No, it's still the same.
Silly me was comparing mount paths instead of device paths. This time it should work.
Silly me was comparing mount paths instead of device paths. This time it should work.
It works! Thanks, I'll close this issue.
General description of bug:
If there are several bind-mount mountpoints, each of them will be shown, which doesn't make sense.
My recommendation is sort them by time (just as
mount
do) and only show the earliest mountpoint for a block device.This is what
fastfetch
shows:And this is what
df -hl
shows:This is what
mount
shows:Often helpful questions:
Output of
fastfetch --version
:The following contents aren't helpful since I'm using nixos.