[Bug 2072366] Re: s390-tools zipl breaks when user provides target attributes
Cody Shepherd
2072366 at bugs.launchpad.net
Fri Jul 12 14:41:09 UTC 2024
I've tested this by running an oracular build on s390x with your ppa
package thrown in. The build succeeded, so it looks like the ppa package
is what we want.
Relevant portions from the build log:
```
After this operation, 747 MB of additional disk space will be used.
Get:1 http://ftpmaster.internal/ubuntu oracular/main s390x libfuse3-3 s390x 3.14.0-6 [81.9 kB]
Get:2 http://ppa.launchpad.net/fheimes/lp2072366/ubuntu oracular/main s390x s390-tools-data all 2.33.1-0ubuntu4 [18.9 kB]
Get:3 http://ppa.launchpad.net/fheimes/lp2072366/ubuntu oracular/main s390x s390-tools-signed all 2.33.1-0ubuntu4 [13.7 kB]
Get:4 http://ppa.launchpad.net/fheimes/lp2072366/ubuntu oracular/main s390x s390-tools s390x 2.33.1-0ubuntu4 [3206 kB]
...
+ 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
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
kernel parmline...: 'root=LABEL=cloudimg-rootfs'
component address:
heap area.......: 0x00002000-0x00005fff
stack area......: 0x0000f000-0x0000ffff
internal loader.: 0x0000a000-0x0000dfff
parameters......: 0x00009000-0x000091ff
kernel image....: 0x00010000-0x009b1fff
parmline........: 0x009b3000-0x009b31ff
initial ramdisk.: 0x009d0000-0x01fde7ff
environment blk.: 0x009c3000-0x009c3fff
zIPL environment block content:
Preparing boot device for LD-IPL: loop3.
Detected SCSI PCBIOS disk layout.
Writing SCSI master boot record.
Syncing disks...
Done.
```
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2072366
Title:
s390-tools zipl breaks when user provides target attributes
Status in Ubuntu on IBM z Systems:
In Progress
Status in s390-tools package in Ubuntu:
In Progress
Status in s390-tools-signed package in Ubuntu:
In Progress
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-z-systems/+bug/2072366/+subscriptions
More information about the Ubuntu-sponsors
mailing list