[yocto] want to execute a script having sudo : sudo cryptsetup

Khem Raj raj.khem at gmail.com
Wed Sep 27 10:22:09 PDT 2017


On Wed, Sep 27, 2017 at 9:21 AM John Finley <john.finley at gmail.com> 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 at vbox-ubuntu-16$ cat /etc/sudoers.d/john
>     john ALL=(ALL) NOPASSWD: ALL
>     john at 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 <Shrawan.Kumar at harman.com>
> 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
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170927/169d0dfd/attachment.html>


More information about the yocto mailing list