Skip to content

Commit

Permalink
Fix s390x iso cd.ikr content (#1289)
Browse files Browse the repository at this point in the history
## Problem

Dracut is not able to switch the rootfs when booting the s390x iso using
virt-manager and qemu s390x emulation.

## Solution

Fix the cd.ikr content cleaning the default kernel cmdline area.
(requested by @wfeldt at
https://build.opensuse.org/request/show/1178758).
  • Loading branch information
teclator authored Jun 6, 2024
2 parents 0514f32 + 626a40d commit d7136fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions live/config-cdroot/fix_bootconfig.s390x
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ dd status=none if=$boot_dir/linux of=$boot_dir/cd.ikr
dd status=none conv=notrunc obs=1 seek=$((initrd_ofs_ofs)) if=$boot_dir/initrd.off of=$boot_dir/cd.ikr
dd status=none conv=notrunc obs=1 seek=$((initrd_siz_ofs)) if=$boot_dir/initrd.siz of=$boot_dir/cd.ikr
dd status=none conv=notrunc obs=4096 seek=$((initrd_ofs/4096)) if=$boot_dir/initrd of=$boot_dir/cd.ikr
# clear kernel cmdline area; it's actually 4 kiB, but 1 block should be more than enough
dd status=none conv=notrunc bs=1 count=512 seek=$((parmfile_ofs)) if=/dev/zero of=$boot_dir/cd.ikr
echo -n "$parmfile_content" | dd status=none conv=notrunc obs=1 seek=$((parmfile_ofs)) of=$boot_dir/cd.ikr

# S390 Magic?
Expand Down
6 changes: 6 additions & 0 deletions live/src/agama-live.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 5 15:40:43 UTC 2024 - Knut Anderssen <kanderssen@suse.com>

- Fix the cd.ikr content for booting the s390x iso
(gh#openSUSE/agama#1289).

-------------------------------------------------------------------
Tue May 21 10:38:39 UTC 2024 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down

0 comments on commit d7136fe

Please sign in to comment.