MCPcopy Create free account
hub / github.com/cloudfoundry/bosh-agent / SetupHomeDir

Method SetupHomeDir

platform/linux_platform.go:1047–1064  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1045}
1046
1047func (p linux) SetupHomeDir() error {
1048 mounter := boshdisk.NewLinuxBindMounter(p.diskManager.GetMounter())
1049 isMounted, err := mounter.IsMounted("/home")
1050 if err != nil {
1051 return bosherr.WrapError(err, "Setup home dir, checking if mounted")
1052 }
1053 if !isMounted {
1054 err := mounter.Mount("/home", "/home")
1055 if err != nil {
1056 return bosherr.WrapError(err, "Setup home dir, mounting home")
1057 }
1058 err = mounter.RemountInPlace("/home", "nodev", "nosuid")
1059 if err != nil {
1060 return bosherr.WrapError(err, "Setup home dir, remount in place")
1061 }
1062 }
1063 return nil
1064}
1065
1066func (p linux) SetupBlobsDir() error {
1067 blobsDirPath := p.dirProvider.BlobsDir()

Callers

nothing calls this directly

Calls 4

GetMounterMethod · 0.65
IsMountedMethod · 0.65
MountMethod · 0.65
RemountInPlaceMethod · 0.65

Tested by

no test coverage detected