You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add commands on Windows to remount as either user or system (#490)
* Add enable remount with system or user on Windows
* Add unmount command
* First pass on using windows service for system startup
* Fix build
* Fix issues with service starting correctly.
* Fix error messages
* Finish windows service start tool
* Final changes
* Cleanup documentation and simplify some logic
returnfmt.Errorf("failed to mount instance [%s]", err.Error())
327
327
}
@@ -492,14 +492,8 @@ var mountCmd = &cobra.Command{
492
492
returnDestroy(fmt.Sprintf("failed to initialize new pipeline :: To authenticate using MSI with object-ID, ensure Azure CLI is installed. Alternatively, use app/client ID or resource ID for authentication. [%s]", err.Error()))
493
493
}
494
494
495
-
errorMessage:=""
496
-
if!configFileProvided {
497
-
errorMessage+="config file not provided."
498
-
} else {
499
-
errorMessage+="Config file "+options.ConfigFile+" not found."
500
-
}
501
-
log.Err("mount : "+errorMessage+" failed to initialize new pipeline [%v]", err)
502
-
returnDestroy(fmt.Sprintf("%s failed to initialize new pipeline [%s]", errorMessage, err.Error()))
495
+
log.Err("mount : failed to initialize new pipeline [%v]", err)
496
+
returnDestroy(fmt.Sprintf("mount : failed to initialize new pipeline [%s]", err.Error()))
mountCmd.Flags().BoolVar(&options.EnableRemountSystem, "enable-remount-system", false, "Remount container on server restart. Mount will restart on reboot.")
mountCmd.Flags().BoolVar(&options.EnableRemountUser, "enable-remount-user", false, "Remount container on server restart for current user. Mount will restart on current user log in.")
0 commit comments