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

git: do not update/checkout with root privileges #1580

Merged
merged 3 commits into from
Sep 29, 2019

Conversation

zhangn1985
Copy link
Contributor

Signed-off-by: Zhang Ning 832666+zhangn1985@users.noreply.github.com

zhangn1985 and others added 3 commits September 29, 2019 15:51
Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
@igorpecovnik igorpecovnik merged commit 507a19f into armbian:master Sep 29, 2019
@piter75
Copy link
Member

piter75 commented Sep 29, 2019

Thank you @zhangn1985!

declare -f update_src >> $TMPFILE
echo update_src >> $TMPFILE

#do not update/checkout git with root privileges to messup files onwership.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But only inside Docker. For native it shall remain unchanged. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no. for bare metal, it should not use root to git pull/checkout, otherwise wrong file ownership.

Copy link
Member

@igorpecovnik igorpecovnik Oct 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We pull to understand if there are changes upstream. This is must have. Sadly we need root / privileged mode for building images. Not for kernel.

Related?
https://forum.armbian.com/topic/11747-q-bash-cannot-set-terminal-process-group-at-compilesh/

@zhangn1985 zhangn1985 deleted the git branch October 1, 2019 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants