From 56395fe30ba78987e3028599ac1057de7d15e56b Mon Sep 17 00:00:00 2001 From: Gerhard Gonter <ggonter@gmail.com> Date: Wed, 30 Apr 2025 18:50:36 +0200 Subject: [PATCH] Debian does not have messages or syslog anymore --- hacks/linux/lvm/cfgmgr.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hacks/linux/lvm/cfgmgr.pl b/hacks/linux/lvm/cfgmgr.pl index 79dc0c9..147ed30 100755 --- a/hacks/linux/lvm/cfgmgr.pl +++ b/hacks/linux/lvm/cfgmgr.pl @@ -8,7 +8,8 @@ $Data::Dumper::Indent= 1; open (MSG, '/var/log/messages') # RHEL, CentOS or open (MSG, '/var/log/syslog') # Ubuntu - or die "cant read messages"; # TODO: or try something else? + or open (MSG, '|-', 'journalctl -ex') # Debian + or die "can't read messages"; # TODO: or try something else? seek (MSG, 0, 2); -- GitLab