Skip to content

Unpacking in Docker obliterates original image files #145

@remram44

Description

@remram44

When unpacking using reprounzip-docker, the files from the original docker image (that are not from the experiment) are completely wiped. This is because of the change in #116 to add -U --recursive-unlink to tar (11929b3).

It seems that I can either pass that, and then the original files from the image get deleted when unpacking files in the same directories (for example, most of /etc vanishes), or not pass it, in which case when a path is a file in the experiment and a directory in the original image, unpacking will fail (it's the case when unpacking a Fedora experiment in a Debian docker image).

Possible solution here is to not just use tar to unpack, since it doesn't seem to have an option for the behavior I need. Extracting the Docker image and putting the files in it myself should work (but is more involved than changing tar flags).

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-unpackers/dockerComponent: The Docker unpackerT-bugType: A fix for unwanted behavior, NOT a new feature or a simple enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions