sys-fs/e2fsprogs-1.45.1 installs /etc/cron.d/e2scrub_all, which specifies a cronjob that invokes /sbin/e2scrub_all, which requires lvcreate or else prints this message: e2scrub_all: can't find lvcreate --- is lvm2 installed? This output unfortunately triggers cron to email the administrator with this pointless message every day. If sys-fs/lvm2 is not installed (or is installed with USE="device-mapper-only"), then sys-fs/e2fsprogs should not install a cronjob that complains about lvcreate not being installed.
+1 By the way, is there a reason to have 2 slashes before e2scrub_all? 10 3 * * * root test -e /run/systemd/system || //sbin/e2scrub_all -A -r
(In reply to Tomáš Mózes from comment #1) > By the way, is there a reason to have 2 slashes before e2scrub_all? It doesn't hurt, but it's sloppy. I assume it comes from a careless variable substitution of the form "${ROOT}/sbin/e2scrub_all". When ROOT="/", then such substitution produces "//sbin/e2scrub_all". A substitution of this form should be changed to the form "${ROOT%/}/sbin/e2scrub_all" to avoid the double slash.
(In reply to Matt Whitlock from comment #2) > (In reply to Tomáš Mózes from comment #1) > > By the way, is there a reason to have 2 slashes before e2scrub_all? > > It doesn't hurt, but it's sloppy. I assume it comes from a careless variable > substitution of the form "${ROOT}/sbin/e2scrub_all". When ROOT="/", then > such substitution produces "//sbin/e2scrub_all". A substitution of this form > should be changed to the form "${ROOT%/}/sbin/e2scrub_all" to avoid the > double slash. It's coming from --with-root-prefix="${EPREFIX}/" configure option. Simply dropping the trailing slash does the trick. I have a working fix but cannot commit it because of some keyword conflicts...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5cad1dc885bf5fce971a9a514bcc6776cd842c9 commit f5cad1dc885bf5fce971a9a514bcc6776cd842c9 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2019-05-14 09:50:24 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2019-05-14 09:55:32 +0000 sys-fs/e2fsprogs: Revbump to make cron script optional because of its dependency to sys-fs/lvm2 Also remove trailing slash from --with-root-prefix configure option Closes: https://bugs.gentoo.org/685934 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> .../{e2fsprogs-1.45.1.ebuild => e2fsprogs-1.45.1-r1.ebuild} | 7 ++++--- sys-fs/e2fsprogs/metadata.xml | 1 + 2 files changed, 5 insertions(+), 3 deletions(-)
Thank you Lars.