diff options
author | Karel Zak | 2013-02-18 14:53:12 +0100 |
---|---|---|
committer | Karel Zak | 2013-02-18 15:00:57 +0100 |
commit | e346233ea2c234a28a9dc968bcc04e848af92033 (patch) | |
tree | a7b37ad69bf75f0a978408a0015a564516f52893 /misc-utils/Makemodule.am | |
parent | lsblk: resuse udev handler (diff) | |
download | kernel-qcow2-util-linux-e346233ea2c234a28a9dc968bcc04e848af92033.tar.gz kernel-qcow2-util-linux-e346233ea2c234a28a9dc968bcc04e848af92033.tar.xz kernel-qcow2-util-linux-e346233ea2c234a28a9dc968bcc04e848af92033.zip |
findmnt: allow to read (PART)UUID/LABEL from udev DB
Currently findmnt uses libmount to get filesystem properties (and
libmount uses libblkid). This works as expected, but root permissions
are required to read the tags from the devices.
It seems better to read the information from udev db and use libblkid
as fallback solution only.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/Makemodule.am')
-rw-r--r-- | misc-utils/Makemodule.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc-utils/Makemodule.am b/misc-utils/Makemodule.am index 1421fb438..2634b3d4c 100644 --- a/misc-utils/Makemodule.am +++ b/misc-utils/Makemodule.am @@ -137,6 +137,9 @@ dist_man_MANS += misc-utils/findmnt.8 findmnt_LDADD = $(LDADD) libmount.la libcommon.la findmnt_CFLAGS = $(AM_CFLAGS) -I$(ul_libmount_incdir) findmnt_SOURCES = misc-utils/findmnt.c +if HAVE_UDEV +findmnt_LDADD += -ludev +endif endif # BUILD_LIBMOUNT |