Package: lvm2
Version: 2.03.09-2
Severity: important
File: /lib/systemd/system/blk-availability.service

$ systemctl cat blk-availability.service
# /lib/systemd/system/blk-availability.service
[Unit]
Description=Availability of block devices
Before=shutdown.target
After=lvm2-activation.service iscsi-shutdown.service iscsi.service 
iscsid.service fcoe.service rbdmap.service
DefaultDependencies=no
Conflicts=shutdown.target

[Service]
Type=oneshot
ExecStart=${exec_prefix}/bin/true
ExecStop=/sbin/blkdeactivate -u -l wholevg -m disablequeueing -r wait
RemainAfterExit=yes

[Install]
WantedBy=sysinit.target



ExecStart=${exec_prefix}/bin/true → This is obviously wrong.

Instead of fixing the path again ( I see there have been bugs in
that regard in the past already), you might consider dropping the
ExecStart= altogether. For Type=oneshot services, ExecStart= does not
need to be set.

When stopping the service, I also noticed
Aug 02 19:54:05 pluto blkdeactivate[42210]: /sbin/blkdeactivate: Zeile 345: 
/bin/sort: No such file or directory



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

Kernel: Linux 5.7.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.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-1
ii  libudev1                  246-1
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

Reply via email to