mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-08 14:02:11 +02:00
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:
parent
4978cfeb86
commit
a2b7338452
@ -34,8 +34,3 @@ EMERGE_DEFAULT_OPTS="--oneshot"
|
|||||||
|
|
||||||
# Since our portage comes from version control, we redirect distfiles.
|
# Since our portage comes from version control, we redirect distfiles.
|
||||||
DISTDIR="/var/lib/portage/distfiles-target"
|
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"
|
|
||||||
|
@ -163,13 +163,6 @@ src_install() {
|
|||||||
sed -i -e '/\/etc\/issue/d' \
|
sed -i -e '/\/etc\/issue/d' \
|
||||||
"${D}"/usr/lib/tmpfiles.d/baselayout-etc.conf || die
|
"${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.
|
# Initialize /etc/passwd, group, and friends on boot.
|
||||||
bash "scripts/coreos-tmpfiles" "${D}" || die
|
bash "scripts/coreos-tmpfiles" "${D}" || die
|
||||||
dosbin "scripts/coreos-tmpfiles"
|
dosbin "scripts/coreos-tmpfiles"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user