mirror of
https://github.com/rancher/os.git
synced 2025-06-19 11:41:55 +00:00
Expose an error when mounting
This is to make debugging easier
This commit is contained in:
parent
2f60eb3d69
commit
4fff436f04
@ -147,9 +147,11 @@ func mountOem(cfg *config.CloudConfig) (*config.CloudConfig, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func tryMountState(cfg *config.CloudConfig) error {
|
func tryMountState(cfg *config.CloudConfig) error {
|
||||||
if mountState(cfg) == nil {
|
err := mountState(cfg)
|
||||||
|
if err == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
log.Infof("Skipped an error when first mounting: %v", err)
|
||||||
|
|
||||||
// If we failed to mount lets run bootstrap and try again
|
// If we failed to mount lets run bootstrap and try again
|
||||||
if err := bootstrap(cfg); err != nil {
|
if err := bootstrap(cfg); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user