** Package changed: linux (Ubuntu) => opencryptoki (Ubuntu)
** Also affects: ubuntu-z-systems
Importance: Undecided
Status: New
** Changed in: ubuntu-z-systems
Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)
** Changed in: ubuntu-z-systems
Importance: Undecided => High
** Changed in: opencryptoki (Ubuntu)
Importance: Undecided => High
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2039783
Title:
[UBUNTU 23.10] Opencryptoki package instalation not creating
/run/opencryptoki directory
Status in Ubuntu on IBM z Systems:
New
Status in opencryptoki package in Ubuntu:
New
Bug description:
---Problem Description (by Grgo Mariani) ---
Opencryptoki post-installation script fails due to a non-existing directory.
Although the package is shown as installed the missing directory is critical
for service running.
Contact Information = [email protected] [email protected]
---uname output---
Linux SYSTEM 6.5.0-9-generic #9-Ubuntu SMP Fri Oct 6 19:43:35 UTC 2023 s390x
s390x s390x GNU/Linux
Machine Type = Manufacturer: IBM Type: 3931 Model:
704 A01
---Debugger---
A debugger is not configured
---Steps to Reproduce---
Install the opencryptoki package and check if the service is running.
root@SYSTEM:~# apt install opencryptoki
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
opencryptoki
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 228 kB of archives.
After this operation, 834 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports mantic/universe s390x opencryptoki
s390x 3.21.0+dfsg-0ubuntu1 [228 kB]
Fetched 228 kB in 0s (1,130 kB/s)
Selecting previously unselected package opencryptoki.
(Reading database ... 68397 files and directories currently installed.)
Preparing to unpack .../opencryptoki_3.21.0+dfsg-0ubuntu1_s390x.deb ...
Unpacking opencryptoki (3.21.0+dfsg-0ubuntu1) ...
Setting up opencryptoki (3.21.0+dfsg-0ubuntu1) ...
info: The group `pkcs11' already exists as a system group. Exiting.
info: The system user `pkcsslotd' already exists. Exiting.
info: Adding user `root' to group `pkcs11' ...
chown: cannot access '/run/opencryptoki': No such file or directory
dpkg: error processing package opencryptoki (--configure):
installed opencryptoki package post-installation script subprocess returned
error exit status 1
Processing triggers for man-db (2.11.2-3) ...
Errors were encountered while processing:
opencryptoki
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@SYSTEM:~# systemctl status pkcsslotd
Userspace tool common name: opencryptoki
The userspace tool has the following bit modes: 64bit
Userspace rpm: opencryptoki v3.21.0
Userspace tool obtained from project website: na
== Comment: #1 - Ingo Franzki - 2023-10-18 09:26:50 ==
/run/opencryptoki should be created by the package install, but is also
created by tmpfiles.d service after every boot, because /run is usually in
tempfs, so its not persistent across boots. OCK installs a tempfiles.d config
script (/usr/lib/tmpfiles.d/opencryptoki.conf), too.
== Comment: #3 - Ingo Franzki - 2023-10-18 10:13:30 ==
It also seems that Ubuntu's /usr/lib/tmpfiles.d/opencryptoki.conf file has
incorrect (outdated?) contents.
It must be ensured that the file as produced by building Opencryptoki (via
'make install') is installed, and not something else/older.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/2039783/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp