mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-29 14:31:46 +01:00
sys-apps/baselayout: Initialize the user/group database earlier
systemd-tmpfiles in systemd v246 requires the user/group databases in the custom root if it gets passed with --root flag. This requires a new version of baselayout to be pulled, so do so.
This commit is contained in:
parent
4e86e2c3aa
commit
0d1f86c398
@ -9,7 +9,7 @@ CROS_WORKON_REPO="git://github.com"
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
else
|
||||
CROS_WORKON_COMMIT="b67c163348c69b7c02dac1bb087b1a15cf21afa7" # flatcar-master
|
||||
CROS_WORKON_COMMIT="df037edbeab79c38caed61f48dec7a00e764e20e" # flatcar-master
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
fi
|
||||
|
||||
@ -113,6 +113,17 @@ src_install() {
|
||||
for sym in "${!LIB_SYMS[@]}" ; do
|
||||
dosym "${LIB_SYMS[$sym]}" "${sym}"
|
||||
done
|
||||
|
||||
if use cros_host; then
|
||||
# We assume that SDK already has the user and group database.
|
||||
:
|
||||
else
|
||||
# Initialize /etc/passwd, group, and friends now, so
|
||||
# systemd-tmpfiles can resolve user information in ${D}
|
||||
# rootfs.
|
||||
bash "scripts/flatcar-tmpfiles" "${D}" "${S}/baselayout" || die
|
||||
fi
|
||||
|
||||
if use symlink-usr; then
|
||||
systemd_dotmpfilesd "${T}/baselayout-usr.conf"
|
||||
systemd-tmpfiles --root="${D}" --create
|
||||
@ -181,7 +192,6 @@ src_install() {
|
||||
"${D}"/usr/lib/tmpfiles.d/baselayout-etc.conf || die
|
||||
|
||||
# Initialize /etc/passwd, group, and friends on boot.
|
||||
bash "scripts/flatcar-tmpfiles" "${D}" || die
|
||||
dosbin "scripts/flatcar-tmpfiles"
|
||||
systemd_dounit "scripts/flatcar-tmpfiles.service"
|
||||
systemd_enable_service sysinit.target flatcar-tmpfiles.service
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user