mirror of
https://github.com/apricote/flatcar-packer-hcloud.git
synced 2026-01-13 13:21:01 +00:00
fix: user data ignition is ignored
I missed the note in the docs that the ignition config specified on `install-flatcar` will disable the `fetch` stage in ignition. This stage is required to read the user data ignition config from the metadata service. By moving our OEM ignition config to `oemfs/base/base.ign` it will always be merged with the user data config.
This commit is contained in:
parent
425fbf36a4
commit
93731565c0
1 changed files with 9 additions and 2 deletions
|
|
@ -81,12 +81,19 @@ build {
|
|||
"chmod +x flatcar-install",
|
||||
|
||||
# Install flatcar
|
||||
"./flatcar-install -s -C ${var.flatcar_channel} -i /ignition.json",
|
||||
"./flatcar-install -s -C ${var.flatcar_channel}",
|
||||
|
||||
# Setup Kernel Parameters for OEM Platform
|
||||
# Setup Ignition Config & Kernel Parameters for OEM Platform
|
||||
"mkdir /root/OEM",
|
||||
"mount /dev/disk/by-label/OEM /root/OEM",
|
||||
|
||||
## Kernel Parameter
|
||||
"echo 'set oem_id=${local.flatcar_oem_id}' > /root/OEM/grub.cfg",
|
||||
|
||||
## Base Ignition Config (merged with user data)
|
||||
"mkdir /root/OEM/base",
|
||||
"cp /ignition.json /root/OEM/base/base.ign",
|
||||
|
||||
"umount /root/OEM",
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue