]> git.ipfire.org Git - pakfire.git/commitdiff
Remove creation of users in build chroot.
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Apr 2011 16:53:34 +0000 (18:53 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Apr 2011 16:53:34 +0000 (18:53 +0200)
As we had no /etc/passwd in the last time, we needed to create
some users like root and nobody in the build chroot.
Now, there is the "setup" package which covers this.

pakfire/builder.py

index effe71a303a43921d1cd4a42a2298eed3a407609..ba061a97ae57ae16b3407d1e2a82035b6a232c39 100644 (file)
@@ -289,7 +289,6 @@ class Builder(object):
                        f.close()
 
                self._prepare_dev()
-               self._prepare_users()
                self._prepare_dns()
 
        def _prepare_dev(self):
@@ -327,17 +326,6 @@ class Builder(object):
 
                os.umask(prevMask)
 
-       def _prepare_users(self):
-               f = open(self.chrootPath("etc", "passwd"), "w")
-               f.write("root:x:0:0:root:/root:/bin/bash\n")
-               f.write("nobody:x:99:99:Nobody:/:/sbin/nologin\n")
-               f.close()
-
-               f = open(self.chrootPath("etc", "group"), "w")
-               f.write("root:x:0:root\n")
-               f.write("nobody:x:99:\n")
-               f.close()
-
        def _prepare_dns(self):
                """
                        Add DNS resolution facility to chroot environment by copying