1
0
mirror of https://github.com/rancher/os.git synced 2025-05-30 18:35:17 +00:00

Expose an error when mounting

This is to make debugging easier
This commit is contained in:
niusmallnan 2018-08-02 16:02:44 +08:00
parent 2f60eb3d69
commit 4fff436f04

View File

@ -147,9 +147,11 @@ func mountOem(cfg *config.CloudConfig) (*config.CloudConfig, error) {
}
func tryMountState(cfg *config.CloudConfig) error {
if mountState(cfg) == nil {
err := mountState(cfg)
if err == 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 err := bootstrap(cfg); err != nil {