127 student@hp-zbook-15-g6-17:/workdir/sources/meta-mysecuredistro-example$ git diff diff --git a/recipes-core/images/core-image-minimal.bbappend b/recipes-core/images/core-image-minimal.bbappend index 6f1b08d..4ad529a 100644 --- a/recipes-core/images/core-image-minimal.bbappend +++ b/recipes-core/images/core-image-minimal.bbappend @@ -1,6 +1,6 @@ inherit extrausers -IMAGE_INSTALL:append = " sudo" +IMAGE_INSTALL:append = " sudo read-loadavg" #printf "%q" $(mkpasswd -m sha256crypt where-is-the-password) PASSWD = "\$5\$iqTmAn1pZ/ux.NTH\$J3/3FaGWu3YgJD1DBPPvBdczXHsEruHVFROkdwSC7p." diff --git a/recipes-examples/read-loadavg/read-loadavg.bb b/recipes-examples/read-loadavg/read-loadavg.bb index dcba400..17b7d41 100644 --- a/recipes-examples/read-loadavg/read-loadavg.bb +++ b/recipes-examples/read-loadavg/read-loadavg.bb @@ -23,9 +23,12 @@ do_configure () { do_compile () { } +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" + do_install () { install -d ${D}/usr/bin - install ${WORKDIR}/read_loadavg.sh ${D}/usr/bin/ + install ${UNPACKDIR}/read_loadavg.sh ${D}/usr/bin/ # The user is already created at this stage install -d -m 700 ${D}${datadir}/monitoring