Jira (FACT-1964) Facter retrive the first mountpoint when multiple mountpoints are mounted to the same directory

0 views
Skip to first unread message

Oana Tanasoiu (JIRA)

unread,
Jul 23, 2019, 9:55:03 AM7/23/19
to puppe...@googlegroups.com
Oana Tanasoiu created an issue
 
Facter / Bug FACT-1964
Facter retrive the first mountpoint when multiple mountpoints are mounted to the same directory
Issue Type: Bug Bug
Affects Versions: FACT 3.11.8
Assignee: Oana Tanasoiu
Created: 2019/07/23 6:54 AM
Priority: Normal Normal
Reporter: Oana Tanasoiu

When two mountpoints are mounted to the same directory, facter only shows the first one that appears in /etc/mtab file.

Exemple: For CentOS 7 in mtab file are two entries for the root directory: 

rootfs / rootfs rw 0 0
/dev/mapper/vg0-root / xfs rw,relatime,attr2,inode64,noquota 0 0

Facter will only show the first one as a mountpoint for "/".

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Oana Tanasoiu (JIRA)

unread,
Jul 23, 2019, 9:56:03 AM7/23/19
to puppe...@googlegroups.com

Oana Tanasoiu (JIRA)

unread,
Jul 23, 2019, 10:00:03 AM7/23/19
to puppe...@googlegroups.com
Oana Tanasoiu updated an issue
When two mountpoints are mounted to the same directory, facter only shows the first one that appears in /etc/mtab file.

Exemple: For CentOS 7 in mtab file are two entries for the root directory: 
|

{code}
rootfs / rootfs rw 0 0 |
| /dev/mapper/vg0-root / xfs rw,relatime,attr2,inode64,noquota 0 0 |
{code}



Facter will only show the first one as a mountpoint for "/".

Mihai Buzgau (JIRA)

unread,
Jul 23, 2019, 10:12:02 AM7/23/19
to puppe...@googlegroups.com

Vadym Chepkov (JIRA)

unread,
Jul 23, 2019, 10:14:03 AM7/23/19
to puppe...@googlegroups.com
Vadym Chepkov commented on Bug FACT-1964
 
Re: Facter retrive the first mountpoint when multiple mountpoints are mounted to the same directory

Interestingly enough, rootfs is not shown in mount output, only in mountab:

# mount |grep root
/dev/mapper/vg0-root on / type xfs (rw,relatime,attr2,inode64,noquota)
# grep root /etc/mtab 
rootfs / rootfs rw 0 0
/dev/mapper/vg0-root / xfs rw,relatime,attr2,inode64,noquota 0 0

Mihai Buzgau (JIRA)

unread,
Jul 23, 2019, 10:14:03 AM7/23/19
to puppe...@googlegroups.com

Oana Tanasoiu (JIRA)

unread,
Jul 23, 2019, 10:20:03 AM7/23/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Jul 24, 2019, 4:34:03 AM7/24/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Jul 24, 2019, 4:34:03 AM7/24/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Aug 14, 2019, 6:40:03 AM8/14/19
to puppe...@googlegroups.com

Jean Bond (JIRA)

unread,
Aug 20, 2019, 3:00:15 PM8/20/19
to puppe...@googlegroups.com

Vadym Chepkov (JIRA)

unread,
Sep 15, 2019, 5:03:02 PM9/15/19
to puppe...@googlegroups.com
Vadym Chepkov commented on Bug FACT-1964
 
Re: Facter retrive the first mountpoint when multiple mountpoints are mounted to the same directory

Oana Tanasoiu, I think a more comprehensive solution would ignore all filesystems with nodev flag in /proc/filesystems

Mihai Buzgau (JIRA)

unread,
Oct 11, 2019, 4:18:03 AM10/11/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
 
Change By: Mihai Buzgau
Fix Version/s: FACT 3.11.10
Fix Version/s: FACT 3.13.4
Reply all
Reply to author
Forward
0 new messages