()
| 1045 | } |
| 1046 | |
| 1047 | func (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 | |
| 1066 | func (p linux) SetupBlobsDir() error { |
| 1067 | blobsDirPath := p.dirProvider.BlobsDir() |
nothing calls this directly
no test coverage detected