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

compose: Fix lookup of previous /etc/passwd #87

Merged
merged 1 commit into from
Jan 7, 2015

Conversation

cgwalters
Copy link
Member

I swear I tested this, but anyways
#79
wasn't quite right. We need to look at /usr/etc/{passwd,group}
for previous data.

We happily noticed there was no /etc/passwd in the tree, then
proceeded to do the merge and split again, with the result
of an empty /usr/etc/passwd in the new tree.

That in turn resulted in an empty /etc/passwd in an installed system,
i.e. with no "root" user, with obvious bad consequences, namely in my
case crashing Anaconda.

(Yes, I will write a testsuite for this)

I swear I tested this, but anyways
coreos#79
wasn't quite right.  We need to look at /usr/etc/{passwd,group}
for previous data.

We happily noticed there was no /etc/passwd in the tree, then
proceeded to do the merge and split again, with the result
of an empty /usr/etc/passwd in the new tree.

That in turn resulted in an empty /etc/passwd in an installed system,
i.e. with no "root" user, with obvious bad consequences, namely in my
case crashing Anaconda.

(Yes, I will write a testsuite for this)
@cgwalters
Copy link
Member Author

Thinking about this, I realize what happened. I did test it, and it fixed the bug I was having, because I upgraded an existing system, which had a modified /etc/passwd, which overrode the new default empty file.

@mbarnes
Copy link
Contributor

mbarnes commented Jan 7, 2015

Makes sense to me. 👍

cgwalters added a commit that referenced this pull request Jan 7, 2015
compose: Fix lookup of previous /etc/passwd
@cgwalters cgwalters merged commit 2e5962b into coreos:master Jan 7, 2015
@cgwalters cgwalters deleted the previous-etc-passwd-continued branch January 7, 2015 13:01
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

Successfully merging this pull request may close these issues.

None yet

2 participants