Skip to content

live: fix_bootconfig.s390x: use initrd.ofs for the initrd offset filename#1969

Merged
imobachgs merged 2 commits intoagama-project:masterfrom
g7:epaolantonio/live-s390x-fixes
Feb 4, 2025
Merged

live: fix_bootconfig.s390x: use initrd.ofs for the initrd offset filename#1969
imobachgs merged 2 commits intoagama-project:masterfrom
g7:epaolantonio/live-s390x-fixes

Conversation

@g7
Copy link
Contributor

@g7 g7 commented Feb 3, 2025

Problem

mksusecd expects the offset to be written in initrd.ofs.

Solution

Change the filename from initrd.off to initrd.ofs to match what mksuse expects.

This fixes building of "combined" Full offline images on s390x.

This pull request also adds a commit that ensures that the arch-specific fix_bootconfig scripts exit at the first failure.
xxd is not available in the build environment (in SLFO:Main at least), so initrd.off (now .ofs) and initrd.siz were never being created in the first place. Exiting as soon as the first failure will hopefully help us catch this kind of bugs earlier 😄

NOTE: due to this, s390x builds might fail if xxd is not present. This OBS prjconf snippet should ensure that it is getting installed on image builds:

Substitute: kiwi-image:iso    kiwi-systemdeps-iso-media qemu-tools xxd

Testing

  • Tested manually

g7 added 2 commits February 4, 2025 00:47
Ensure we know if the arch-specific bootconfig scripts fail.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
…name

mksusecd expects the offset to be written in initrd.ofs. Change
the filename to match it.

This fixes building of "combined" Full offline images on s390x.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
@g7 g7 force-pushed the epaolantonio/live-s390x-fixes branch from afc0a4c to eab53bc Compare February 3, 2025 23:48
@imobachgs imobachgs merged commit c3c8fc4 into agama-project:master Feb 4, 2025
@wfeldt
Copy link
Contributor

wfeldt commented Feb 4, 2025

Why do you rename that file? It has been initrd.off on all SUSE media for ages. This will force tooling scripts
to adapt and probably also some s390x documentation.

@wfeldt
Copy link
Contributor

wfeldt commented Feb 4, 2025

Also, the problem is not

mksusecd expects the offset to be written in initrd.ofs.

but mksusecd expects all files referenced in suse.ins to exist.

@g7
Copy link
Contributor Author

g7 commented Feb 4, 2025

oh! Misunderstood the error message (since it is coming from suse.ins, now it makes sense to me). I will prepare a follow up PR that reverts this change

@wfeldt
Copy link
Contributor

wfeldt commented Feb 4, 2025

Thanks!

g7 added a commit to g7/agama that referenced this pull request Feb 4, 2025
…offset

See discussion in bsc#1236781, and gh#agama-project#1969.

This essentially reverts c3c8fc4.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
g7 added a commit to g7/agama that referenced this pull request Feb 4, 2025
…offset

See discussion in bsc#1236781, and gh#agama-project#1969.

This essentially reverts c3c8fc4.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
g7 added a commit to g7/agama that referenced this pull request Feb 5, 2025
…offset

See discussion in bsc#1236781, and gh#agama-project#1969.

This essentially reverts c3c8fc4.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
imobachgs added a commit that referenced this pull request Feb 7, 2025
…offset (#1974)

See discussion in bsc#1236781, and #1969.

This essentially reverts c3c8fc4.


## Problem

`initrd.ofs` was a red herring, and I'm not sure how we got to that,
most likely it might have slipped in while manually debugging the media.

So the actual bug was the offset file not being created at all, and now
it's sorted out too by adding the `xxd` requirement (and thanks to
snwint, latest `mksusecd` can re-generate it as well).

## Solution

Restore the previous `initrd.off` naming which is widely used. The other
commit from #1969 is not reverted (that introduces `set -e` in the
fix_bootconfig scripts) so builds will still fail if xxd is not present
in the build environment.

## Testing

- *Tested manually*


Apologies for the noise.
@imobachgs imobachgs mentioned this pull request Feb 26, 2025
imobachgs added a commit that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants