From ddff8cd78bb81bf227be919e31400078e436a609 Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Tue, 20 May 2014 15:39:09 -0500 Subject: [PATCH] chroot: dump user name settings from /etc/group Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- scripts/chroot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 5f596c67a..1f2018835 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -591,6 +591,7 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ pass_crypt=\$(perl -e 'print crypt(\$ARGV[0], "rcn-ee-salt")' ${rfs_password}) useradd -G "\${default_groups}" -s /bin/bash -m -p \${pass_crypt} -c "${rfs_fullname}" ${rfs_username} + grep ${rfs_username} /etc/group mkdir -p /home/${rfs_username}/bin chown ${rfs_username}:${rfs_username} /home/${rfs_username}/bin -- GitLab