[Git-commits] [grml/grml-hwinfo] f129f2: Collect json output of lscpu + lsblk in "json" sub...

Michael Prokop noreply at github.com
Fri Aug 2 20:11:53 CEST 2024


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-hwinfo
  Commit: f129f214e8ae86ea2ea6ef299c3a09d35eb867ba
      https://github.com/grml/grml-hwinfo/commit/f129f214e8ae86ea2ea6ef299c3a09d35eb867ba
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Collect json output of lscpu + lsblk in "json" sub-directory


  Commit: 77fbbb597b6be6441070c1fd95c0e9e0e15c26d9
      https://github.com/grml/grml-hwinfo/commit/77fbbb597b6be6441070c1fd95c0e9e0e15c26d9
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Collect output of findmnt in "findmnt" and its json version in "json/findmnt"


  Commit: b4e7d9bb99b30431a53a7f5d64e09cc068995f5f
      https://github.com/grml/grml-hwinfo/commit/b4e7d9bb99b30431a53a7f5d64e09cc068995f5f
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Collect output of losetup -a in file "losetup" and its json version in "json/losetup"

Note that we need to invoke `losetup --json` and *not*
`losetup -a --json`, which then would only report out of `losetup -a`
again.


  Commit: 52436a1827ba35c6dc9172f2d12e920ed8b84176
      https://github.com/grml/grml-hwinfo/commit/52436a1827ba35c6dc9172f2d12e920ed8b84176
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Collect JSON output of sfdisk in ./json/sfdisk_*


  Commit: 6bfd6dd2e865f679e6f492c87626a997164330af
      https://github.com/grml/grml-hwinfo/commit/6bfd6dd2e865f679e6f492c87626a997164330af
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-08-02 (Fri, 02 Aug 2024)

  Changed paths:
    M debian/control
    M grml-hwinfo

  Log Message:
  -----------
  Retrieve generic information about NVMe disks

Add nvme-cli to Recommends and try to gather generic NVMe information
from disks

NOTE: we identify the NVMe disks using lsblk, because this doesn't
require any special tools or alike then. We could use something like:

  nvme list --output-format=json | jq -r '.Devices[].DevicePath'

But then we'd need to have jq available. Also, if there is no
NVMe subsystem available (like often in VMs), then we'd get:

  {
    "error":"Failed to scan topology: No such file or directory"
  }

... in its *stdout* and would need to deal with that then.

Closes: grml/grml-hwinfo#5


  Commit: 82935916cffaba6c9867f5c1e223adb8b3a238e7
      https://github.com/grml/grml-hwinfo/commit/82935916cffaba6c9867f5c1e223adb8b3a238e7
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-08-02 (Fri, 02 Aug 2024)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Redirect stderr of parted to file parted.error

Otherwise executing `parted -s /dev/nvme0n1 print` might throw something
like this for empty disks:

  Error: /dev/nvme0n1: unrecognized disk label

Related to grml/grml-hwinfo#12


  Commit: bbfd3b1ebb7b8c2f2188a6482f54e1481987969b
      https://github.com/grml/grml-hwinfo/commit/bbfd3b1ebb7b8c2f2188a6482f54e1481987969b
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-08-02 (Fri, 02 Aug 2024)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Redirect stderr of lspci invocations to separate files

Otherwise executing lspci might spill something like:

  # lspci -vvnn > /dev/null
  pcilib: sysfs_read_vpd: read failed: No such device

Which according to https://bugzilla.kernel.org/show_bug.cgi?id=199467
isn't an "actual" error, but there is just no VPD EEPROM present.
But as long as it shows up on stderr, it behaves like an error, so
let's also tread it like an error. :)

Related to grml/grml-hwinfo#12
Thanks: Darshaka Pathirana for the bug report


Compare: https://github.com/grml/grml-hwinfo/compare/996d28a98f7a...bbfd3b1ebb7b

To unsubscribe from these emails, change your notification settings at https://github.com/grml/grml-hwinfo/settings/notifications


More information about the Git-commits mailing list