Skip to content

Commit

Permalink
Merge pull request #47 from jerryk55/assume_c_drive_if_not_determined
Browse files Browse the repository at this point in the history
Assume C: Drive if Disk Signature Doesn't Match Serial Number
(cherry picked from commit c918c978617bdec60ec9606411fcee2a235580fa)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1531261
  • Loading branch information
roliveri authored and simaishi committed Jan 4, 2018
1 parent fb71021 commit 5ca4fc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/gems/pending/fs/modules/WinMount.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ def fs_init
@rootDriveLetter = idToDriveLetter[key]
$log.debug "WinMount.fs_init: @rootDriveLetter = idToDriveLetter[#{key}] = #{@rootDriveLetter}"
end
raise MiqException::MiqVmMountError, "Could not determine root drive letter." unless @rootDriveLetter
if @rootDriveLetter.nil?
$log.debug("WinMount.fs_init: Could not determine root drive letter. Assuming C: Drive")
@rootDriveLetter = "C:"
idToDriveLetter[key] = @rootDriveLetter
end
@driveToFS[@rootDriveLetter] = @rootFS
saveFs(@rootFS, @rootDriveLetter, key)

Expand Down

0 comments on commit 5ca4fc5

Please sign in to comment.