[Bug 1996477] Re: [UBUNTU 22.04] dbginfo.sh updates for /bin/dash shell compatibility

Launchpad Bug Tracker 1996477 at bugs.launchpad.net
Tue Dec 13 20:03:51 UTC 2022


This bug was fixed in the package s390-tools - 2.23.0-0ubuntu1.1

---------------
s390-tools (2.23.0-0ubuntu1.1) kinetic; urgency=medium

  * d/p/lp1996069-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/lp1996477-dbginfo.sh-ensure-type-commands-compatible-with-dash.patch
    and d/p/lp1996477-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 16:48:54
+0100

** Changed in: s390-tools (Ubuntu Kinetic)
       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 Committed
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