From: Michael Tremer Date: Wed, 2 Dec 2009 16:26:30 +0000 (+0100) Subject: Add a root account to chroot environment. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfb82b0995cfe65ca4bb7f7459f7d1a3b11689a5;p=ipfire-3.x.git Add a root account to chroot environment. --- diff --git a/tools/naoki-functions b/tools/naoki-functions index 40cc40825..fbcc2c2cf 100644 --- a/tools/naoki-functions +++ b/tools/naoki-functions @@ -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