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

33 Commits

Author SHA1 Message Date
Etienne Champetier
8db6a73a35 Rename ignition.cfg -> 05_ignition.cfg
When bootupd/grub2-static/configs.d was introduced,
blscfg was after every config. Some config need to be after blscfg,
so rename to 05_ignition.cfg so we can align bootupd numbering with
legacy grub (blscfg is in 10_linux).
2025-03-19 09:23:59 -04:00
Ilya Sorochan
a3ef7ce306 build: fix GOARCH for loongarch64 (Makefile)
uname gives loongarch64 target value while go has
loong64 target instead. Without the fix `make
install` can't find correct executable since it
looks into bin/loongarch64 instead of bin/loong64
2024-09-13 14:43:03 +03:00
Colin Walters
f878c9ddbd Add optionally-installed grub2 code
This pairs with https://github.com/coreos/bootupd/pull/543
Basically we want bootupd to take care of installing this.  Add
the config here (where it more closely arguably belongs) so
that it can be optionally installed.

My proposal for at least the Fedora packaging of Ignition
is that we unconditionally depend on bootupd and install this,
because there's no one there using Ignition who doesn't want bootupd.
2023-10-19 14:24:03 -04:00
Benjamin Gilbert
85f98a27df Makefile: install /usr/libexec/ignition-apply
Don't put ignition-apply in /usr/bin because it's still fairly
experimental, but do avoid requiring callers to create the symlink
themselves.
2022-05-14 01:21:55 -04:00
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
Ignaz Forster
c4069061e9 Add support for building 32 bit ARM version 2020-08-19 09:32:37 +02:00
Ignaz Forster
c7635608ea Install Dracut modules with correct permissions 2020-08-19 09:32:26 +02:00
Ignaz Forster
05af50ba30 Add support for building 32 bit x86 version 2020-08-19 09:32:07 +02:00
Ben Howard
629fc6d3ce Clean-up post-merge files. 2020-07-23 17:17:01 -06:00
Colin Walters
d38dd91ae2 build: Add make install
Following https://github.com/coreos/ignition-dracut/pull/106
add a default `make install` rule that honors `DESTDIR`.  Main
motivation is hacking on ignition in a unified way with ostree,
ignition-dracut and other projects using coreos-assembler.
2019-09-24 18:44:44 +00:00
Stephen Lowrie
62b617c4f3 vendor: switch to go modules
With the release of golang 1.12 go modules have been improved in
preparation for being the new default in golang 1.13.
2019-03-06 12:15:33 -06:00
Andrew Jeddeloh
89e1c9d83c glide: switch to tags where we can
Switch from using raw commit hashes to tags. This makes it much more
human readable. Also drop a transient dep that did not need to be in the
glide.yaml file. This does not update any of the dependencies.
2018-09-17 14:41:07 -07:00
Euan Kemp
c450a224d2 make: don't default to vendoring
If I muscle-memory type make, I really don't want to vendor, I want to
build.
2018-03-14 20:11:48 -07:00
Dalton Hubble
2a9b7884cb glide.yaml: add glide.yaml and remove manual vendoring
* Pin dependencies that were previously pinned by hand
* Add hack to keep vendoring update-ssh-keys despite its symlink
structure
2017-06-12 12:53:28 -07:00
Vito Caputo
4b06dec1e6 build: eliminate Makefile and derive version from git describe
This eliminates the need for version commits, we just add tags referring
to the merge of the NEWS commit.

The Makefile was just a nuisance and we weren't taking advantage of any
of the dependency/incremental build features.
2015-08-11 14:21:33 -07:00
Alex Crawford
aaffce34f8 build: add commit hash to version string 2015-08-10 16:04:52 -07:00
Alex Crawford
273d846380 build: rename "verify" target to "check"
"check" is a little more standard.
2015-08-04 14:29:19 -07:00
Vito Caputo
1b6dd2b022 Makefile: add ec2 and files providers to PACKAGES
So they're included in vet/fmt/fix/test.
2015-07-02 17:07:47 -07:00
Alex Crawford
abc5092730 exec/stages: rename storage and prepivot
storage -> disks
prepivot -> files
2015-06-19 19:05:43 -07:00
Alex Crawford
152e5b3ae9 Revert "stages: combine prepivot and storage stages"
This reverts commit 6f9e99da67.
2015-06-16 13:34:21 -07:00
Alex Crawford
1584375750 Revert "exec: remove stages"
This reverts commit 6c56235112.
2015-06-16 12:12:22 -07:00
Alex Crawford
6c56235112 exec: remove stages
As it turns out, there isn't actually a need for stages. The environment
in which Ignition runs is a bit more tolerant to us mucking around.
2015-05-20 17:09:05 -07:00
Alex Crawford
6f9e99da67 stages: combine prepivot and storage stages 2015-05-20 11:56:13 -07:00
Vito Caputo
3f714402b8 Makefile: put gofmt in diff mode for fmt target
This also eliminates the need for two invocations of gofmt, and passes
src instead of the discrete packages as gofmt is recursive.
2015-05-13 17:15:54 -07:00
Vito Caputo
6cde9e75c5 *: introduce storage stage and config
Creates as needed, in the following order:
 - partitions (sgdisk)
 - raid sets (mdadm)
 - filesystems (mkfs.{ext4,btrfs})

Device plugging is synchronized via systemd using systemd.WaitOnDevices().
2015-05-08 10:43:23 -07:00
Alex Crawford
66b27bf291 build: simplify Makefile 2015-05-04 18:54:48 -07:00
Vito Caputo
b3357dfbaa *: move all non-Godep code into src/ subdirectory
Introduces a top-level config->src/config symlink to preserve the clean
"github.com/coreos/ignition/config" import path; config is intended to have
external users depend upon it.
2015-05-01 15:06:23 -07:00
Alex Crawford
751af93245 build: update Makefile to allow multiple binaries 2015-04-30 16:07:48 -07:00
Vito Caputo
5f07fa5980 Makefile: add -cover flag to go test 2015-04-09 15:52:55 -07:00
Vito Caputo
962420680e registry: introduce general registry for providers and stages
Eliminating some redundant code
2015-04-09 15:52:52 -07:00
Vito Caputo
1a50ab843e make: support kernel-style V=1 verbose build switch
Appending V=1 to the make argv shows the commands being executed.
2015-04-06 16:30:08 -07:00
Alex Crawford
45dc654166 build: add Makefile 2015-04-02 16:42:44 -07:00