Package: e2fsprogs Version: 1.47.0-2 Severity: normal Tags: patch upstream Dear Maintainer,
if there is systemctl package installed (which, according to its description, specifically purposed to "run services without systemd"), e2scrub_all tries to run systemd-escape and fails as it's absent. Changing the test to check for the existence of /run/systemd/system instead (like /etc/cron.d/e2scrub_all does) fixes it. -- System Information: Debian Release: 12.5 APT prefers stable-updates APT policy: (991, 'stable-updates'), (991, 'stable-security'), (991, 'stable'), (99, 'testing'), (90, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.6.13-bootes0-p-1000 (SMP w/16 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en_US Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages e2fsprogs depends on: ii libblkid1 2.38.1-5+deb12u1 ii libc6 2.36-9+deb12u6 ii libcom-err2 1.47.0-2 ii libext2fs2 1.47.0-2 ii libss2 1.47.0-2 ii libuuid1 2.38.1-5+deb12u1 ii logsave 1.47.0-2 Versions of packages e2fsprogs recommends: pn e2fsprogs-l10n <none> Versions of packages e2fsprogs suggests: ii e2fsck-static 1.47.0-2 pn fuse2fs <none> ii gpart 1:0.3-10 ii parted 3.5-3 -- Configuration Files: /etc/e2scrub.conf changed [not included] -- no debconf information
diff --git a/scrub/e2scrub_all.in b/scrub/e2scrub_all.in index fe4dda95..f0593d8c 100644 --- a/scrub/e2scrub_all.in +++ b/scrub/e2scrub_all.in @@ -161,7 +161,7 @@ mapfile -t targets < <(ls_targets) for tgt in "${targets[@]}"; do # If we're not reaping and systemd is present, try invoking the # systemd service. - if [ "${reap}" -ne 1 ] && type systemctl > /dev/null 2>&1; then + if [ "${reap}" -ne 1 ] && [ -e /run/systemd/system ]; then svcname="$(escape_path_for_systemd "${tgt}")" ${DBG} systemctl start "${svcname}" 2> /dev/null res=$?
signature.asc
Description: This is a digitally signed message part.