summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMichal Sekletar <msekleta@redhat.com>2016-02-01 10:44:58 +0100
committerMichal Sekletar <msekleta@redhat.com>2016-02-02 16:46:28 +0100
commit795ab08f783e78e85f1493879f13ac44cb113b00 (patch)
tree6956a70d565ef6665410640f79bb1d61fcc6d1eb /Makefile.am
parentdcabda41558bf80724992d3973388af6974af5eb (diff)
journalctl: make "journalctl /dev/sda" work
Currently when journalctl is called with path to block device node we add following match _KERNEL_DEVICE=b$MAJOR:$MINOR. That is not sufficient to actually obtain logs about the disk because dev_printk() kernel helper puts to /dev/kmsg information about the device in following format, +$SUBSYSTEM:$ADDRESS, e.g. "+pci:pci:0000:00:14.0". Now we will walk upward the syspath and add match for every device in format produced by dev_printk() as well as match for its device node if it exists.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 27b727294e..6b185df6af 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4027,7 +4027,8 @@ journalctl_SOURCES = \
src/journal/journalctl.c
journalctl_LDADD = \
- libshared.la
+ libshared.la \
+ libudev-core.la
if HAVE_QRENCODE
journalctl_SOURCES += \