Package: lvm2
Version: 2.03.09-2
Followup-For: Bug #966816

Dear Maintainer,

I noticed this bug as well, when I was upgrading lvm2. Here is a patch
to fix the problem:
diff --git a/scripts/blk_availability_systemd_red_hat.service.in b/scripts/blk_availability_systemd_red_hat.service.in
index c556e1c8d..c83f76a08 100644
--- a/scripts/blk_availability_systemd_red_hat.service.in
+++ b/scripts/blk_availability_systemd_red_hat.service.in
@@ -7,7 +7,7 @@ Conflicts=shutdown.target
 
 [Service]
 Type=oneshot
-ExecStart=@bindir@/true
+ExecStart=/bin/true
 ExecStop=@SBINDIR@/blkdeactivate -u -l wholevg -m disablequeueing -r wait
 RemainAfterExit=yes
 
This could also be fixed by fully expanding $bindir in configure like
$SBINDIR and some other variables, but the path to 'true' is independent
on $bindir anyway, so I think using /bin/true is a better
solution. (Also, I'm not even sure that $bindir _is_ /bin.)

It seems that this problem was present for quite a while, so I'm not
sure why I didn't notice it before.

Thanks,
Asher

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.7.0-2-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages lvm2 depends on:
ii  dmeventd                  2:1.02.171-2
ii  dmsetup                   2:1.02.171-2
ii  init-system-helpers       1.58
ii  libaio1                   0.3.112-8
ii  libblkid1                 2.36-2
ii  libc6                     2.31-2
ii  libdevmapper-event1.02.1  2:1.02.171-2
ii  libreadline5              5.2+dfsg-3+b13
ii  libselinux1               3.1-2
ii  libsystemd0               246-2
ii  libudev1                  246-2
ii  lsb-base                  11.1.0

Versions of packages lvm2 recommends:
ii  thin-provisioning-tools  0.8.5-4

lvm2 suggests no packages.

-- no debconf information

-- 
By necessity, by proclivity, and by delight, we all quote.  In fact, it is as
difficult to appropriate the thoughts of others as it is to invent.
                -- R. Emerson
                -- Quoted from a fortune cookie program
                (whose author claims, "Actually, stealing IS easier.")
                [to which I reply, "You think it's easy for me to
                misconstrue all these misquotations?!?"  Ed.]
                               --------
I prefer to send and receive mail encrypted. Please send me your
public key, and if you do not have my public key, please let me
know. Thanks.

GPG fingerprint: 38F3 975C D173 4037 B397  8095 D4C9 C4FC 5460 8E68

Attachment: signature.asc
Description: PGP signature

Reply via email to