summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/base-passwd/base-passwd_3.5.29.bb')
-rw-r--r--meta/recipes-core/base-passwd/base-passwd_3.5.29.bb9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb
index 59bd413b49..ec8f2afb22 100644
--- a/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb
+++ b/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb
@@ -47,9 +47,14 @@ base_passwd_sstate_postinst() {
47 # put these files in the target sysroot so they can 47 # put these files in the target sysroot so they can
48 # be used by recipes which use custom user/group 48 # be used by recipes which use custom user/group
49 # permissions. 49 # permissions.
50 # Install passwd.master and group.master to sysconfdir and mv
51 # them to make sure they are atomically install.
50 install -d -m 755 ${STAGING_DIR_TARGET}${sysconfdir} 52 install -d -m 755 ${STAGING_DIR_TARGET}${sysconfdir}
51 install -p -m 644 ${STAGING_DIR_TARGET}${datadir}/base-passwd/passwd.master ${STAGING_DIR_TARGET}${sysconfdir}/passwd 53 for i in passwd group; do
52 install -p -m 644 ${STAGING_DIR_TARGET}${datadir}/base-passwd/group.master ${STAGING_DIR_TARGET}${sysconfdir}/group 54 install -p -m 644 ${STAGING_DIR_TARGET}${datadir}/base-passwd/$i.master \
55 ${STAGING_DIR_TARGET}${sysconfdir}/
56 mv ${STAGING_DIR_TARGET}${sysconfdir}/$i.master ${STAGING_DIR_TARGET}${sysconfdir}/$i
57 done
53 fi 58 fi
54} 59}
55 60