Skip to content

Optional symlink extension behavior? #45

@copumpkin

Description

@copumpkin

For the symlink syscall, I have a scenario in which I don't want fakechroot to extend the path being symlinked to (absolute or relative), and just want it to create the symlink as requested by the program being run under fakeroot. Would it be possible to make the current prefix behavior optional, or is there a better way to do what I want?

The scenario is for rootless building of disk images and certain tools need to run in a chroot and create an (absolute) symlink. So I run the tools under fakechroot and they work fine, except that the symlinks they create in the target filesystem now have my fake root path prepended to them, so I need to go fix them up before I can make my disk image.

Does that make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions