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

RANCHER_BOOT doesn't contain the /boot prefx, so lets mount it that way to fake it

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-01-27 05:35:41 +00:00
parent 26ec406a04
commit e51ea84439

View File

@@ -740,6 +740,7 @@ func mountdevice(baseName, bootDir, partition string, raw bool) (string, string,
cmd.Stderr = os.Stderr
if out, err := cmd.Output(); err == nil {
partition = strings.TrimSpace(string(out))
baseName = filepath.Join(baseName, "boot")
} else {
cmd := exec.Command("blkid", "-L", "RANCHER_STATE")
log.Debugf("Run(%v)", cmd)