mirror of
https://github.com/rancher/os.git
synced 2025-07-16 08:05:51 +00:00
Fix mounting /usr filesystem in non-dev RancherOS versions
This commit is contained in:
parent
0d035abe98
commit
65da0341eb
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user