Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. SUMMARY = "Example recipe for using inherit useradd"
  2. DESCRIPTION = "This recipe serves as an example for using features from useradd.bbclass"
  3. SECTION = "examples"
  4. PR = "r1"
  5. LICENSE = "MIT"
  6.  
  7. S = "${WORKDIR}"
  8.  
  9. inherit useradd
  10.  
  11. # You must set USERADD_PACKAGES when you inherit useradd. This
  12. # lists which output packages will include the user/group
  13. # creation code.
  14. USERADD_PACKAGES = "${PN}"
  15.  
  16. USERADD_PARAM_${PN} = "-d /home/foo -r -s /bin/bash -p 'bar' foo"
  17.  
  18. do_install () {
  19. install -d -m 755 ${D}${datadir}/foo
  20. chown -R foo ${D}${datadir}/foo
  21. }
  22.  
  23. # Prevents do_package failures with:
  24. # debugsources.list: No such file or directory:
  25. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement