mirror of
https://github.com/rancher/os.git
synced 2025-08-31 06:11:12 +00:00
Fix mounting /usr filesystem in non-dev RancherOS versions
This commit is contained in:
@@ -40,7 +40,7 @@ func cleanupTarget(rootfs, targetUsr, usr, usrVer, tmpDir string) (bool, error)
|
||||
return true, nil
|
||||
}
|
||||
|
||||
if _, err := os.Stat(usrVer); os.IsNotExist(err) {
|
||||
if _, err := os.Stat(usr); err == nil {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user