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

Investigate extracting the rootfs with symlinks preserved #25

Open
fe-wickham opened this issue Jan 8, 2021 · 0 comments
Open

Investigate extracting the rootfs with symlinks preserved #25

fe-wickham opened this issue Jan 8, 2021 · 0 comments

Comments

@fe-wickham
Copy link
Member

I misspoke earlier. -p is for preserve permissions, which is default when run as superuser (we do want permissions preserved).

I think it is preferable to keep the symlinks rather than dereferencing them, but I don't know if dereferencing causes any practical problems. Judging by reports so far, it doesn't appear to be an issue. My thought is that if symlinks are there in the original Ubuntu base archive, there is probably a reason, so we should keep the symlinks.

I would think using the same tar arguments that we use in build_rootfs.sh would work correctly, though, as I don't recall having any issues with that before.

We can verify if we are removing symlinks by running find with -type l on the original Ubuntu base directory and our modified rootfs.

Originally posted by @tvannoy in #24 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant