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