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

Add image cleanup support #256

Open
Drewsif opened this issue Feb 14, 2023 · 0 comments
Open

Add image cleanup support #256

Drewsif opened this issue Feb 14, 2023 · 0 comments

Comments

@Drewsif
Copy link
Owner

Drewsif commented Feb 14, 2023

I would like to add an option so that users can point to a script to be run to help cleanup images. I do not want to add any code into PiShrink to do the actual cleanup but still support users who want to do it.

My initial thought is to have an option to call a user provided script. After changing the working directory to the mounted image, and possibly pass in the directory as the only parameter. This would allow users to use relative paths or use the argument to clean up their image as they see fit.

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

1 participant