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
fix running as non-root creates non-root files in the cpio #15
Conversation
@@ -221,7 +221,7 @@ build_image() { | |||
# If this pipeline changes, |pipeprogs| below needs to be updated as well. | |||
find . -mindepth 1 -printf '%P\0' | | |||
sort -z | | |||
LANG=C bsdtar --null -cnf - -T - | | |||
LANG=C bsdtar --uid 0 --gid 0 --null -cnf - -T - | | |||
LANG=C bsdtar --uid 0 --gid 0 --null -cf - --format=newc @- | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dreisner suggested that this second line probably doesn't need the --uid/--gid, since it obviously doesn't work. should I remove those?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to let @esotericnonsense look over and ensure it doesn't break reproducability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dreisner suggested that this second line probably doesn't need the --uid/--gid, since it obviously doesn't work. should I remove those?
This second line looks weird to me, indeed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to let @esotericnonsense look over and ensure it doesn't break reproducability.
I'm going to test it also. And is reproducibility :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any news?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, doesn't the above sort -z
also need a LANG=C
option (just in case)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this quick fix should've been released earlier, and then do major refactors later
🔢 ? |
#38 implements the same feature with some more changes. I'm closing this one and I'll evaluate the other to see if it doesn't break reproducibility. |
https://bugs.archlinux.org/task/65006