Bug 1219198 - pesign installation error
Summary: pesign installation error
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Other (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Gary Ching-Pang Lin
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-26 01:26 UTC by Giacomo Comes
Modified: 2024-03-05 21:44 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giacomo Comes 2024-01-26 01:26:11 UTC
I recently did a Leap 15.5 installation and saw the following error
message in /var/log/zypp/history:

# 2024-01-24 08:05:18 pesign-0.112-150000.4.18.1.x86_64.rpm installed ok
# Additional rpm output:
# warning: user pesign does not exist - using root
# warning: group pesign does not exist - using root
# warning: user pesign does not exist - using root
# warning: group pesign does not exist - using root
# 
2024-01-24 08:05:18|install|pesign|0.112-150000.4.18.1|x86_64||repo-sle-update|70a227a2a14cd808569e4f7932409fc46f2c486081b8a0b618d2eb3503169db7|

The error is due to the fact that the pesign user/group does
not exist when the pesign package get installed.
This is due to a bug introduced with pesign 0.112-150000.4.18.1.
In such version of the package the pre scriptlet that in the previous
version was executed when pesign was installed it is now executed when
the package pesign-systemd is installed causing the error.

The spec file should be fixed in this way:

-%pre systemd
+%pre
 getent group pesign >/dev/null || groupadd -r pesign
 getent passwd pesign >/dev/null || useradd -r -g pesign -d %{_localstatedir}/lib/pesign -s /bin/false -c "PE-COFF signing daemon" pesign
+
+%pre systemd
 %service_add_pre pesign.service
Comment 2 Maintenance Automation 2024-03-01 12:30:01 UTC
SUSE-RU-2024:0739-1: An update that has one fix can now be installed.

Category: recommended (moderate)
Bug References: 1219198
Sources used:
openSUSE Leap 15.5 (src): pesign-0.112-150000.4.21.1
Basesystem Module 15-SP5 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): pesign-0.112-150000.4.21.1
SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): pesign-0.112-150000.4.21.1
SUSE Manager Proxy 4.3 (src): pesign-0.112-150000.4.21.1
SUSE Manager Retail Branch Server 4.3 (src): pesign-0.112-150000.4.21.1
SUSE Manager Server 4.3 (src): pesign-0.112-150000.4.21.1
SUSE Enterprise Storage 7.1 (src): pesign-0.112-150000.4.21.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 3 Giacomo Comes 2024-03-05 21:44:04 UTC
The update has fixed the problem for Leap 15.5.
But please keep in mind that Leap 15.6 needs the fix too.