[Bug 1996477] Re: [UBUNTU 22.04] dbginfo.sh updates for /bin/dash shell compatibility
Launchpad Bug Tracker
1996477 at bugs.launchpad.net
Tue Jan 10 19:46:41 UTC 2023
This bug was fixed in the package s390-tools - 2.20.0-0ubuntu3.2
---------------
s390-tools (2.20.0-0ubuntu3.2) jammy; urgency=medium
* Fix zipl segfaults when "parameters=" is missing (LP: #1974109) with:
d/p/6ff8202f-zipl-Add-missing-check-for-a-nullpointer.patch
* Add KVM Secure Execution Attestation Userspace Tool to enhance secure
execution (hardware feature: FC 115) exploitation (LP: #1959987) with:
d/p/38639269-libpv-New-library-for-PV-tools.patch
d/p/3ab06d77-pvattest-Create-perform-and-verify-attestation-measu.patch
d/p/26148740-pvattest-tools-Add-tool-for-attestation.patch
* Fix re-enciphering of EP11 identity key of KMIP plugin (LP: #1990520) with:
d/p/4e2ebe03-libseckey-Fix-re-enciphering-of-EP11-secure-key.patch
* Fix KMIP plugin fails to connection to KMIP server (LP: #1990524) with:
d/p/6c5c5f7e-libseckey-Adapt-keymgmt_match-implementation-to-Open.patch
* d/p/5768d55-zipl-boot-add-secure-boot-trailer.patch
Add secure boot trailer in zipl stage 3 to keep compatibility with
upcoming IBM zSystems firmware updates. (LP: #1996069)
* Add d/p/92b8409-dbginfo.sh-ensure-type-commands-compatible-with-dash.patch
and d/p/9f93af6-dbginfo.sh-ensure-compatibility-with-bin-dash.patch
to achieve dbginfo.sh compatibility with /bin/dash shell. (LP: #1996477)
-- Frank Heimes <frank.heimes at canonical.com> Wed, 16 Nov 2022 18:14:00
+0200
** Changed in: s390-tools (Ubuntu Jammy)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to s390-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1996477
Title:
[UBUNTU 22.04] dbginfo.sh updates for /bin/dash shell compatibility
Status in Ubuntu on IBM z Systems:
In Progress
Status in s390-tools package in Ubuntu:
Invalid
Status in s390-tools source package in Jammy:
Fix Released
Status in s390-tools source package in Kinetic:
Fix Released
Status in s390-tools source package in Lunar:
Invalid
Bug description:
SRU Justification:
==================
[ Impact ]
* The dbginfo.sh script fails on system (actually shells) that run dash,
due to some incompatibilities in dbginfo.sh (with using 'type').
* The script fails with a with parameter error.
[ Fixes ]
* 92b84092 92b84092077f5238f8067f24e9fc330ddefb4525 "dbginfo.sh:
ensure type commands compatible with dash"
* 9f93af61 9f93af614f7463317ec56af5a6484f66386af797 "dbginfo.sh:
ensure compatibility with /bin/dash"
[ Test Plan ]
* Use a user account that has dash as default shell,
or simply call dash in whatever shell you are running.
* Make sure the s390-tools are installed (but it's mandatory for s390x)
since dbginfo.sh is included into this.
* Now call /usr/sbin/dbginfo.sh (from within a dash shell)
and watch out for any errors,
esp. some caused by issues with parameters,
like 'type' is not supporting '-t'.
[ Where problems could occur ]
* The changes in handling the parameters could break the dbginfo.sh
on other shells, like bash (which is the default in Ubuntu).
* Fortunately the changes in the above commits are pretty traceable.
__________
Description: dbginfo.sh: incompatible commands with /bin/dash shell
Symptom: subsection data collection fails while running in /bin/dash shell
- type is failing with parameter error
Problem: reduced data collection
Solution: rewrite in compatible way
Component: s390-tools
the master commits in s390tools v2.24.9 are:
92b8409 92b84092077f5238f8067f24e9fc330ddefb4525 "dbginfo.sh: ensure
type commands compatible with dash"
9f93af6 9f93af614f7463317ec56af5a6484f66386af797 "dbginfo.sh: ensure
compatibility with /bin/dash"
source:
https://github.com/ibm-s390-linux/s390-tools/blob/master/scripts/dbginfo.sh
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1996477/+subscriptions
More information about the foundations-bugs
mailing list