Skip to content

Commit

Permalink
overlay.d: s390x: rhcos-fips: add ignition.firstboot kernel option to…
Browse files Browse the repository at this point in the history
… zipl

We enable FIPS during firstboot and than reboot the machine before ignition runs,
so to allow it do its work on next boot with enabled FIPS, we have to save ignition.firstboot karg

Signed-off-by: Nikita Dubrovskii <[email protected]>
  • Loading branch information
nikita-dubrovskii committed Jun 21, 2021
1 parent 11fa5a2 commit 2e65604
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ firstboot() {
echo $(grep $line $f) >> $tmpfile
done
done
grep options $tmpfile | cut -d ' ' -f2- > $optfile
echo "Appending 'ignition.firstboot' to ${optfile}"
options="$(grep options $tmpfile | cut -d ' ' -f2-) ignition.firstboot"
echo $options > "$optfile"
zipl --verbose \
--target "${tmpsysroot}/boot" \
--image $tmpsysroot/boot/"$(grep linux $tmpfile | cut -d' ' -f2)" \
Expand Down

0 comments on commit 2e65604

Please sign in to comment.