Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #376 from devimc/topic/imageAgentAsInit
Browse files Browse the repository at this point in the history
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.