fix(sys-apps/baselayout): Do not set default password in ebuild

Setting the 'core' user's password is now always handled by cloud
config. As an added benefit this will let us use baselayout as a binary
package now that it doesn't depend on random state it the local SDK.
This commit is contained in:
Michael Marineau 2014-05-17 11:42:14 -07:00
parent 4978cfeb86
commit a2b7338452
3 changed files with 0 additions and 12 deletions

View File

@ -34,8 +34,3 @@ EMERGE_DEFAULT_OPTS="--oneshot"
# Since our portage comes from version control, we redirect distfiles.
DISTDIR="/var/lib/portage/distfiles-target"
# Username and home directory of the shared user.
SHARED_USER_NAME="core"
SHARED_USER_HOME="/home/core"
SHARED_USER_PASSWD_FILE="/etc/shared_user_passwd.txt"

View File

@ -163,13 +163,6 @@ src_install() {
sed -i -e '/\/etc\/issue/d' \
"${D}"/usr/lib/tmpfiles.d/baselayout-etc.conf || die
# Set custom password for core user
if [[ -r "${SHARED_USER_PASSWD_FILE}" ]]; then
echo "core:$(<${SHARED_USER_PASSWD_FILE}):15887:0:::::" \
> "${D}"/etc/shadow || die
chmod 640 "${D}"/etc/shadow || die
fi
# Initialize /etc/passwd, group, and friends on boot.
bash "scripts/coreos-tmpfiles" "${D}" || die
dosbin "scripts/coreos-tmpfiles"