1
0
mirror of https://github.com/coreos/ignition.git synced 2026-02-06 09:47:17 +01:00
Commit Graph

10 Commits

Author SHA1 Message Date
Benjamin Gilbert
b0562e3837 Add ignition-delete-config.service and ignition-rmcfg symlink
Add a systemd service that runs ignition-rmcfg to delete userdata early
in first boot on VirtualBox and VMware.  This will fail the boot if it
runs unsuccessfully, and can be masked in the config if desired.  Add
/usr/libexec/ignition-rmcfg as a symlink to the Ignition binary in the
Dracut module, to save space.

Distros will probably want to enable this service by default.

Fixes https://github.com/coreos/ignition/issues/1315.
2022-05-03 08:24:46 -04:00
Jonathan Lebon
fdbd1e41bb Remove ignition-firstboot-complete.service
This is a distro-level integration service. Let's remove it from here
and have it live e.g. in coreos/fedora-coreos-config for FCOS/RHCOS.

Closes: #1125
2021-07-06 14:49:32 -04:00
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