From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6517147827419742208 X-Received: by 10.80.184.23 with SMTP id j23mr13482168ede.3.1517501366224; Thu, 01 Feb 2018 08:09:26 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.185.67 with SMTP id m61ls74537ede.4.gmail; Thu, 01 Feb 2018 08:09:25 -0800 (PST) X-Google-Smtp-Source: AH8x224VI4SgjsSjE/BSNqs6a5SXwU6+Q3Is8+f13iUDzd1Z6hceptM4kHAO2z474HJEDBT048L8 X-Received: by 10.80.171.15 with SMTP id s15mr11697958edc.6.1517501365303; Thu, 01 Feb 2018 08:09:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517501365; cv=none; d=google.com; s=arc-20160816; b=1DvUu7haulCvLxMQxAZhuA0fPVOIT0vHC2837OLXCZ0kuzPjBBzJJdKo0HKmoIWs70 k0TZ1wFBWYZWlaFcgAPvbZtiF7wkR7PRrHbcoKcc5eKpwQw9J5+o9/Ql2ZeUVUFCC5j9 XDtTeE7nXFt9Rjg3A6zV6X6Io2KLU79KBUgHzgReYF+c41HwsGqPbcr75gdP0lYTgeH1 kxbX9gkc6ex5Ulv50iKtLVLCOLPCpqUqKfPtQ3+CQa2pd+dWrFtJRGF9QroXExMP/ht7 5W4FUR/k24NXkeAOkPwlrWVx8dqvMkXannjCUFnM+mtA6JUDATYfWJw4rNZonK7KaE8L 5wkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date :arc-authentication-results; bh=3gL8WLqXREwj4Ri2NSfgxY/3thUaSxvJq5XsIFz1f9U=; b=ntdWj42XeWv5jk/zK/+xJiQGgLMpZT9RNASo1rAXo/cwx8XuOZxWlusFGQi3mtkXpV Wx0neKHmziVl1GNxmfNBY/35nlhxeA+41qJkpWIFHu3kxOnwuOl2UpzLV5QNu5sW4JY+ 1M83GHFeZSYfiSl+YJ/exb+pPJD/w35/wNrMtrN5ztRNuvMVL3NF9d8cDF7xKiOmaYIu OAskC0lK54JJW/NIksQmRnkoS2ne5EC/t3W+yhzNimiANf/vUKmxuN3LbhRqvJ4s7pp6 6IEbHKIqI1LdVTMpE73D61bwmsWXSa8rMDthc8tsgmA8U9H7brJKXTkxD2lCxtzvxGCC /YGw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 85.214.62.211 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) smtp.mailfrom=ibr@radix50.net Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id t4si27420edt.2.2018.02.01.08.09.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 08:09:25 -0800 (PST) Received-SPF: neutral (google.com: 85.214.62.211 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 85.214.62.211 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) smtp.mailfrom=ibr@radix50.net Received: from yssyq.radix50.net (p2E51B27A.dip0.t-ipconnect.de [46.81.178.122]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w11G9NgC012242 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 1 Feb 2018 17:09:24 +0100 Received: from yssyq.radix50.net (localhost [127.0.0.1]) by yssyq.radix50.net (8.14.4/8.14.4/Debian-8) with ESMTP id w11G9MjK017371 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 1 Feb 2018 17:09:22 +0100 Received: (from ibr@localhost) by yssyq.radix50.net (8.14.4/8.14.4/Submit) id w11G9M8U017370 for isar-users@googlegroups.com; Thu, 1 Feb 2018 17:09:22 +0100 Date: Thu, 1 Feb 2018 17:09:22 +0100 From: Baurzhan Ismagulov To: isar-users@googlegroups.com Subject: Re: [PATCH] images: wic: limit use of sudo and enable manual call again Message-ID: <20180201160922.GA4056@yssyq.radix50.net> Mail-Followup-To: isar-users@googlegroups.com References: <20180201124106.29397-1-henning.schild@siemens.com> <20180201134459.319ab24f@mmd1pvb1c.ad001.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180201134459.319ab24f@mmd1pvb1c.ad001.siemens.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-TUID: 1p4EB8TkcMjd On Thu, Feb 01, 2018 at 01:44:59PM +0100, Henning Schild wrote: > This patch addresses the two main issues found in the reviews. The big > "sudo" and the broken "call it manually". The latter one is not fully > solved because users will have to call "isar-wic" instead of "wic". > > I would even suggest to not fold this into the series and apply it on > top. It kind of shows some of the hacks required to wrap an unmodified > wic. The patch cleanly applies on top of the series i posted so far. Wow, that's an interesting approach, thanks for the effort. Splitting wic and isar-wic reduces user surprise, which would be a good thing. Do I understand correctly, you replace du and mkfs.* with your own versions and execute the respective command with superuser privileges? Let me read the code in more detail, but if yes, I'm not sure the complexity is worth the use case. I haven't finished reading the first series yet. Some background questions: 1. Are there any disadvantages of using wic, compared to the old-school ext4-img? 2. AFAICT, Yocto still maintains both wic and image-types.bbclass. Why don't they move to wic completely? 3. With wic-img.bbclass, how does one choose fs type? E.g., quickly generate the same image on ext4 and ext3. 4. How to add a new fs type to wic? I see that you add wic-img.bbclass, but no image uses it. Would it be useful to migrate all images to wic, remove ext4-img, and remove wic usage from the docs? If that solution would be "clean" and we have answers to the questions above, I could possibly live with all-in sudo, although I'd still prefer keeping the sudo hack for a while. With kind regards, Baurzhan.