1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Support OEM partition and oem-config.yml

This commit is contained in:
Darren Shepherd
2015-12-19 22:26:09 -07:00
parent cd2829d220
commit 1a95080522
7 changed files with 79 additions and 9 deletions

View File

@@ -100,6 +100,10 @@ func copyMoveRoot(rootfs string, rmUsr bool) error {
}
func switchRoot(rootfs, subdir string, rmUsr bool) error {
if err := syscall.Unmount(config.OEM, 0); err != nil {
log.Debugf("Not umounting OEM: %v", err)
}
if subdir != "" {
fullRootfs := path.Join(rootfs, subdir)
if _, err := os.Stat(fullRootfs); os.IsNotExist(err) {