Advertisement
RobertBerger

Untitled

Sep 24th, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. 127 student@hp-zbook-15-g6-17:/workdir/sources/meta-mysecuredistro-example$ git diff
  2. diff --git a/recipes-core/images/core-image-minimal.bbappend b/recipes-core/images/core-image-minimal.bbappend
  3. index 6f1b08d..4ad529a 100644
  4. --- a/recipes-core/images/core-image-minimal.bbappend
  5. +++ b/recipes-core/images/core-image-minimal.bbappend
  6. @@ -1,6 +1,6 @@
  7. inherit extrausers
  8.  
  9. -IMAGE_INSTALL:append = " sudo"
  10. +IMAGE_INSTALL:append = " sudo read-loadavg"
  11.  
  12. #printf "%q" $(mkpasswd -m sha256crypt where-is-the-password)
  13. PASSWD = "\$5\$iqTmAn1pZ/ux.NTH\$J3/3FaGWu3YgJD1DBPPvBdczXHsEruHVFROkdwSC7p."
  14. diff --git a/recipes-examples/read-loadavg/read-loadavg.bb b/recipes-examples/read-loadavg/read-loadavg.bb
  15. index dcba400..17b7d41 100644
  16. --- a/recipes-examples/read-loadavg/read-loadavg.bb
  17. +++ b/recipes-examples/read-loadavg/read-loadavg.bb
  18. @@ -23,9 +23,12 @@ do_configure () {
  19. do_compile () {
  20. }
  21.  
  22. +S = "${WORKDIR}/sources"
  23. +UNPACKDIR = "${S}"
  24. +
  25. do_install () {
  26. install -d ${D}/usr/bin
  27. - install ${WORKDIR}/read_loadavg.sh ${D}/usr/bin/
  28. + install ${UNPACKDIR}/read_loadavg.sh ${D}/usr/bin/
  29.  
  30. # The user is already created at this stage
  31. install -d -m 700 ${D}${datadir}/monitoring
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement