Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
firstboot-complete: tell zipl to run
Browse files Browse the repository at this point in the history
zipl records need to be updated, because ignition.firstboot is burned
into target disk during coreos-installer

As a short-term solution for:
#84

Depends on:
ibm-s390-linux/s390-tools#71
ibm-s390-linux/s390-tools#74

Related:
coreos/coreos-installer#61
coreos/coreos-assembler#780
(cherry picked from commit 38af701)
  • Loading branch information
tuan-hoang1 authored and jlebon committed Nov 28, 2019
1 parent 8ac440e commit 8bf2cbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion systemd/ignition-firstboot-complete.service
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ RemainAfterExit=yes
# detected this file. Fail if we are unable to remove it, rather than risking
# rerunning Ignition at next boot.
MountFlags=slave
ExecStart=/bin/sh -c 'mount -o remount,rw /boot && rm /boot/ignition.firstboot'
# It is better to have a separate script to do this but it might be polluting
# the target system with some script in i.e. /usr/sbin/firstboot-complete
# The retval code is still respected with having this if-else block.
ExecStart=/bin/sh -c \
'mount -o remount,rw /boot && \
if [[ $(uname -m) = s390x ]]; then zipl; fi && \
rm /boot/ignition.firstboot'

[Install]
# Part of basic.target so this happens early on in firstboot
Expand Down

0 comments on commit 8bf2cbd

Please sign in to comment.