On 2017-09-27 01:28 PM, John Finley wrote:
pseudo can't do some of the cryptsetup functions that really require root, or at least I could not convince it to. Using sudo is not so good, but I don't think there's an easy way around it for the cryptsetup stuff.
If you can narrow down what's missing, and open an enhancement request for oe-core-2.5 that would be helpful. Please take a quick look to see if your ER is it already in this list: https://bugzilla.yoctoproject.org/buglist.cgi?quicksearch=pseudo&list_id=601276 Sorting by the product column will help. ../Randy
On Wed, Sep 27, 2017 at 10:22 AM, Khem Raj <[email protected] <mailto:[email protected]>> wrote:On Wed, Sep 27, 2017 at 9:21 AM John Finley <[email protected] <mailto:[email protected]>> wrote: Try making it so the user doing the build is not prompted for a password when they do "sudo". I have this in my vm: I think you can leverage pseudo tool to emulate the root user during build john@vbox-ubuntu-16$ cat /etc/sudoers.d/john john ALL=(ALL) NOPASSWD: ALL john@vbox-ubuntu-16$ I don't know if that's all that's needed; I have to google it every time. On Mon, Sep 25, 2017 at 2:48 AM, Kumar, Shrawan <[email protected] <mailto:[email protected]>> wrote: Hello Team ,____ __ __ I am trying to achieve below from yocto , do we have a way ?____ __ __ __ __ dd if=/dev/zero of=hello.enc bs=4k count=$400____ mknod /dev/loop_dev_0____ losetup /dev/loop_dev_0 hello.enc____ *_sudo_* cryptsetup --type=plain open /dev/loop_dev_0 plainMap < $2____ __ __ __ __ __ __ __ __ Thanks and Regards____ Shrawan____
-- # Randy MacLeod. WR Linux # Wind River an Intel Company -- _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
