Bug#1014314: lvm2: Missing 69-lvm-metad.rules causes lvm2 initramfs-tools hook to fail

2022-07-04 Thread Anatoly Pugachev
Package: lvm2
Version: 2.03.15-1
Followup-For: Bug #1014314

Dear Maintainer,

I have to remove offending lines from
/usr/share/initramfs-tools/hooks/lvm2 file, so my "update-initramfs -u"
to start working again.

I don't have /etc/udev/rules.d/56-lvm.rules nor 69-lvm-metad.rules
installed on my system.

Can someone please look?!

Thanks.



-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: sparc64

Kernel: Linux 5.19.0-rc5 (SMP w/16 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 /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lvm2 depends on:
ii  dmeventd  2:1.02.183-1
ii  dmsetup   2:1.02.183-1
ii  init-system-helpers   1.63
ii  libaio1   0.3.113-2
ii  libblkid1 2.38-4
ii  libc6 2.33-7
ii  libdevmapper-event1.02.1  2:1.02.183-1
ii  libdevmapper1.02.12:1.02.183-1
ii  libedit2  3.1-20210910-1
ii  libselinux1   3.4-1
ii  libsystemd0   251.2-7
ii  libudev1  251.2-7
ii  lsb-base  11.2

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/initramfs-tools/hooks/lvm2 (from lvm2 package)



Bug#946882: [ 9.720909] systemd[1]: /lib/systemd/system/blk-availability.service:10: Neither a valid executable name nor an absolute path: ${exec_prefix}/bin/true

2020-08-03 Thread Anatoly Pugachev
Looking at the file :

$ cat /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


something is forgot to substitute prefix ${exec_prefix} ...



Bug#815004: libengine-pkcs11-openssl: Engine is installed at wrong location (sparc64 as well)

2016-03-20 Thread Anatoly Pugachev
File path seems to be fixed in new / last version?

mator@deb4g:~$ dpkg -s libengine-pkcs11-openssl | grep Ver
Version: 0.2.1-2

mator@deb4g:~$ dpkg -L libengine-pkcs11-openssl | grep libpkcs11.so
/usr/lib/sparc64-linux-gnu/openssl-1.0.2/engines/libpkcs11.so


But still can't use pkcs11 module:

mator@deb4g:~$ openssl speed rsa2048 -engine pkcs11
Unable to load module (null)
can't use that engine
1892278191086816:error:80001401:PKCS11
library:PKCS11_CTX_load:Unable to load PKCS#11 module:p11_load.c:84:
1892278191086816:error:260B806D:engine
routines:ENGINE_TABLE_REGISTER:init failed:eng_table.c:175:
Unable to load module (null)
Doing 2048 bit private rsa's for 10s: 12687 2048 bit private RSA's in 10.00s
Doing 2048 bit public rsa's for 10s: 387140 2048 bit public RSA's in 10.00s
OpenSSL 1.0.2g  1 Mar 2016
built on: reproducible build, date unspecified
options:bn(64,32) rc4(ptr,char) des(ptr,risc1,16,int) aes(partial) blowfish(ptr)
compiler: gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC
-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64
-DB_ENDIAN -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro
-Wa,--noexecstack -Wall -DULTRASPARC -DBN_DIV2W -DOPENSSL_BN_ASM_MONT
-DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM
-DAES_ASM -DGHASH_ASM
  signverifysign/s verify/s
rsa 2048 bits 0.000788s 0.26s   1268.7  38714.0

mator@deb4g:~$ openssl engine pkcs11 -t
(pkcs11) pkcs11 engine
Unable to load module (null)
 [ unavailable ]

mator@deb4g:~$ strace -e trace=file openssl engine pkcs11 -t
execve("/usr/bin/openssl", ["openssl", "engine", "pkcs11", "-t"], [/*
16 vars */]) = 0
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/usr/lib/sparc64-linux-gnu/libssl.so.1.0.2", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/usr/lib/sparc64-linux-gnu/libcrypto.so.1.0.2", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/lib/sparc64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/lib/sparc64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/ssl/openssl.cnf", O_RDONLY) = 3
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/sparc64-linux-gnu/openssl-1.0.2/engines/libpkcs11.so",
O_RDONLY|O_CLOEXEC) = 3
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
access("/etc/ld.so.nohwcap", F_OK)  = -1 ENOENT (No such file or directory)
open("/usr/lib/sparc64-linux-gnu/libp11.so.2", O_RDONLY|O_CLOEXEC) = 3
(pkcs11) pkcs11 engine
Unable to load module (null)
 [ unavailable ]
+++ exited with 0 +++
mator@deb4g:~$



on the other machine (fedora x86_64 , vmware guest):

[mator@node01 ~]$ openssl engine pkcs11 -t
(pkcs11) pkcs11 engine
 [ available ]

[mator@node01 ~]$ strace -e trace=file openssl engine pkcs11 -t
execve("/usr/bin/openssl", ["openssl", "engine", "pkcs11", "-t"], [/*
25 vars */]) = 0
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libssl.so.10", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libgssapi_krb5.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libkrb5.so.3", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libcom_err.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libk5crypto.so.3", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libcrypto.so.10", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libkrb5support.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libkeyutils.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3
statfs("/sys/fs/selinux", {f_type="SELINUX_MAGIC", f_bsize=4096,
f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0,
0}, f_namelen=255, f_frsize=4096, f_flags=4128}) = 0
statfs("/sys/fs/selinux", {f_type="SELINUX_MAGIC", f_bsize=4096,
f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0,
0}, f_namelen=255, f_frsize=4096, f_flags=4128}) = 0
access("/etc/selinux/config", F_OK) = 0
access("/etc/system-fips", F_OK)= -1 ENOENT (No such file or directory)
open("/etc/pki/tls/openssl.cnf", O_RDONLY) = 3
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib64/openssl/engines/libpkcs11.so", O_RDONLY|O_CLOEXEC) = 3
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib64/libp11.so.2", 

Bug#815004: libengine-pkcs11-openssl: Engine is installed at wrong location (sparc64 as well)

2016-02-25 Thread Anatoly Pugachev
Package: libengine-pkcs11-openssl
Version: 0.2.1-1
Followup-For: Bug #815004

Dear Maintainer,


sparc64 as well

mator@deb4g:~$ openssl speed rsa2048 -engine pkcs11
invalid engine "pkcs11"
1892278191086752:error:25066067:DSO support routines:DLFCN_LOAD:could not 
load the shared 
library:dso_dlfcn.c:187:filename(/usr/lib/sparc64-linux-gnu/openssl-1.0.2/engines/libpkcs11.so):
 /usr/lib/sparc64-linux-gnu/openssl-1.0.2/engines/libpkcs11.so: cannot open 
shared object file: No such file or directory
1892278191086752:error:25070067:DSO support routines:DSO_load:could not 
load the shared library:dso_lib.c:232:
1892278191086752:error:260B6084:engine routines:DYNAMIC_LOAD:dso not 
found:eng_dyn.c:465:
1892278191086752:error:2606A074:engine routines:ENGINE_by_id:no such 
engine:eng_list.c:390:id=pkcs11
1892278191086752:error:25066067:DSO support routines:DLFCN_LOAD:could not 
load the shared library:dso_dlfcn.c:187:filename(libpkcs11.so): libpkcs11.so: 
cannot open shared object file: No such file or directory
1892278191086752:error:25070067:DSO support routines:DSO_load:could not 
load the shared library:dso_lib.c:232:
1892278191086752:error:260B6084:engine routines:DYNAMIC_LOAD:dso not 
found:eng_dyn.c:465:
Doing 2048 bit private rsa's for 10s: 12688 2048 bit private RSA's in 10.00s


mator@deb4g:~$ dpkg -L libengine-pkcs11-openssl | grep libpkcs11.so
/usr/lib/ssl/engines/libpkcs11.so

-- System Information:
Debian Release: stretch/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: sparc64

Kernel: Linux 4.4.0-trunk-sparc64-smp (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libengine-pkcs11-openssl depends on:
ii  libc62.21-9
ii  libp11-2 0.3.1-1
ii  libssl1.0.2  1.0.2f-2

libengine-pkcs11-openssl recommends no packages.

libengine-pkcs11-openssl suggests no packages.

-- no debconf information