Skip to content

Commit

Permalink
virt-install: Use %post --erroronfail
Browse files Browse the repository at this point in the history
That should just be the default. The current `%post` is trivial, though
add it anyway to increase the odds it sticks around as more things get
added.

Also fix minor typo.
  • Loading branch information
jlebon authored and cgwalters committed Sep 18, 2018
1 parent ba2176a commit be83d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/virt-install
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ else:
ks_tmp = tempfile.NamedTemporaryFile(prefix="coreos-virtinstall", suffix=".ks")
run_sync_verbose(['ksflatten', '-c', args.kickstart], stdout=ks_tmp)

# This is an implmentation detail of https://github.com/dustymabe/ignition-dracut
# This is an implementation detail of https://github.com/dustymabe/ignition-dracut
# So we hardcode it here.
# See: https://github.com/dustymabe/ignition-dracut/pull/12
ks_tmp.write("""
%post
%post --erroronfail
touch /boot/coreos-firstboot
%end
""")
Expand Down

0 comments on commit be83d27

Please sign in to comment.