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

wrong file owner on rootfs #7

Open
klirichek opened this issue Oct 16, 2014 · 3 comments
Open

wrong file owner on rootfs #7

klirichek opened this issue Oct 16, 2014 · 3 comments

Comments

@klirichek
Copy link

in rootfs.tar.bz2 the owner of all files is 1000:1000
(guess, must it be root:root instead?)

@wangwenbin
Copy link

At the end, make need your password. I guess: make using sudo to run the tar command here .
so, type your password will get it ok.

@klirichek
Copy link
Author

no, it is not ok.
I don't know why it uses tar under sudo - but it no way touches file ownering.
files inside archive are owned by 1000:1000.
On repacking (even with sudo) it is not changed.
So, on final rootfs they all also owned by 1000:1000.

@wangwenbin
Copy link

why sudo ?
this line code of makefile give you the answer:

https://github.com/comcat/miwifi/blob/master/Makefile#L73
cd rootfs && sudo tar czfp ../jarvis-rootfs.tgz *

I think you can make this line of code to a comment. Then after make, you do this your self.
This line change file-own to root:root .
rootfs needs file-own to be root:root .

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

No branches or pull requests

2 participants