Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix detection of vdi harddisks inside a vbox file. #42

Merged
merged 3 commits into from
Sep 8, 2024

Conversation

twiggler
Copy link
Contributor

@twiggler twiggler commented Sep 4, 2024

Sometimes the vbox configuration file might specifiy the format attribute of a HardDisk using lower case (vdi).

This patch ensures that both lower and upper case are supported.

Closes #43

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.62%. Comparing base (4f8dae8) to head (5324ecd).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #42      +/-   ##
==========================================
+ Coverage   61.61%   61.62%   +0.01%     
==========================================
  Files          27       27              
  Lines        2355     2356       +1     
==========================================
+ Hits         1451     1452       +1     
  Misses        904      904              
Flag Coverage Δ
unittests 61.62% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@twiggler twiggler self-assigned this Sep 4, 2024
Sometimes the vbox configuration file might specifiy the format attribute of a HardDisk using lower case (vdi).
This patch ensures that both lower and upper case are supported.
tests/test_vbox.py Outdated Show resolved Hide resolved
tests/test_vbox.py Outdated Show resolved Hide resolved
@twiggler twiggler linked an issue Sep 5, 2024 that may be closed by this pull request
dissect/hypervisor/descriptor/vbox.py Show resolved Hide resolved
dissect/hypervisor/descriptor/vbox.py Outdated Show resolved Hide resolved
@twiggler twiggler merged commit 98a9a66 into main Sep 8, 2024
18 checks passed
@twiggler twiggler deleted the fix/lowercase-disk-format branch September 8, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vbox loader does not find vdi images
4 participants