Skip to content

Commit

Permalink
overlay.d: s390x: add to ramdisk missig zipl
Browse files Browse the repository at this point in the history
This is a fix for https://bugzilla.redhat.com/show_bug.cgi?id=1955621
When starting OCP in fips mode it immediate fails during install:
```
systemd[1]: Starting Check for FIPS mode...
rhcos-fips[763]: Found /etc/ignition-machine-config-encapsulated.json in Ignition config
rhcos-fips[763]: FIPS mode required; updating BLS entries
rhcos-fips[763]: Appending 'fips=1 boot=LABEL=boot' to /run/rhcos-fips/sysroot/boot/loader/entries/ostree-1-rhcos.conf
rhcos-fips[763]: /usr/sbin/rhcos-fips: line 78: zipl: command not found
```

Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
  • Loading branch information
nikita-dubrovskii committed May 4, 2021
1 parent 1b4ce33 commit 299b299
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ install() {
bwrap \
env

local _arch=${DRACUT_ARCH:-$(uname -m)}
if [[ "$_arch" == "s390x" ]]; then
inst_multiple zipl
inst /lib/s390-tools/stage3.bin
fi

inst_script "$moddir/rhcos-fips.sh" \
"/usr/sbin/rhcos-fips"
inst_script "$moddir/coreos-dummy-ignition-files-run.sh" \
Expand Down

0 comments on commit 299b299

Please sign in to comment.