1
0
mirror of https://github.com/coreos/ignition-dracut.git synced 2026-02-05 15:45:17 +01:00

8 Commits

Author SHA1 Message Date
Tuan Hoang
38af701ac3 firstboot-complete: tell zipl to run
zipl records need to be updated, because ignition.firstboot is burned
into target disk during coreos-installer

As a short-term solution for:
https://github.com/coreos/ignition-dracut/issues/84

Depends on:
https://github.com/ibm-s390-tools/s390-tools/pull/71
https://github.com/ibm-s390-tools/s390-tools/pull/74

Related:
https://github.com/coreos/coreos-installer/pull/61
https://github.com/coreos/coreos-assembler/pull/780
2019-11-06 10:28:32 -05:00
Colin Walters
598bbdded7 ignition-firstboot-complete.service: Run as part of basic.target
See: https://github.com/openshift/installer/pull/2554

Basically the OpenShift installer on vSphere injects a service which reboots
the first time, but I believe this could easily race with `ignition-firstboot-complete`.

Let's mark the boot complete much earlier.
2019-10-23 17:59:41 +00:00
Benjamin Gilbert
eb48c1892b systemd: don't try to mark live boots complete
In live boots there's no /boot partition with a flag file to remove.
2019-09-16 02:37:03 -04:00
Colin Walters
650d58cb50 ignition-firstboot-complete.service: Remount /boot rw
Prep for https://github.com/ostreedev/ostree/issues/1265
2019-01-03 14:13:11 +00:00
Christian Glombek
6e41a70f3a Rename coreos.firstboot kernel cmdline arg to ignition.firstboot
to make options more distribution neutral.
Update dracut/README.txt to take into account recent changes.

Resolves:  #24
2018-11-20 16:09:29 +01:00
Colin Walters
92ef9dda77 coreos-firstboot-complete: RemainAfterExit=yes
See ostreedev/ostree#1697

Just noticed this while investigating our services after the
recent machine-id regression.
2018-08-28 19:55:45 -04:00
Colin Walters
6463f60d16 fixup! Rework how we run Ignition on first boot 2018-06-29 17:29:07 -04:00
rahuls0720
9d2dd32c6c Rework how we run Ignition on first boot
There was an extensive discussion of this on IRC.  The basic
idea is we have a stamp file in `/boot`, same as CL does.  However,
we use a GRUB *variable* `$coreos_firstboot` which is hardcoded in
the kernel arguments, but evaluates to the empty string if we're
not in the first boot.

This way we don't have to change the kernel arguments post-boot.

We previously had a systemd "quench" unit as a hardcoded Ignition
config here - I moved that to a regular installed unit that is
part of the package.
2018-06-29 14:38:09 -04:00