{"action":"closed","issue":{"url":"https://api.github.com/repos/mwrock/boxstarter/issues/87","labels_url":"https://api.github.com/repos/mwrock/boxstarter/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/mwrock/boxstarter/issues/87/comments","events_url":"https://api.github.com/repos/mwrock/boxstarter/issues/87/events","html_url":"https://github.com/mwrock/boxstarter/issues/87","id":74130365,"number":87,"title":"Cannot find drive exception after reboot","user":{"login":"bradlunde","id":12298850,"avatar_url":"https://avatars.githubusercontent.com/u/12298850?v=3","gravatar_id":"","url":"https://api.github.com/users/bradlunde","html_url":"https://github.com/bradlunde","followers_url":"https://api.github.com/users/bradlunde/followers","following_url":"https://api.github.com/users/bradlunde/following{/other_user}","gists_url":"https://api.github.com/users/bradlunde/gists{/gist_id}","starred_url":"https://api.github.com/users/bradlunde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradlunde/subscriptions","organizations_url":"https://api.github.com/users/bradlunde/orgs","repos_url":"https://api.github.com/users/bradlunde/repos","events_url":"https://api.github.com/users/bradlunde/events{/privacy}","received_events_url":"https://api.github.com/users/bradlunde/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-07T21:16:25Z","updated_at":"2015-07-01T06:24:08Z","closed_at":"2015-07-01T06:24:08Z","body":"When using boxstarter to install chocolatey packages which mounts an ISO an exception is thrown during the reboot process that boxstarter is unable to handle.  Not sure if there is a work around possible as there are already try/catch statements around the script.\r\n\r\nThe drive letter below is mounted and then unmounted during the installation of a chocolatey package.\r\n\r\nI can send script files as well as a log file if it would be helpful.\r\n\r\nException from log is as follows:\r\n[2015-05-07T11:12:23.6973930-07:00:::PID 2576] Boxstarter: Exit Code: 0\r\n[2015-05-07T11:12:23.6973930-07:00:::PID 2576] Boxstarter: There was an error calling chocolatey\r\n[2015-05-07T11:12:23.9630124-07:00:::PID 2576] Error from chocolatey: \r\n\r\nErrorRecord                 : Cannot find drive. A drive with the name 'W' does\r\n                               not exist.\r\nItemName                    : W\r\nSessionStateCategory        : Drive\r\nStackTrace                  :    at System.Management.Automation.SessionStateIn\r\n                              ternal.GetDrive(String name, Boolean automount)\r\n                                 at System.Management.Automation.SessionStateIn\r\n                              ternal.GetDrive(String name, Boolean automount)\r\n                                 at System.Management.Automation.LocationGlobbe\r\n                              r.GetDriveRootRelativePathFromPSPath(String path,\r\n                               CmdletProviderContext context, Boolean escapeCur\r\n                              rentLocation, PSDriveInfo& workingDriveForPath, C\r\n                              mdletProvider& providerInstance)\r\n                                 at System.Management.Automation.LocationGlobbe\r\n                              r.GetProviderPath(String path, CmdletProviderCont\r\n                              ext context, ProviderInfo& provider, PSDriveInfo&\r\n                               drive)\r\n                                 at System.Management.Automation.LocationGlobbe\r\n                              r.GetGlobbedProviderPathsFromMonadPath(String pat\r\n                              h, Boolean allowNonexistingPaths, CmdletProviderC\r\n                              ontext context, ProviderInfo& provider, CmdletPro\r\n                              vider& providerInstance)\r\n                                 at System.Management.Automation.LocationGlobbe\r\n                              r.GetGlobbedProviderPathsFromMonadPath(String pat\r\n                              h, Boolean allowNonexistingPaths, ProviderInfo& p\r\n                              rovider, CmdletProvider& providerInstance)\r\n                                 at System.Management.Automation.PathUtils.Reso\r\n                              lveFilePath(String filePath, PSCmdlet command, Bo\r\n                              olean isLiteralPath)\r\n                                 at System.Management.Automation.PathUtils.Mast\r\n                              erStreamOpen(PSCmdlet cmdlet, String filePath, En\r\n                              coding resolvedEncoding, Boolean defaultEncoding,\r\n                               Boolean Append, Boolean Force, Boolean NoClobber\r\n                              , FileStream& fileStream, StreamWriter& streamWri\r\n                              ter, FileInfo& readOnlyFileInfo, Boolean isLitera\r\n                              lPath)\r\n                                 at Microsoft.PowerShell.Commands.OutFileComman\r\n                              d.InstantiateLineOutputInterface()\r\n                                 at Microsoft.PowerShell.Commands.OutFileComman\r\n                              d.BeginProcessing()\r\n                                 at System.Management.Automation.Cmdlet.DoBegin\r\n                              Processing()\r\n                                 at System.Management.Automation.CommandProcess\r\n                              orBase.DoBegin()\r\nWasThrownFromThrowStatement : False\r\nMessage                     : Cannot find drive. A drive with the name 'W' does\r\n                               not exist.\r\nData                        : {}\r\nInnerException              : \r\nTargetSite                  : System.Management.Automation.PSDriveInfo GetDrive\r\n                              (System.String, Boolean)\r\nHelpLink                    : \r\nSource                      : System.Management.Automation\r\nHResult                     : -2146233087\r\n\r\n"}}