mirror of
https://github.com/containers/podman.git
synced 2025-11-02 14:55:28 +08:00
Fix init teardown on bad ignition path
Fixes a bug where if a machine failed during init due to a bad ignition path, it would not be properly torn down. Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
This commit is contained in:
@ -259,7 +259,8 @@ func (m *MacMachine) Init(opts machine.InitOptions) (bool, error) {
|
||||
})
|
||||
|
||||
if len(opts.IgnitionPath) > 0 {
|
||||
return false, builder.BuildWithIgnitionFile(opts.IgnitionPath)
|
||||
err = builder.BuildWithIgnitionFile(opts.IgnitionPath)
|
||||
return false, err
|
||||
}
|
||||
|
||||
if err := builder.GenerateIgnitionConfig(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user