diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-09-24 00:20:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-24 17:24:14 +0100 |
commit | e0a351b9131918d0ee7ade4c02f4e012a69dc837 (patch) | |
tree | 468e400145735cce535fc02c4eb7f34e019e5a9d /meta | |
parent | 5f9ee672a0c187fab6f0a60237796808457e6569 (diff) | |
download | poky-e0a351b9131918d0ee7ade4c02f4e012a69dc837.tar.gz |
sysvinit: don't use useradd
It causes shadow to be used in core-image-minimal and increase the
size by 1.5M. We will add the shutdown user to group via base-passwd
which we depend upon instead.
[YOCTO #5230]
(From OE-Core rev: e33e4c30a4fa5b98903d6a46cdcc5bca9cf50848)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb index 97ecc51c4d..50842e2fb6 100644 --- a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb +++ b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | |||
@@ -24,8 +24,8 @@ SRC_URI[sha256sum] = "60bbc8c1e1792056e23761d22960b30bb13eccc2cabff8c7310a01f4d5 | |||
24 | S = "${WORKDIR}/sysvinit-${PV}" | 24 | S = "${WORKDIR}/sysvinit-${PV}" |
25 | B = "${S}/src" | 25 | B = "${S}/src" |
26 | 26 | ||
27 | inherit update-alternatives useradd | 27 | inherit update-alternatives |
28 | DEPENDS_append = " update-rc.d-native" | 28 | DEPENDS_append = " update-rc.d-native base-passwd" |
29 | 29 | ||
30 | ALTERNATIVE_${PN} = "init mountpoint halt reboot runlevel shutdown poweroff last mesg utmpdump wall" | 30 | ALTERNATIVE_${PN} = "init mountpoint halt reboot runlevel shutdown poweroff last mesg utmpdump wall" |
31 | 31 | ||
@@ -53,9 +53,6 @@ ALTERNATIVE_LINK_NAME[sulogin.8] = "${mandir}/man8/sulogin.8" | |||
53 | ALTERNATIVE_LINK_NAME[utmpdump.1] = "${mandir}/man1/utmpdump.1" | 53 | ALTERNATIVE_LINK_NAME[utmpdump.1] = "${mandir}/man1/utmpdump.1" |
54 | ALTERNATIVE_LINK_NAME[wall.1] = "${mandir}/man1/wall.1" | 54 | ALTERNATIVE_LINK_NAME[wall.1] = "${mandir}/man1/wall.1" |
55 | 55 | ||
56 | USERADD_PACKAGES = "${PN}" | ||
57 | GROUPADD_PARAM_${PN} = "--system shutdown" | ||
58 | |||
59 | PACKAGES =+ "sysvinit-pidof sysvinit-sulogin" | 56 | PACKAGES =+ "sysvinit-pidof sysvinit-sulogin" |
60 | FILES_${PN} += "${base_sbindir}/* ${base_bindir}/*" | 57 | FILES_${PN} += "${base_sbindir}/* ${base_bindir}/*" |
61 | FILES_sysvinit-pidof = "${base_bindir}/pidof.sysvinit ${base_sbindir}/killall5" | 58 | FILES_sysvinit-pidof = "${base_bindir}/pidof.sysvinit ${base_sbindir}/killall5" |