[Bug 2072366] [NEW] s390-tools zipl breaks when user provides target attributes

Cody Shepherd 2072366 at bugs.launchpad.net
Fri Jul 5 17:11:12 UTC 2024


Public bug reported:

This issue has already been identified and fixed in the (upstream?)
github repository:
https://github.com/ibm-s390-linux/s390-tools/commit/63ff07ba38dda99e2661a097d05266555c727a2e

The issue fixed by the revert linked above is causing Cloudware Oracular
download image builds to fail on s390x. From the image build log:

```
+ ZIPL_EXTRA_PARAMS=--ramdisk=/boot/initrd.img
+ chroot mountpoint /sbin/zipl -V --image=/boot/vmlinuz --parameters=root=LABEL=cloudimg-rootfs --target=/boot/ --targetbase=/dev/loop3 --targettype=SCSI --targetblocksize=512 --targetoffset=2048 --ramdisk=/boot/initrd.img
Error: Could not add image file '/boot/vmlinuz': Could not get disk geometry
Looking for components in '/lib/s390-tools'
Secure boot support: no
Target device information
  Device..........................: 07:03
  Device name.....................: loop3 *)
  Device driver name..............: blkext
  Type............................: disk device
  Disk layout.....................: SCSI disk layout *)
  Geometry - start................: 2048 *)
  File system block size..........: 4096
  Physical block size.............: 512 *)
  Device size in physical blocks..: 4608000
  *) Data provided by user.
Building bootmap in '/boot/'
Adding IPL section
  initial ramdisk...: /boot/initrd.img
  kernel image......: /boot/vmlinuz
zIPL environment block content:
```

The fix is in the github repo but not yet released. The LP builders for
Oracular are using version 2.33.1, which contains the bug.

** Affects: s390-tools (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  This issue has already been identified and fixed in the (upstream?)
  github repository:
  https://github.com/ibm-s390-linux/s390-tools/commit/63ff07ba38dda99e2661a097d05266555c727a2e
  
  The issue fixed by the revert linked above is causing Cloudware Oracular
  download image builds to fail on s390x. From the image build log:
  
  ```
  + ZIPL_EXTRA_PARAMS=--ramdisk=/boot/initrd.img
  + chroot mountpoint /sbin/zipl -V --image=/boot/vmlinuz --parameters=root=LABEL=cloudimg-rootfs --target=/boot/ --targetbase=/dev/loop3 --targettype=SCSI --targetblocksize=512 --targetoffset=2048 --ramdisk=/boot/initrd.img
  Error: Could not add image file '/boot/vmlinuz': Could not get disk geometry
  Looking for components in '/lib/s390-tools'
  Secure boot support: no
  Target device information
-   Device..........................: 07:03
-   Device name.....................: loop3 *)
-   Device driver name..............: blkext
-   Type............................: disk device
-   Disk layout.....................: SCSI disk layout *)
-   Geometry - start................: 2048 *)
-   File system block size..........: 4096
-   Physical block size.............: 512 *)
-   Device size in physical blocks..: 4608000
-   *) Data provided by user.
+   Device..........................: 07:03
+   Device name.....................: loop3 *)
+   Device driver name..............: blkext
+   Type............................: disk device
+   Disk layout.....................: SCSI disk layout *)
+   Geometry - start................: 2048 *)
+   File system block size..........: 4096
+   Physical block size.............: 512 *)
+   Device size in physical blocks..: 4608000
+   *) Data provided by user.
  Building bootmap in '/boot/'
  Adding IPL section
-   initial ramdisk...: /boot/initrd.img
-   kernel image......: /boot/vmlinuz
+   initial ramdisk...: /boot/initrd.img
+   kernel image......: /boot/vmlinuz
  zIPL environment block content:
  ```
  
  The fix is in the github repo but not yet released. The LP builders for
  Oracular are using version 2.33.1, which contains the bug.
- 
- ProblemType: Bug
- DistroRelease: Ubuntu 24.04
- Package: s390-tools (not installed)
- ProcVersionSignature: Ubuntu 6.8.0-36.36-generic 6.8.4
- Uname: Linux 6.8.0-36-generic x86_64
- ApportVersion: 2.28.1-0ubuntu3
- Architecture: amd64
- CasperMD5CheckResult: pass
- CurrentDesktop: ubuntu:GNOME
- Date: Fri Jul  5 09:59:49 2024
- InstallationDate: Installed on 2024-04-25 (71 days ago)
- InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240410.2)
- ProcEnviron:
-  LANG=en_US.UTF-8
-  PATH=(custom, no user)
-  SHELL=/bin/bash
-  TERM=xterm-256color
-  XDG_RUNTIME_DIR=<set>
- SourcePackage: s390-tools
- UpgradeStatus: No upgrade log present (probably fresh install)

-- 
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/2072366

Title:
  s390-tools zipl breaks when user provides target attributes

Status in s390-tools package in Ubuntu:
  New

Bug description:
  This issue has already been identified and fixed in the (upstream?)
  github repository:
  https://github.com/ibm-s390-linux/s390-tools/commit/63ff07ba38dda99e2661a097d05266555c727a2e

  The issue fixed by the revert linked above is causing Cloudware
  Oracular download image builds to fail on s390x. From the image build
  log:

  ```
  + ZIPL_EXTRA_PARAMS=--ramdisk=/boot/initrd.img
  + chroot mountpoint /sbin/zipl -V --image=/boot/vmlinuz --parameters=root=LABEL=cloudimg-rootfs --target=/boot/ --targetbase=/dev/loop3 --targettype=SCSI --targetblocksize=512 --targetoffset=2048 --ramdisk=/boot/initrd.img
  Error: Could not add image file '/boot/vmlinuz': Could not get disk geometry
  Looking for components in '/lib/s390-tools'
  Secure boot support: no
  Target device information
    Device..........................: 07:03
    Device name.....................: loop3 *)
    Device driver name..............: blkext
    Type............................: disk device
    Disk layout.....................: SCSI disk layout *)
    Geometry - start................: 2048 *)
    File system block size..........: 4096
    Physical block size.............: 512 *)
    Device size in physical blocks..: 4608000
    *) Data provided by user.
  Building bootmap in '/boot/'
  Adding IPL section
    initial ramdisk...: /boot/initrd.img
    kernel image......: /boot/vmlinuz
  zIPL environment block content:
  ```

  The fix is in the github repo but not yet released. The LP builders
  for Oracular are using version 2.33.1, which contains the bug.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/s390-tools/+bug/2072366/+subscriptions




More information about the foundations-bugs mailing list