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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user