]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Add a root account to chroot environment.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Dec 2009 16:26:30 +0000 (17:26 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 2 Dec 2009 16:26:30 +0000 (17:26 +0100)
tools/naoki-functions

index 40cc408255d4484cdefba5c69f3d7be376c9b2ac..fbcc2c2cff39986c18d05acf1301080efcd0db19 100644 (file)
@@ -87,7 +87,10 @@ function naoki_prepare() {
        
                # Configure dns resolving
                cp -f /etc/resolv.conf /etc/hosts ${BUILD_DIR}/etc/
-       
+
+               grep ^root /etc/passwd > ${BUILD_DIR}/etc/passwd
+               grep ^root /etc/group > ${BUILD_DIR}/etc/group
+
                local i
                for i in cache ccache pkgs src tools ${DIR_PACKAGES}; do
                        if [ "${i:0:1}" != "/" ]; then