Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix failure at second boot #2697

Open
wants to merge 1 commit into
base: testing-devel
Choose a base branch
from

Commits on Oct 30, 2023

  1. fix failure at second boot

    The issue occurs at unexpected shutdown (such as power-off, or ctrl + a
    +x to exit qemu) after first boot, data was not completely saved to
    disk.
    ------
    Ignition has failed. Please ensure your config is valid. Note that only
    Ignition spec v3.0.0+ configs are accepted.
    
    A CLI validation tool to check this called ignition-validate can be
    downloaded from GitHub:
        https://github.com/coreos/ignition/releases
    ------
    
    CoreOS uses boot args `ignition.firstboot' as flag for the first boot,
    during first boot, ignition parse and apply user define config (add
    user/passwd/ssh key), and remove the config file; then call script
    /usr/libexec/coreos-ignition-firstboot-complete.
    
    In script /usr/libexec/coreos-ignition-firstboot-complete, it remove
    /boot/ignition.firstboot, the GRUB detect it and remove boot args
    `ignition.firstboot' if /boot/ignition.firstboot does not exists at
    second boot
    
    If shundown at the time after ignition removes ignition user define config,
    before script /usr/libexec/coreos-ignition-firstboot-complete removes
    /boot/ignition.firstboot, the coming boot will be recognized as first
    boot, but the ignition user define config is lost
    
    Call sync to assure the remove operation on disk
    
    Signed-off-by: Hongxu Jia <[email protected]>
    hongxu-jia committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    c4032c9 View commit details
    Browse the repository at this point in the history