Skip to content

Commit

Permalink
Copy extensions to passive as well
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Jun 10, 2024
1 parent b176b47 commit 91e18dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/agent/hooks/sysext.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ func (b SysExtPostInstall) Run(c config.Config, _ v1.Spec) error {
return nil
}
c.Logger.Debugf("copied %s to %s", path, activeDir)

err = fsutils.Copy(c.Fs, path, filepath.Join(passiveDir, info.Name()))
if err != nil {
c.Logger.Errorf("failed to copy %s to %s: %s", path, passiveDir, err)
if c.FailOnBundleErrors {
return err
}
return nil
}
c.Logger.Debugf("copied %s to %s", path, passiveDir)
}
return nil
})
Expand Down

0 comments on commit 91e18dd

Please sign in to comment.