-
Notifications
You must be signed in to change notification settings - Fork 198
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
remove-from-packages:
deleting files it shouldn't
#2068
Comments
The version of |
One other small thing I noticed. I updated the manifest entry to be more surgical (i.e. just remove regular files):
But I notice the logs saying:
It all looks good up until that duplicated Just to confirm I re-ran with:
and see:
|
One thing that would fix this in a nice way is to delete the files during import. Then it'd work similarly to e.g. |
I haven't looked at how import works yet, but I think |
I'm OK with refactoring |
Does this mean to not use the current |
In order to call |
Handling it at import time has an appeal, but I'd want to handle the cache invalidation issue. The dev UX is not great though; it's not at all obvious that changing Hmm actually, an approach better than either of those is to just do it in the Does that make sense? |
I see, that makes sense. On a high level, that's also along the lines of "not installing" instead of "installing and then removing" right? |
Oh definitely. (Even in the |
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of the previous implementation using the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of the previous implementation using the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of the previous implementation using the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix coreos#2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
Fix #2068: `remove-from-packages` deleting files that it shouldn't. Filter out files that user wants removed at `checkout_package_into_root()`, instead of at the `handle_remove_files_from_package()` function that does not check whether files are used by other rpms before removing them.
I believe
remove-from-packages:
in the manifest is being overzealous when removing files.For example in RHCOS I was trying to remove all files from the
dhcp-client
rpm and it ended up removing everything under and including/etc/NetworkManager
as well.Here is the excerpt from the manifest:
Here are the files owned by the dhcp-client rpm:
Here is the log snippet from the compose:
And we don't see any NetworkManager files in /etc/ for the resulting OSTree:
I believe expected behavior in this scenario would be that only the
/etc/NetworkManager/dispatcher.d/11-dhclient
would be deleted. Arguably thedhcp-client
rpm should not claim to own the/etc/NetworkManager
or/etc/NetworkManager/dispatcher.d
directories, but I don't think we should rely on packagers to get this right. Mayberemove-from-packages:
can do something like cross check if any other rpms own this file then don't delete it.The text was updated successfully, but these errors were encountered: