1
0
mirror of https://github.com/rancher/os.git synced 2025-09-15 14:40:51 +00:00

Mount the boot partition when booting

Also update StateDir and OemDir for better clarity
This commit is contained in:
niusmallnan
2018-09-30 14:30:25 +08:00
committed by niusmallnan
parent 0b5002fa47
commit eeebf0ae0f
12 changed files with 244 additions and 226 deletions

View File

@@ -22,7 +22,7 @@ const (
)
func hasImage(name string) bool {
stamp := path.Join(config.State, name)
stamp := path.Join(config.StateDir, name)
if _, err := os.Stat(stamp); os.IsNotExist(err) {
return false
}