Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpm_ostree/installation.py: fix image deployment on s390x
When user installs OS on s390x using some container image, it fails whith an error: ``` INFO:program:Running... ostree container image deploy --sysroot=/mnt/sysimage --image=quay.io/fedora/fedora-bootc:41-s390x INFO:program:Error: Config file '/lib/s390-tools/zipl.conf': Cannot build automenu: no IPL entries available INFO:program:Using config file '/lib/s390-tools/zipl.conf' ``` This happens, because `ostree` doesn't call `zipl` on installed deployment, but on `/` (without bubblewrapping). This PR first sets bootloader to `none`, so `ostree` doesn't perform `post_bls_sync`, and than calls `zipl` direct from anaconda (similar to what we do in `coreos-assembler`). Here is an eaxmple kickstart `ostree.ks`: ``` text lang en_US.UTF-8 keyboard us timezone --utc Etc/UTC selinux --enforcing rootpw --plaintext foobar network --bootproto=dhcp --device=link --activate --onboot=on zerombr clearpart --all --initlabel autopart --nohome --type=lvm ostreecontainer --url quay.io/fedora/fedora-bootc:41-s390x firewall --disabled services --enabled=sshd sshkey --username root YOUR_KEY_HERE ``` Using that config and kargs `inst.ks=http://172.23.236.43/ostree.ks inst.sshd` injected into Fedora 41 `boot.iso`, installation succeeded: ``` Setting up the installation environment . Configuring storage Creating disklabel on /dev/vdb Creating ext4 on /dev/vdb1 Creating lvmpv on /dev/vdb2 Creating ext4 on /dev/mapper/fedora_fedora-root . Running pre-installation scripts . Running pre-installation tasks . Installing the software Deployment starting: quay.io/fedora/fedora-bootc:41-s390x Deployment complete: quay.io/fedora/fedora-bootc:41-s390x . Configuring storage . Installing boot loader . Performing post-installation setup tasks ``` Issue: https://issues.redhat.com/browse/RHEL-63237
- Loading branch information