Subject: open-iscsi: post installation script always fails with sysvinit-core

From: Ryutaroh Matsumoto <[email-masked]>
Date: Mon, 01 Mar 2021 09:15:44 +0900 (JST)

Package: open-iscsi
Version: 2.1.3-2
Severity: grave
Tags: debian ceres chimaera
Justification: renders package unusable

Dear Maintainer,

When /sbin/init is sysvinit-core, post installation script of open-iscsi
always fails as below. This is also reproduced in Debian Sid with sysvinit-core,
and reported in BTS as
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983737

Script started on 2021-03-01 08:24:36+09:00 [TERM="linux" TTY="/dev/tty1" COLUMNS="128" LINES="48"]
root@host:~# apt-get install open-iscsi
Reading package lists... 0%Reading package lists... 100%Reading package lists... Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency tree... 50%Building dependency tree... 50%Building dependency tree       
Reading state information... 0%Reading state information... 0%Reading state information... Done
The following additional packages will be installed:
  libisns0 libopeniscsiusr
The following NEW packages will be installed:
  libisns0 libopeniscsiusr open-iscsi
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 484 kB of archives.
After this operation, 2,169 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Preconfiguring packages ...
Selecting previously unselected package libisns0:amd64.
Preparing to unpack .../libisns0_0.100-3_amd64.deb ...
Unpacking libisns0:amd64 (0.100-3) ...
Selecting previously unselected package libopeniscsiusr.
Preparing to unpack .../libopeniscsiusr_2.1.3-2_amd64.deb ...
Unpacking libopeniscsiusr (2.1.3-2) ...
Selecting previously unselected package open-iscsi.
Preparing to unpack .../open-iscsi_2.1.3-2_amd64.deb ...
Unpacking open-iscsi (2.1.3-2) ...
Setting up libopeniscsiusr (2.1.3-2) ...
Setting up libisns0:amd64 (0.100-3) ...
Setting up open-iscsi (2.1.3-2) ...
Starting iSCSI initiator daemon: iscsidSetting up iSCSI targets:
iscsiadm: No records found
.
Starting iSCSI initiator daemon: iscsidSetting up iSCSI targets:
iscsiadm: No records found
.
dpkg: error processing package open-iscsi (--configure):
 installed open-iscsi package post-installation script subprocess was killed by signal (Terminated)
Processing triggers for libc-bin (2.31-9) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for initramfs-tools (0.139) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-3-amd64
Errors were encountered while processing:
 open-iscsi
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@host:~# exit
exit

Script done on 2021-03-01 08:58:58+09:00 [COMMAND_EXIT_CODE="100"]

Best regards, Ryutaroh Matsumoto

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera/ceres)
Release:	testing/unstable
Codename:	n/a
Architecture: x86_64

Kernel: Linux 5.10.0-3-amd64 (SMP w/2 CPU threads)
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: sysvinit (via /sbin/init)

Versions of packages open-iscsi depends on:
ii  debconf [debconf-2.0]      1.5.74
ii  eudev [udev]               3.2.9-8
ii  libc6                      2.31-9
ii  libelogind0 [libsystemd0]  246.9.1-1
ii  libisns0                   0.100-3
ii  libkmod2                   28-1
ii  libmount1                  2.36.1-7+devuan1
ii  libopeniscsiusr            2.1.3-2
ii  libssl1.1                  1.1.1j-1

open-iscsi recommends no packages.

open-iscsi suggests no packages.

-- debconf information excluded