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

[spec2x] cherry-pick: firstboot-complete: tell zipl to run #139

Merged
merged 1 commit into from
Nov 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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