-
Notifications
You must be signed in to change notification settings - Fork 72
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
Strip extended attributes. #8
Comments
"It might be ideal to automatically remove these files" -- during what operation? --export-bom-info itself would not be creating extended attributes. |
during package creation. |
Not really following. Do you mean when --export-bom-info is specified, any existing Bom.txt file should be removed (hopefully removing xattrs along with it)? When the new Bom.txt file is created, it would not have any xattrs. Is that it? |
No, because that's just going to fix it for the following build. lsbom ~/Desktop/test/Bom The bom inside the created package contains these extended attributes. More than likely we don't want these files to begin with. |
Sounds cosmetic, but also like there's potentially a judgement call that needs to be exercised by the admin. On the other hand, it may be less tricky than we think, killing these xattr's may always be considered safe:
etc. That seems like a list that would require maintaining/explaining to munkipkg users. |
erikng: So it's not the bom you are concerned about; it's the payload files. I don't think I'd be in favor of munkipkg automatically stripping xattrs, as there are potentially "helpful" xattrs that an admin might specifically want to include on files in a pkg An option to strip xattrs from payload files might be possible, but Allister brings up an interesting point and a list that is I'm sure is very incomplete. In the interests of simplicity and understandability, I think we either strip them all with a --no-xattrs flag or we leave them all alone. If an admin wants to be surgical, they just need to be surgical "by hand". |
Sounds good. |
When exporting a bomfile, I (and Allister) noticed attribute files. This was due to testing on Dropbox (a huge no-no with git anyway).
I git pulled onto a clean location and recreated everything. erikng/munki-pkg-projects@f63f09a
It might be ideal to automatically remove these files or put it on the readme.
The text was updated successfully, but these errors were encountered: