Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SUMMARY = "Example recipe for using inherit useradd"
- DESCRIPTION = "This recipe serves as an example for using features from useradd.bbclass"
- SECTION = "examples"
- PR = "r1"
- LICENSE = "MIT"
- S = "${WORKDIR}"
- inherit useradd
- # You must set USERADD_PACKAGES when you inherit useradd. This
- # lists which output packages will include the user/group
- # creation code.
- USERADD_PACKAGES = "${PN}"
- USERADD_PARAM_${PN} = "-d /home/foo -r -s /bin/bash -p 'bar' foo"
- do_install () {
- install -d -m 755 ${D}${datadir}/foo
- chown -R foo ${D}${datadir}/foo
- }
- # Prevents do_package failures with:
- # debugsources.list: No such file or directory:
- INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement