Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
update-strategies: add missing "overwrite: true" (#326)
Browse files Browse the repository at this point in the history
Our butane examples for customising locksmith contain an error:
"overwrite: true" is missing when modifying "update.conf".
This leads to ignition panicking during provisioning as "update.conf"
already exists:

ignition[1009]: CRITICAL : Ignition failed: failed to create files: failed to create files: error creating /sysroot/etc/flatcar/update.conf: error creating file "/sysroot/etc/flatcar/update.conf": A file exists there already and overwrite is false

This change updates our examples and adds "overwrite:true".

Signed-off-by: Thilo Fromm <[email protected]>
  • Loading branch information
t-lo authored Jul 11, 2023
1 parent afa83f5 commit cc57b6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/setup/releases/update-strategies.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ version: 1.0.0
storage:
files:
- path: /etc/flatcar/update.conf
overwrite: true
contents:
inline: |
REBOOT_STRATEGY=etcd-lock
Expand All @@ -72,6 +73,7 @@ This gets transpiled to the following Ignition configuration which writes the li
"storage": {
"files": [
{
"overwrite": true,
"path": "/etc/flatcar/update.conf",
"contents": {
"compression": "",
Expand Down Expand Up @@ -137,6 +139,7 @@ version: 1.0.0
storage:
files:
- path: /etc/flatcar/update.conf
overwrite: true
contents:
inline: |
REBOOT_STRATEGY=reboot
Expand Down Expand Up @@ -172,6 +175,7 @@ version: 1.0.0
storage:
files:
- path: /etc/flatcar/update.conf
overwrite: true
mode: 0644
contents:
inline: |
Expand Down

0 comments on commit cc57b6a

Please sign in to comment.