Skip to content

Commit

Permalink
Merge pull request kata-containers#376 from devimc/topic/imageAgentAs…
Browse files Browse the repository at this point in the history
…Init

agent: support agent as init process in rootfs images
  • Loading branch information
bergwolf authored Sep 21, 2018
2 parents f699f87 + 54f77cf commit 78396bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,11 @@ func mountToRootfs(m initMount) error {
func generalMount() error {
for _, m := range initRootfsMounts {
if err := mountToRootfs(m); err != nil {
return err
// dev is already mounted if the rootfs image is used
if m.src != "dev" {
return err
}
agentLog.WithError(err).WithField("src", m.src).Warnf("Could not mount filesystem")
}
}
return nil
Expand Down

0 comments on commit 78396bd

Please sign in to comment.