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.

On Wed, Sep 27, 2017 at 10:22 AM, Khem Raj <raj.k...@gmail.com> wrote:

>
> On Wed, Sep 27, 2017 at 9:21 AM John Finley <john.fin...@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@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 <shrawan.ku...@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@yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to