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

Feature idea: skipping asr imagescan #144

Closed
timsutton opened this issue Feb 28, 2016 · 5 comments
Closed

Feature idea: skipping asr imagescan #144

timsutton opened this issue Feb 28, 2016 · 5 comments
Milestone

Comments

@timsutton
Copy link
Contributor

I've been using AutoDMG for some scenarios where I only want to convert the result to a VMDK, and for which the asr imagescan step wouldn't be needed. In some cases the output DMG is around ~14GB compressed, so the scan adds a fair amount of time.

What do you think of the idea of adding an option to skip the restore process? I'm not sure there are other "post-processing" modifications that would ever make sense for AutoDMG to do with the resulting DMG, but this has been one I've wanted on a number of occasions. I assume that if you would consider a PR to this effect, would this be something you would want to define in the "Advanced" window so that it could be accessible via the GUI, a template and the CLI build command?

@MagerValp
Copy link
Owner

Go for it.

@timsutton
Copy link
Contributor Author

Great! After messing around with the code for a while, here's what I've implemented, very roughly. Let me know if this seems sane, if you have thoughts on how it could be done differently:

  • Add a checkbox called "Don't Scan for Restore" in Advanced after the image name and size options, which defaults to off.
  • This propagates a boolean value down to the IEDTemplate and IEDWorkflow similarly to how the other Advanced options work.
  • The resulting template stores a boolean key SkipAsrImagescan
  • The actual logic at the time of building is that when the IEDWorkflow's task list is being built, if this attribute is True, the Finalize task is simply not added. With this, no changes are needed for either of the underlying engine scripts.

No CLI option's been added yet but I'd add something like --dont-scan-for-restore (or --skip-scan-for-restore) them to the build command.

The terminology used for these options ("Don't", "Skip", "imagescan" etc.) aren't consistent but I chose them to reflect the context (app code, asr options and user-facing UI elements) in which they're used.

@MagerValp
Copy link
Owner

👍

I'd go with --skip-asr-imagescan to match the template bool.

@timsutton
Copy link
Contributor Author

Thanks - I'll open a PR to start posting commits.

timsutton added a commit to timsutton/AutoDMG that referenced this issue Mar 1, 2016
- towards MagerValp#144
- no CLI option yet
- layout of Advanced Window is cropped
timsutton added a commit to timsutton/AutoDMG that referenced this issue Mar 2, 2016
- towards MagerValp#144
- no CLI option yet
- layout of Advanced Window is cropped
@MagerValp MagerValp added this to the v1.6 milestone Mar 7, 2016
@MagerValp
Copy link
Owner

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants