]> git.ipfire.org Git - oddments/fireinfo.git/commitdiff
Revert "Read mounted filesystems from /proc/mounts instead of /etc/mtab."
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 7 Feb 2014 13:56:14 +0000 (14:56 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 7 Feb 2014 13:56:28 +0000 (14:56 +0100)
This reverts commit c916f644c57b638b3128d0e882c32bf50ea29631.

For some reason, the output of /etc/mtab and /proc/mounts is not
identical and the root device is missing in /proc/mounts on IPFire.

src/fireinfo/system.py

index 800032ee8932023bdd293302ecada44100080e27..40ff7b08172cad61541fff45095bb4080c3aeb79 100644 (file)
@@ -364,7 +364,7 @@ class System(object):
                """
                        Return the dev node of the root disk.
                """
-               with open("/proc/mounts", "r") as f:
+               with open("/etc/mtab", "r") as f:
                        dev, mountpoint, fs, rest = f.readline().split(" ", 3)
                        if mountpoint == "/" and not fs == "rootfs":
                                # Cut off /dev