Merge pull request #1118 from marineam/sdk

baselayout: create default passwd/group files in the SDK
This commit is contained in:
Michael Marineau 2015-02-25 18:28:59 -08:00
commit c76df5fb2c
2 changed files with 5 additions and 0 deletions

View File

@ -181,4 +181,9 @@ pkg_postinst() {
ln -sfT "${USR_SYMS[$sym]}" "${ROOT}/usr/lib/debug/${sym}" ln -sfT "${USR_SYMS[$sym]}" "${ROOT}/usr/lib/debug/${sym}"
done done
fi fi
# The default passwd/group files must exist in the SDK for some ebuilds
if use cros_host; then
touch "${ROOT}/etc/"{group,gshadow,passwd,shadow}
chmod 640 "${ROOT}/etc/"{gshadow,shadow}
fi
} }