From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B554C10DCE for ; Sun, 8 Mar 2020 15:41:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5959020674 for ; Sun, 8 Mar 2020 15:41:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726279AbgCHPlJ (ORCPT ); Sun, 8 Mar 2020 11:41:09 -0400 Received: from ciao.gmane.io ([159.69.161.202]:38966 "EHLO ciao.gmane.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbgCHPlJ (ORCPT ); Sun, 8 Mar 2020 11:41:09 -0400 X-Greylist: delayed 301 seconds by postgrey-1.27 at vger.kernel.org; Sun, 08 Mar 2020 11:41:08 EDT Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jAxyH-000MOg-MV for linux-btrfs@vger.kernel.org; Sun, 08 Mar 2020 16:36:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: linux-btrfs@vger.kernel.org From: Ferry Toth Subject: Re: Howto take a snapshot from an image as ordinary user? Date: Sun, 8 Mar 2020 16:39:49 +0100 Message-ID: References: <58ad5d52-425a-a89d-d042-e9941088828a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 In-Reply-To: <58ad5d52-425a-a89d-d042-e9941088828a@gmail.com> Content-Language: en-US Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Hi Op 07-03-2020 om 22:21 schreef Ferry Toth: > I am generating a btrfs system image using Yocto. > > I want to take a snapshot from the image preferably inside a Yocto > recipe. The snapshot I can send 'over the air' to the remote (IoT) device. > > Now I am able to loop mount the image file using udisksctl as an > ordinary user, which mounts the image under /media/ferry. > > However, the owner of the mount point is root, and it appears I am not > allowed to take a snapshot as an ordinary user. To clarify, I know that I can chown the mount point after mounting. But to do that I need to sudo it. > I think it is obvious that I don't want to run bitbake as root. > > So what is the recommended way to generate a snapshot without becoming > root? > > Thanks, > > Ferry > >