From patchwork Mon Aug 24 02:59:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 12 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a05:7000:4605:0:0:0:0 with SMTP id b5csp2195665mae; Mon, 24 Aug 2020 03:59:31 -0700 (PDT) X-Received: by 2002:a1c:1bc2:: with SMTP id b185mr5562357wmb.168.1598266771534; Mon, 24 Aug 2020 03:59:31 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1598266771; cv=pass; d=google.com; s=arc-20160816; b=Y9kLQHBZ40JawFml7m9tgFR966x+qvoc/z1mI9tTsIuq2XOq4GyHjPnRUDpx85gJYa aRvViDjGCc7hScvTMvVOJVhAGJ5DK4oupUNmprfKZ2ssGBExo/MvouQlZxJof+LsU0ou blRPSIb2LXswYdINfbMY307WrrvSxeozmtr2B+GFteblDhAMwfB7BQrOAkXZlWw476VG xTg1KzyFaIWWwwg+uVFUWYw71gIt9fYBo84jYots3OzabAg48RSFi0eB0TebB3hCe1tH SgEcewI7+xI8okOynYdnsveira5DEJfOrC0MwTJlzhS2lh6hAHGXJFaBmH9uxUGZoTjb h3Vw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=evrsmO3eYXtyAUpBfp9bKLb6E16kXCFw4yqZi15uzWQ=; b=uZqK90XF302QHYY0sgEzi+f0Zh05buQniHR87egDmGih+6NR+mnhOc5+GfVGOOrpzy 9W7zlWhZEvIWCkUGmJXjP6GZX8nCK3gs8+suS3bAr08Z4U4AIBqJznTqaynSvYgYxA5+ Jh5oAQqV1c1OEgAOJml2BZ/WriSqBAGCDOvceRzJdPRnIfGn8gr6Ay9q9kbpms9/Qaon QejyFB4LPSoNgedXIz+GOhab/Z7skq3c4ERK/KfvTgfpHh8kj0XbdwYVIUhZCns55/ve 5jucaIhWxB3GA7Lq3zKIYCy4i1VE64gebrqRsaKJIDFCOXEceD2oxuMn4AdaAaZA1u5n +Qfg== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=Ahjhj0o2; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbev3r35akgqeifszrry@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBEV3R35AKGQEIFSZRRY@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id d4sor3941850wre.30.2020.08.24.03.59.31 (Google Transport Security); Mon, 24 Aug 2020 03:59:31 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcw7ho6fuybrbev3r35akgqeifszrry@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=Ahjhj0o2; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbev3r35akgqeifszrry@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBEV3R35AKGQEIFSZRRY@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1598266771; cv=pass; d=google.com; s=arc-20160816; b=AbFk0h5aXt96p+Y9TG5EvxP216sv6P7Y1sk5PmvJ3NvVzMJlbEU6o7Ynf6fD8K1exp ni1zF6KKBrRJuj2Y8YWQXFaGK6Hpq/tJo5kZNsYXkDvY4Vk9d+ddm0ZHA4YyNSKOyF48 HcrV1MnBQNHcxk2vYw4zxgXBsF3Q8WzJphEBva3tNJ4vffhOVVvkYsir0GBlFpcyagzX VV/k98XNL9hjRepdCShwtvo5kdofFj77H65tZOVS0RMXWeneKUSO/ffq1JeWThFuercY ydf3e2Oncpa/emkr5pQy71S/hJN7FnCd4+gXGocrHhpZSYKCFQ1Am96m8kQTHXK//iqW Eq7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=evrsmO3eYXtyAUpBfp9bKLb6E16kXCFw4yqZi15uzWQ=; b=JtdShOhXDJmMea/Wd7lKeXv2+NhUWPILHanOGOkW7ytbFYgEQWqlaV9j/JpOztVJEo bfVlDggPYFKPk8RYAOPTtmOCd3vx7P2eQiCz0k6QjU9A7VWMnalO2MwnyvBV+3ABa8SS IGM61S2BsYEXoEnTAlFi0e0EUDBV7P6B1bQMIocUKvUjAqsLHeFYFDSBq8HJMixkaHqk dMRZntHVpmDtM/wp7isDK53KOvt8yu2HoNXl55RNFKZ10XSEOg4Txd06VGr+vCvvjj7x zENFpjJQDgvsNoTjOIh/mo1qnO2GHAKY8xcC4ermOw8WFgHUpi3w63NIgKrAMsBh+VwL XjFQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=evrsmO3eYXtyAUpBfp9bKLb6E16kXCFw4yqZi15uzWQ=; b=Ahjhj0o2a2LN25dD6Dry0DEa5b9KnK9mOnI6txaH6Zu/XDFDtklj2B7YsCTEAFqO8m t1306Py8n2WFHNAauIJzVgAVp8QRkmOJLPbjxKlI/wA/fgUgQs/jQyAiZ4PXjSkt1X/e +ptSEZaQjl1XdAqliTi0bEv4VRYhZiyMwvQXSvIX+KwxOw7ZrvMlBeZi3EQszD4xgD6D cjhCqGXH0Yu6/w6UO9SOhHZAY/MA5EVJ1xz7ycV3MdAnHFdvTqJmEJd+I0esheVZiDAI 5a6eo2i47Ck744r+IHZ1XV1xr1AKW7nfoQT4YQbB5z63AfmYudAi7ye7tzQfWhA0QUJw a97w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:subject :date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=evrsmO3eYXtyAUpBfp9bKLb6E16kXCFw4yqZi15uzWQ=; b=G8nGMIcrbgQIxpqDKuFgdQLVBlswIZV2KJ4wzZShvd1xALHXZffMtNOwb43KB2NmZy LakXiSdtUjMpwWvS30Ie22lRT8SOAKoy8GUmUUl6tbeKXJhUn6hhj5YIPeED1BRSoe8J PhPJylVs0S/IBR/SnVMAPBLABT6Epe4Q3BDgQBOdM3gLDThNLoQs8Y9RXQyN7EQd01MS EULva2IXM86pDhRMfJ6yPVT1BMKmubBNxiaDE2KUe/P7/V5N56Hquiv968lKJvzFtxOJ B2q7m5H43ne4PRpp47txkTV8oUBSbtV+C6JS13/pAMzHTFfrOxahafGjzr+B5VUXQ3u5 8mZA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM532kmGX57ftNL0eYDS7m77Cd1ehUR0yfrL5cm00Vkd9RnqCP+ZfF YUQsuTD4ymiVory/0ro9VNs= X-Google-Smtp-Source: ABdhPJxdXmYVUiJaDz8gFX7PCNJiefwV9jqW/RNLzmbjFVlkOWhaOMOWZcni65s/8deoKZmxf8LmgA== X-Received: by 2002:a05:6000:152:: with SMTP id r18mr5841795wrx.204.1598266770868; Mon, 24 Aug 2020 03:59:30 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:2ca3:: with SMTP id h3ls4201102wmc.1.canary-gmail; Mon, 24 Aug 2020 03:59:30 -0700 (PDT) X-Received: by 2002:a1c:dc45:: with SMTP id t66mr5377622wmg.17.1598266770282; Mon, 24 Aug 2020 03:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598266770; cv=none; d=google.com; s=arc-20160816; b=IZ1qivvRthWJvR99Xgefj6pK5O/iJG0mXGt4pORmvMrsfxUCdk+BssrJK8x7GYVYVl 1Wpx+1uPsJAGPkpN/obsJOhIbMVvjMmK384+yinxuI1NxAUTTGepm+Ny+hZ0cX81CWuR u+d4lU8Oi9zCo427Fh2FpbgFNFFK8EOu4uGu+BzzBgfm9CIYJ7tO91MkvRSS9nK4gnNP KlucqUoShzFskzkQzeHzIY5Z+j1gvyRRGfMDB35AgH3rcNjoDdvFiWDnUfJNJZcgu9bj 8wXgLuoaLm6mSL+9HrJjfpiALL9056A9+NAYazT58g0OFjE+CsV2z7J+u5HL3uGK4NxF pYMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:ironport-sdr; bh=3hESc+kJKtwqKrBuuST3QyiQQb+6pEbodWyFniokofA=; b=G9a5sSfrRY/Bl3T33hpdX8khXO9heXML9vgF70A7C98tbAkGBexYFv0F7GNqNl4EPO q1hIUvYJYK/6K1P1cpC/DYc2cO51EMsrgLoeayZL98HqkyDL8pTQcVQ8C/cFJTgoySi8 5OskPZgTYD+iCKz9OW3/9j5AXx0ytDuXoDJ+EFa1S7cuUDJlGvzLHE+EBnMlSlO+MJgA M1r0pWiG0Vre8yWDWNy4BUemj2oZNknKIrQ/S3YC0GyQgGepmrheb+oA0Pb52SFFwjma 8n7VkvwqlzK4lUrOLQYUoQNSBXsaVnWOxBaTybPs3bM36Yo4I9psaHMLsfh4aOXWa1MO M76w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id i11si331160wra.3.2020.08.24.03.59.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2020 03:59:30 -0700 (PDT) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: tTdPFp6Lgy7WMELVL0LwhMjauhf85qs+viCChWkNQz3iV8kQYnGVfttgkVKJHtz79DQdz0tkdS MdD6nuJnUmfbdj0bosrFTLYnSAWXTMyASVskAeOr/iDDLl6Lk2kkTuAPYL5JCs6BkpkjVLS8XB nKxjFifNRIi868iD9llLuMZme2TjoMiMSsrNOupzKYOwdB1fSudGwRe3d2+4D5V4XpL5jpfAje shj4VE85HoAR6jCPyfFhrxAXwfAtzQIXT/fGEQdpALx8e5jiK15fxIttm0/ckdaGjRMOi3stcC 25c= X-IronPort-AV: E=Sophos;i="5.76,348,1592899200"; d="scan'208";a="52309707" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 24 Aug 2020 02:59:28 -0800 IronPort-SDR: yQ2RtRZmQg4UncDX3/gnC17Y1tFD67v67zEaui3Rn6L7RVEglD6O9DWnfYZDC24CFQ90Z3qaQd Gn7B8dfywwCVFBtKHAN2om/c/e6IHiJ6K01xckfLOEfTfPMDJABMB+gFm0MqzzBgfU25J2MJ8f RT1kjzfzTvDGCAwWkLMwL5uec8NLj78FmbvGAX1FirvwkXz9f5PZiW0Tq/IABjZq406aPGXTul Y3xG/wWMBefoSJc9Fxurje0BYjjf6KEs5AjL6xjG5YTTC0Flx+r9IY7Z9aB/wu9tLyNlVTvSsF Fr8= From: Vijai Kumar K To: , Subject: [RFC PATCH 05/10] lib/oe/path: try hardlinking instead of guessing when it might fail Date: Mon, 24 Aug 2020 16:29:00 +0530 Message-ID: <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824092750.19642-5-Vijaikumar_Kanagarajan@mentor.com> References: <20200824092750.19642-5-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1675904178420789218?= X-GMAIL-MSGID: =?utf-8?q?1675904178420789218?= From: Henning Schild The comparison of the stat st_dev is not enough to judge whether hardlinking will work. One example would be where you try and hardlink across two bind-mounts of a directory. The st_dev will be the same and the operation will still fail. Instead of implementing a check to try and figure out hardlink support just try hardlinking and fall back to a copy when running into an exception. Signed-off-by: Henning Schild Signed-off-by: Richard Purdie [Vijai: Imported from OE core f5571bda8327f927feb23b167ab4594b7d0c95bc] Signed-off-by: Vijai Kumar K --- meta/lib/oe/path.py | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index c6bb604..3506e2c 100644 --- a/meta/lib/oe/path.py +++ b/meta/lib/oe/path.py @@ -99,7 +99,22 @@ def copyhardlinktree(src, dst): if os.path.isdir(src) and not len(os.listdir(src)): return - if (os.stat(src).st_dev == os.stat(dst).st_dev): + canhard = False + testfile = None + for root, dirs, files in os.walk(src): + if len(files): + testfile = os.path.join(root, files[0]) + break + + if testfile is not None: + try: + os.link(testfile, os.path.join(dst, 'testfile')) + os.unlink(os.path.join(dst, 'testfile')) + canhard = True + except Exception as e: + bb.debug(2, "Hardlink test failed with " + str(e)) + + if (canhard): # Need to copy directories only with tar first since cp will error if two # writers try and create a directory at the same time cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -S -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst) @@ -121,12 +136,9 @@ def copyhardlinktree(src, dst): def copyhardlink(src, dst): """Make a hard link when possible, otherwise copy.""" - # We need to stat the destination directory as the destination file probably - # doesn't exist yet. - dstdir = os.path.dirname(dst) - if os.stat(src).st_dev == os.stat(dstdir).st_dev: + try: os.link(src, dst) - else: + except OSError: shutil.copy(src, dst) def remove(path, recurse=True): From patchwork Mon Aug 24 02:59:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 13 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a05:7000:4605:0:0:0:0 with SMTP id b5csp2195678mae; Mon, 24 Aug 2020 03:59:33 -0700 (PDT) X-Received: by 2002:aa7:c246:: with SMTP id y6mr4943703edo.78.1598266773473; Mon, 24 Aug 2020 03:59:33 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1598266773; cv=pass; d=google.com; s=arc-20160816; b=IRZ+DFMJUS03kW1qq6leH99sMgJuQ6lTkNffNVW0/LupnhrHzZls1MI9tAAJP2zCvA y4OfPMckQ9J3sd/9rVHXjJV2zCYC81vo1J8Gc5X8xpPsMu9IAROE53w093Ycbinl8yIh SeR/Vu1GD66paCSg7JYlPbxpnlj5YxqQhbODg10tdRTxFta+907Nx3gzGOuXZTOWn+S2 aPZFyXoXq/mpGwYn+BPnvJMH7JVbRgI8zKhvq65uLaDhSmBnK2dfcKHK0DBZpQhS6QzQ osCCccy93e5Aas2o4SrL67pV+S2ZPCKQDy/X6x8u+u/VRdEKLC21G2YiqRXCTE1Lldsk 4qgg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=AvYdSJMeqBvw8dn+GJx4Amnk0Z9IchCgMAPtzuOvLBY=; b=qQsTeE+oKLsbGsolfeTlhk2D7k2CHpa9ceD6YrM49i/8fEpZujXzuEqGzFwe45X/W8 6YBIqrhcCO69L/CWOW6tYrryw20L0n9/vbfvtpdlq1ucRVjGX5lIh1SFUKOFGXoHWVVX dwOIN7h7DBF1ms4cdEQMB3/0KZi5WdasZi/Ek1aDkBFe/oxOLWaA/ZQ0+ClQaQ9fC9JS LrLY4hu6XMvjWwkhUpopKBF4GQ1XwQ76gPb3+4kI9ywSHfOmAjs5nrqfuCyPK2MgA0CI ofEv/jaABhGBAlna/fkm0pBaQQhl0b0bzf6+J82qTIsE88Tcoa0CtklZ/V/FETESJtx5 XBTg== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=lZDeB++x; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbff3r35akgqek76qogq@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBFF3R35AKGQEK76QOGQ@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id g12sor4672313ejd.50.2020.08.24.03.59.33 (Google Transport Security); Mon, 24 Aug 2020 03:59:33 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcw7ho6fuybrbff3r35akgqek76qogq@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=lZDeB++x; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbff3r35akgqek76qogq@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBFF3R35AKGQEK76QOGQ@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1598266773; cv=pass; d=google.com; s=arc-20160816; b=bmmJ2AC3Jzdu3J8MqAAVctG2ffhuHrC5sO4YxKBcpBlcLyAax7++WeXpk6HiqsKyD9 enfoF0pPn8hVylem5QT8kWL9ZsMXG0gYkTQIObf26/nMuMZ2+5jQFr+kj5Qal+k2iE8R 3nqv4FiHrsokSY71rVsHRChGpcQ3IauKTTUqN5wg5p2aMWJu9Kf5Xu0W/tPIL3wbFlpG n4j5z7zVBIYOrTcVrN6Q5KqqIlEArrO8fT1tHh1dmXp5/h5Vga+N0ZvVtu2ZpVWjoMXz +49AL+lGxkkTHfAmE57179IrPQiOXFm8gzz/ddNGAeAYDUpg/Cgy3NUxLsSikITAkRSk Eo5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=AvYdSJMeqBvw8dn+GJx4Amnk0Z9IchCgMAPtzuOvLBY=; b=0OGaajq0l/By5iPb/GNBtaN2J9JCaca/j5MPDAIqaUXIjNvUWWx9r5gVRoeWiszXmD MxFrq3SoZMPnz99NM/+aKJgcQ2YrsQirhMy36krbrBewLHuRQ4OPS9y8V0QK88Cc4tvR Bxa2637j7uTQ353YHeKfoCzRZr0KcJgjv2dfcpGfjEKP4hv3y30xbHMZ7p3+oWWsUS+C ihJjex3sDIj1gA2gGZm0fSbgwuu7lOo48l98caBX34bCvcZASQzDxYB16RG3OPJTbFEn +xI/X43PwJU3P7Yc2V6ibd7rl2Y75e3o5VFYL+6MTj5Z+s+ysF6M8zOB0waGLGyNi5Zi PSpQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=AvYdSJMeqBvw8dn+GJx4Amnk0Z9IchCgMAPtzuOvLBY=; b=lZDeB++xgmTtsLXA8Egkms93HSwulax6WnmsyGSvUqNzEqjYpwi15CySRlkxOahPJ3 yRsGbV2zaILihk193Yy/w0IP4AcT1HdWSyvQy/0OhoO2KbuZHJOUH84RCRyfWJgoOxp7 EXbhNOZMK01QoN8mPFHGq7mlSysGhJ9kl+jTSXHNfUNIMeVBtH3eT442rye7+UJ+rlBx ATP07DY2Fyc/aGZc266qwcJI4CiPNFnKlit5HCrngmLVB32wcMtlk5mHzdFz1KYcVoS4 +HV2PV3vADaZ+hZYftBZW2yQ3O0RYpzITkHOm51SGBJ+eC2Dhwwz4Umx5B0fiskb69zI tj2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:subject :date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=AvYdSJMeqBvw8dn+GJx4Amnk0Z9IchCgMAPtzuOvLBY=; b=XNg35nW8IQcAUCELR4IPgJEKRMahD+Tse1MHoQeUBGhFHuNmMSOeQmcLcpGo3jGXLp 0Ugbke7ySlzQc3dVNkfwh8Gm/bogJr40gw4C4quAFVBi/aHMn8ovEWFCvcrrQPBj+4oh KLIK4fFwAd+j+JGPlPFihn6waMSZbPYYmt09CfedZ6AF1OmMGEL0dGHb2LgiX2Ml1gs9 SyIdQ/jLHBVCkkGE+JEyf16alLDioDT3GvC70mqcUuk+gyZ2SFv3Okr/Kf3NXhVyRjy0 iQg/AzZxjyNXX5rLNYjx6eBUv7a+fln0HvWaxmz4Tf5jXkQdAfvb0aYDH4/wwY3KX9J0 rMaA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM532tIPqUPPo93GIcZJ4bokX9bOiN1Jxnu8BxCOgEP7MXzG7FJMJM cFq6DP+5+GAnOWYffIJ4p6Q= X-Google-Smtp-Source: ABdhPJxymUJb/kug1OEAd8onwio0rnI9guwJ7QGiMuWm7ABsxxVic8iwlAqz/WX4Y+YiJZbQaOD5Wg== X-Received: by 2002:a17:906:19db:: with SMTP id h27mr2750101ejd.154.1598266773090; Mon, 24 Aug 2020 03:59:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:b01a:: with SMTP id v26ls4388434ejy.8.gmail; Mon, 24 Aug 2020 03:59:32 -0700 (PDT) X-Received: by 2002:adf:c64d:: with SMTP id u13mr5525183wrg.114.1598266772447; Mon, 24 Aug 2020 03:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598266772; cv=none; d=google.com; s=arc-20160816; b=Ts/VQomeTbO6KOOy72bytcuVfB4koRq+HmXjTe+V9BWNMgNAxO97OlD7yi7c/ihm6x 03o6nLSlYTyCHj2HcNhqICo72AZgLQHmCYpNZRDW0yfbYC3LTDU7q6tLyfsY8ABpqGhi u/GTiiuVgzkb2uyJfHyALlNQxEBSEZ7HAzzbDuuHXd9GjMcD8JerIuOFZUZ/YMZQD6ug 2+fH3aRkz2xYW086k6pJF5AVXmEsNoGsAbTBEHYgA6SS//LMYSyDfa8ap5FlvMZBeESQ alJTIDHqDYVdZFtrem7KiRm8pVs9Lg87+mPDFRZOnZsjCWNhmFyBNlYD5XSUg2G5ZlJN qEjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:ironport-sdr; bh=U1wItO/Rwqipy5D9WgxJeXhDu7GNPLbUyaWObE6DJpM=; b=lusiCR1afZm5E1OySTnbDfbVA12dq3YI22jJnwtUozlBcDYa8abUyxI1dDhm3fFXoF i8V5n5JJE4NCfNk3JdDy6omj/sch64cuawjVYE+3evYZSdfcyqZEvALa6SJHZvwf3xAS XRKh6yKELcDE/ZxWbVN5fP9+5/15ljaMHsxYxvKWrYkyZIy/pw0ZjRdMLqukyQa8NPHd UIpqdTZbhVbiKzLsNef5YSyso5VafhET1GTzu/AcevuYY/rXnhIXw6JC41tKInb9XYvc Zr65PmPxUWXdNzAdpZ6rK9tiXqlpud0IwxY5R6ahxnYdTI0s8b58j9g4dCS72Ai7ie80 GpQQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id i11si331160wra.3.2020.08.24.03.59.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2020 03:59:32 -0700 (PDT) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: OKFmO5JR4o8SdJ7VTgC+S4TaRZCXwUsxZSvkfHZKBXWl/ve+SczK6TYbHRCvzQB27MKsW6SSaA zpFkpsFsxYze1HZ4s75ZYCz9tTzFV480PYReBS4LoZjfwyYXZZafEsxb7aM9t0TC0fKs7rFl/r JQBJtYLD6x9eMp7guu5s3XI1iYag4qA6/xLIZkWSfqmsAiaY7lSx9xkV8KP8U0yLE+JYt3fSWm iizIe5yEXs7b9rvggz+hYkhBVQA+W46nDnG/r8Q7JO3IJGQ1QjgkbdnOnnKkEcd1jFJ2jdqgxf HiI= X-IronPort-AV: E=Sophos;i="5.76,348,1592899200"; d="scan'208";a="52309711" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 24 Aug 2020 02:59:31 -0800 IronPort-SDR: EnWzviNc82sWkv3RBD9CNJrgAJlVZ6aduEOsnkl3aJpvYs2gfhugfNh6tbec2ItbxPvaG9Gr4O TNQyCyi82srD9dEybBOdhm6Ks9evGs6bQPl5I5L9PXMbJwhHaPPmz9KEt8RzqamqLJxPmXebVQ ZLUV+9aweQPCi57lDn6L4XBDyJw9NlgnJeOXymmxmYxzMwIOjH9i7t2+Qqi0DHO3ZoW5qllgNX S1Q5I1lQqar4OLWVYiQIQDIdO0k1HavUdotSo0y7e6CVzPRc66b1dAHNYnrCegyvV0wsZVAyLx gjY= From: Vijai Kumar K To: , Subject: [RFC PATCH 06/10] wic_fakeroot: Handle standalone pseudo invocations Date: Mon, 24 Aug 2020 16:29:01 +0530 Message-ID: <20200824105905.21110-2-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> References: <20200824092750.19642-5-Vijaikumar_Kanagarajan@mentor.com> <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1675904180265565355?= X-GMAIL-MSGID: =?utf-8?q?1675904180265565355?= When using --exclude-path option wic copies the rootfs to a new location and invokes pseudo as a standalone command to rebuild the database in the new rootfs. This is not applicable when using wic_fakeroot. Return 0 for such standalone invocations in wic_fakeroot. It also looks for files.db inside the pseudo directory and throws an exception if it is not found. Handle that too. Signed-off-by: Vijai Kumar K --- meta/classes/wic-img.bbclass | 1 + scripts/wic_fakeroot | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/meta/classes/wic-img.bbclass b/meta/classes/wic-img.bbclass index a2c9627..b1a7259 100644 --- a/meta/classes/wic-img.bbclass +++ b/meta/classes/wic-img.bbclass @@ -144,6 +144,7 @@ EOSUDO export BUILDDIR=${BUILDDIR} export MTOOLS_SKIP_CHECK=1 mkdir -p ${IMAGE_ROOTFS}/../pseudo + touch ${IMAGE_ROOTFS}/../pseudo/files.db # create the temp dir in the buildchroot to ensure uniqueness WICTMP=$(cd ${BUILDCHROOT_DIR}; mktemp -d -p tmp) diff --git a/scripts/wic_fakeroot b/scripts/wic_fakeroot index 88a03fa..16b011e 100755 --- a/scripts/wic_fakeroot +++ b/scripts/wic_fakeroot @@ -25,6 +25,11 @@ cmd = args[0] # rootfs/root ... assert os.geteuid() == 0, "wic_fakeroot must be run as root!" +# Check if we are calling the pseudo command itself. Return 1 +# for standalone pseudo operations. +if cmd.startswith('-'): + sys.exit(0) + # e2fsck <= 1.43.5 returns 1 on non-errors (stretch and before affected) # treat 1 as safe ... the filesystem was successfully repaired and is OK if cmd.startswith('fsck.'): From patchwork Mon Aug 24 02:59:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 14 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a05:7000:4605:0:0:0:0 with SMTP id b5csp2195708mae; Mon, 24 Aug 2020 03:59:36 -0700 (PDT) X-Received: by 2002:a17:906:6406:: with SMTP id d6mr4848960ejm.30.1598266776434; Mon, 24 Aug 2020 03:59:36 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1598266776; cv=pass; d=google.com; s=arc-20160816; b=F3BnCXJaYbBuLcbwqmV7TWO2tOAOxAgOYCK0Dx/QvGLb9bSqr1MklbbIrHbp21+M5+ zW3SeI9ZjoJcItfXsbU0jI0ZoIgr8n76H3Z5Fp3EbydRLWgHupc5wsFYm4sLPgFXQ7Tw yHnviGg+KGt9NRzNNWo5W2fqYjI+y4Kmxe591EDu9g2UBoKce1tuYex7kLfuCJGEN3U4 aEg2Dod6grAOHMop0Xgap9/JV78JYEEpMrPrswN5OQcD/KUtsW87FwXGPB8mLQLy3hGa btXujnK7gGsvvBINjHkOmNSHweFyw8Sv/+nZSDuqnxQyvUq+uzAO8fRyRfFOrj7WORLE 4wdw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=TGUyGHjfyDBQStjs8cYMh1DlxnZi8b2u3Qo1Ya1n9+c=; b=umdrIFlp9WZ70V/0+P6wgyZf9a4GJRCQA73nX2IkQEfF1eK1xEfjafG7egAurBIHD/ 4zHm4dF7frq8zxzh9CIwEOczFBsA5rWvd5V5aMCsQxI6tAe3nlot3KtvpZUF/wIN7mgh SeV6cQH6CdG1IWg3uMDI36/SkrnYI4GKRg7xNF1WWAWpxR6Oinffpwo2ng9wrms0x1G5 VVMSd1cRBC5amZzQ1w+MRgR4Uf2h5gOcNXm+0aLalJqyUziJ7P//mQv1jGargC1q1bxe O4VhYiQe9lT8O/Sj5m5LDix6dstMluUWOK34OKqQpctwwaVnbwS3vv97EYM4Fn6kshzJ 4CgA== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=OkDv3p6r; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbf53r35akgqeo76t2aa@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBF53R35AKGQEO76T2AA@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id bx11sor8321239edb.15.2020.08.24.03.59.36 (Google Transport Security); Mon, 24 Aug 2020 03:59:36 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcw7ho6fuybrbf53r35akgqeo76t2aa@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=OkDv3p6r; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbf53r35akgqeo76t2aa@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBF53R35AKGQEO76T2AA@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1598266776; cv=pass; d=google.com; s=arc-20160816; b=f5fbJLUgt0p/dnod3kVfDg1FPFPD/Dz+vg4Q+uOpafdR9MtDIgIaDCl3x519INNRcE R5R2r/6JDOXf6PVP3sLYG1hmJpE5kAYeRafJnF2884UF/nqP7Z61QKo5c+LKC+6ANdon RqJNk3qLmp0zuPxu1CXcUZkhMcj4p8nH2ZwBFBnGMMrI4ERsWrDFvaQPojwTMkLGKupC bkNHCSVUomsd905riIqpnm57zf5+qQoqYqlUL8i7EwlCI59+XVWdYBSymyDwZ1VwUDHs s7aFSPs8vcLvKjh5K+zOF5pOX2OVKOIWl27OzIljQEwQro4VOCIyK+nO7/Nio5DaIatB vNYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=TGUyGHjfyDBQStjs8cYMh1DlxnZi8b2u3Qo1Ya1n9+c=; b=ZFGOebzFTx8PTRB8yCSue0WAYfH1wTxofK9iHwnoNAY3ZhAOij6WUFaxkZD85f7oNl C6eJZDksZ2kemlQSWK/qwgLMqFtbSUK/i4M3d1FZmNumPruINUBNKTGJA0qv0yT3T6Cd +Iois8MCzkoKMj2Vszem0LOwQw5iMXasxeMbeRQkenUwvQ6BwPK+rS0425XDjybTAWCv l3MImI4jNZ+qe9RCb2TIcNQ3J0c04725su5bBUvTcZlqKFEiP6WkmhFXTEuXaLQaLZdv oJ9dnki+fsqhcT6hZaB79Or5CxgSlDoEpHhNBMmSX0LDsREo5b9dzHSdZz/YcPIsyTGp FXCw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=TGUyGHjfyDBQStjs8cYMh1DlxnZi8b2u3Qo1Ya1n9+c=; b=OkDv3p6rqKZiA+Pli9SJVt0JgNrAsbWhgg0STlCRShRNE908eFT8ktA8giUUOWKhKU jOK6LXKqYrl2im5Hp4fcak9ac1sG1K3rxs56mjuCOgaA1FEv/5CFxqu/T2BiMWevzewH Cylhiy14CrAVCOsfX3AN+crDbEC3euZ0RxqmWX7ttCuSAYR0PUbqJUZdxXOlR0vucLgs J0zp0XbCp8SIY5CHaoqPeWeML49baWuLrA2QqatsJJ+Yhzr4rorxBeci7yywdQhEaC6q UwdnOnSrLlp9tJH1RX/2mJQXCm7OD24YASvv/cZ93NakPXGC1qzFCK24WOhGc+yPZEhD Qt+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:subject :date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=TGUyGHjfyDBQStjs8cYMh1DlxnZi8b2u3Qo1Ya1n9+c=; b=gGkWYB1T40ZebEQhXRT2xQoiSvzc8k5vqTnXNzcjwhvxgJYSEaGjVnWYHdHZASD0FV a0WLtbuURNCINzSVj1KATDND6BVPVsrSND6ZrGPMkZ/KLqQz/aQR+HgTTbcimcjap89b TG6hkRQIWMuGq1aAnolArOws8l4/LPcj8K70ft71cRY/KolR7n+f8FsOWjc+Hs0AND7u sm81vDnSUKJrauSLmF8m0m5lZzyBgBpW1kZskmuUuhQKZGr2vf4OtH1elLaFG6TLOXlB uStv7ghLEDxUbOHtwL1z+1Nzg2A/rbuMSWqqVYTU7YMta84bfRf8gTw2byBZKKLZ8ZA/ a1MA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM533c0o0bIKO+9RWc8UurWmsogm58LEcpMaLS3DqXw9vYZj8Zs5N4 Vae3G3bVBN16JoZumFyLIpg= X-Google-Smtp-Source: ABdhPJwljRrA2f2iWr5zaIH/+Q9awPk9pP/Ni2yTtYVWdAdHTWIBhnWUsO3nQiz6j+w7UNSPV000UQ== X-Received: by 2002:aa7:d54d:: with SMTP id u13mr4903131edr.356.1598266776006; Mon, 24 Aug 2020 03:59:36 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:960d:: with SMTP id s13ls1622307ejx.1.gmail; Mon, 24 Aug 2020 03:59:35 -0700 (PDT) X-Received: by 2002:adf:b784:: with SMTP id s4mr5665417wre.116.1598266775438; Mon, 24 Aug 2020 03:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598266775; cv=none; d=google.com; s=arc-20160816; b=KUPhc1Eo7d8YTYtXR2ckgjEZbUBPWzi4kQP/QqMfzjpddxOPckjo9CbehCqv44ACZk m3kx1zHWl4OEJ9SKfzOIckB5DBqz10SjonYWyZHahAESUGjI2EfDigx8Zg52imwfgzOc 2C5zXBkctIlvq1sUyT0/DQ771ZnGN04r//rBh/OKZXlIwWhlydmVQW/inhe/cux9wUHk zVstM50TWU48qT2KQf+5SIjqtLRVGgE/VX3R1r/c0r61Nm60VJNPvINVHj6M9zxedPpz bngf8+qkY8X3CBDzdYuhPnMQ/0F68OnEPVjTrjznQttXPdb4AFRD2kfwUq9zoHW/YljB +mkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:ironport-sdr; bh=8gmAKxf2mI4cQ7txMibcVVL2f3cb56imEkz0/f3Wavw=; b=aAlWA/HMWF5c5B7vNIfIx2TIjV1lve+MSrCMTQgrdxNEJcAyO4UfglmuVvOzJK5gBL hW6UQa1UjR2bziq/UemQGeKPKMvbij2qUoxaw5zYKbgVZDiMOPskrApH8v2X7wyIIVhO vZNSp00PgupIrZY2N1XVxSPHvn6A1oGZ86TpvW3Ql+N58WRVE7r/QCnYHZnGXxPLQbEW Dz+P3rjt2N3vCJ+Ihn3MF+tYJk3Mo0vAPKzWpK7GNP4uJJJTPh7YmmQIC7zHdbNGFNwk MshgjQsBxYUG0TM9ecxRx2frmRNc8aiDZPp/QnFmfF3FyPhdJ60AuUw/eAkiSGhk6fhc XoxA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id i11si331160wra.3.2020.08.24.03.59.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2020 03:59:35 -0700 (PDT) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: AcdjwetqENsN1Ux1yP9xUbNCOwakBKACX5K5X6qbx7T2WNrEGhFKqFJUv/CVYGDSjnFwZT0kDm YgAwLnBvu6UHUD4D7PjfNBOpb+x6Rb1CLmwXFauKElb+soR9u2FFEHM61LrJdpkVoDkfvzWGZ2 ODtXFfWsw2W8iiUaou6iGUaFVa8j5qxm3mbyN7S2ZLii0xgPjgqQMRWMFlFUJQsJNEY5rumBlk eWFhAp+DjBJnpFUdgVBH/W/NuYRVn/MV6ZUYJwMlBd987bZpzqPUBlth1I90TMkoeOBmoeAQw4 bBE= X-IronPort-AV: E=Sophos;i="5.76,348,1592899200"; d="scan'208";a="52309713" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 24 Aug 2020 02:59:34 -0800 IronPort-SDR: C9/l2HR8MCitR7cFyb5VWosfjnlPdneP0SovFBXlJhygmv5achP24GAd7X6rCY7AnRRi7TXdh2 ZkAaJTsOHy4bUo9R+ENP5uFDrwRRegfZek2v7e1mwCXlchZwJfvteTZEuBJ+dSeS2nvBqxjcEW /IdLarkqF8MSpv6zkjknVli3fZPWIHSPVMp+AfAOTYKb1SK0kpH78Q6/vkX3rbEMipPgEj9ctU XBS3bkvAIq5Y2XdXGy8fxHGqMBrF86bHTrPUOnDYj4+rj+ppkIVRWyqa6asHs+xSxgci5gnLNU z5A= From: Vijai Kumar K To: , Subject: [RFC PATCH 07/10] meta-isar/conf: Add provision to debug WIC Date: Mon, 24 Aug 2020 16:29:02 +0530 Message-ID: <20200824105905.21110-3-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> References: <20200824092750.19642-5-Vijaikumar_Kanagarajan@mentor.com> <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1675904183498010410?= X-GMAIL-MSGID: =?utf-8?q?1675904183498010410?= Add provision in local conf to enable wic debug flag. It is helpful in case things doesnot work as expected. Signed-off-by: Vijai Kumar K --- meta-isar/conf/local.conf.sample | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-isar/conf/local.conf.sample b/meta-isar/conf/local.conf.sample index 274cdae..25a63f1 100644 --- a/meta-isar/conf/local.conf.sample +++ b/meta-isar/conf/local.conf.sample @@ -199,3 +199,6 @@ USER_isar[gid] = "isar" USER_isar[home] = "/var/lib/isar" USER_isar[comment] = "My isar user" USER_isar[flags] = "system create-home" + +# Uncomment the below line to debug WIC. +# WIC_CREATE_EXTRA_ARGS += "-D" From patchwork Mon Aug 24 02:59:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 15 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a05:7000:4605:0:0:0:0 with SMTP id b5csp2195745mae; Mon, 24 Aug 2020 03:59:39 -0700 (PDT) X-Received: by 2002:a7b:c84f:: with SMTP id c15mr5473499wml.133.1598266779226; Mon, 24 Aug 2020 03:59:39 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1598266779; cv=pass; d=google.com; s=arc-20160816; b=fB9oPdK/hvV9mtlEBaL5koHMDaUfIlXDiJK0dkSkdVabyUiaEqGrtBaOfNwOSH1Iz2 M3vekWKRPgmdotYFfweELxZZsfBAKB0qG2RbsNPKsMBcyeKjUHOiLjd/syKdgePkMQRU VfFMAw2e9y0PeErhw/CU+12CgjZSDoQ4w5WYth2PsaArtaKkchcXmRkn24TnzcFtFxuQ cXpp6E+2Rdxb/97HKkB/GOSpWoRq2HQKRYydBwiZmYlAoHMRL9BwXgsl80Ar9Q8RVswd o2jxX3WDZcyTjybTSV24w6v2L/kkDzfdrZlJtGQ/6g3GNgGQKpUWgv2PjWVuIczvmFYv Txag== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=4UQtxoaT0ISdrycAXTZCNqnnZG2uCBp0g5Bpce0WuGY=; b=p/6ODm4qFJHPtyESBaXR01SjVUh5UDhfffB1FWa1aaex1phrEqV8Rtjkb9Koh0o0BW A7N+LTFQD4XAWvjqe6b9LMHr+9YiYS+k1kghocPNRfqS9+vg+1tIEqJpELuiy8yRJy0g C2zrpjUd1H4TEIJ68n88EwZwuOAcvpdH1/UfT7S3VYUGg8zv3orrHNevwWxVcdOpQfeU +pcRQWCbdysQHUcmS9+deMidcW03wv4bEuoZA5QH+ZgjB4jg1VWDy/8fBM3g8KlkTYJz fz/C0OqXohrjZooVbzSNM2mIpR+OgeDg1MM37Ly4fL5Vvl78qvR3vPe3Z4K6xeOiZlXh UYgg== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=H4WKa8gF; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbgv3r35akgqetve5wka@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBGV3R35AKGQETVE5WKA@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id v12sor4495093wro.46.2020.08.24.03.59.39 (Google Transport Security); Mon, 24 Aug 2020 03:59:39 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcw7ho6fuybrbgv3r35akgqetve5wka@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=H4WKa8gF; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbgv3r35akgqetve5wka@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBGV3R35AKGQETVE5WKA@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1598266779; cv=pass; d=google.com; s=arc-20160816; b=TcY/GOEhWyotBlSNangSwsIF8Pfew99d57M5EYNBNhMNp4QoaFtj+z+0pPVcGyX7Qe Kim2fOEKJYUAO7590Xwho86FgXro/hPH4RRi1pSO93spWePb9gEh/9KOKX7EXCe5qZVX gEtJUrKdhf0GjxBveOHsiWbWJgL+zVVoIAIPwrPqD6mm/K5c4q92ppM2VAXwQ9lELtVn D30d9rnHew2dSkYqWO8bnAkMH4dsJaNafGng3RLeCD8VEK5EuUIpy1gICxUGSgw3WA+u iQr/5hTbEV1sOXFcl496PKmscHUjpVJrkPkHZQOj0M+5ZxnNJR4z526P7dMKvoQXyWWj rwRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=4UQtxoaT0ISdrycAXTZCNqnnZG2uCBp0g5Bpce0WuGY=; b=Wz0n8XesBOj2bijIGoPsp7ElyBbN68f9Vby4hJZlWAOigjDmEiYE3oJJAP/eo2nbqZ gGlR/oqF3yvh0UELZUUvKI+JQaDI4PGYIgwISFrqakJHU6tjagpdIspOj+ZE/8WEN8S5 L66M86XvSA6h054LR86avLq7EV9LdU7qSiO3pxmsz88wRAIS5PhmQDXqmjqqV8xUcXCx 7VHvc2H5jhV4rTAz0Ytlcgnw9NRiwq2J2MdIUVoP9W+Z1BTqeAKwmD+NUY2QS4OE7LFW zwNuptnwPc5byJDC2+kMopiKWn0eJ8HEMjyPoWKiGxOT934+if/SjB8saaISJ+NZtU4q yfjg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=4UQtxoaT0ISdrycAXTZCNqnnZG2uCBp0g5Bpce0WuGY=; b=H4WKa8gFqdbI7t/9wfHM4dLvgCSU2ivO4A6SJOZacwGAABA/722tGQ2IIaVOUNNqDW U0157sdBn0QCwXThTcwnW+4ida5KJUqo6b9gxP1nAjFtwJDgf3qeik/I2fUKWtKxKjWf Flc7klW6h+PaO+DOoQdTBNTADVYg87Ga5xHAlC/NSOuOP60qOyAYcuP5qlRaWjYV9MhE TD7Cfa58A7+vKxn1GC+k4G8feKV9ivfkRHedyvsLowKuqglUqvanNyFEjtZE69W6zae/ uIRelP7A82T6Nj8RQnkFNlomxm40Jd1OpUgDnp9IIk2TjJSiUmMzCkJ0cz7R9I3+nfqx RWxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:subject :date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=4UQtxoaT0ISdrycAXTZCNqnnZG2uCBp0g5Bpce0WuGY=; b=bRE1uNccy05dI3L2Zd3AyrWx0bw9DY7VR97qsGj7TRj4ddfcDDmW4ybLH/kZcT0pD8 jUWfNB6SuAuSbEC7nd1/OKqfFhaLeuvIVNnpCjs/RBMfE1SoMh4SJnH15XMrwAz/sg8I tuySSNHi9Ot9NXP4KCJmj1WgxwgnWHEaSIuNJa04XgrVGYrBgDFpwuvnwSOo8BconmA9 ITo+hwSzELvZW6OLJG1750IIjwrFen8aW/UCkzWHPu88uaRB4OE7WjCKDvyr5P9w+Vhj m/NnQzWaTWnMMoXR4EVYuzrb8GOpcnYkj6l4CMQpV7JyGh/zy0t+fSzByF61MTvbApQ1 nlTg== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM5335YL58QQ6bQ8wKPjPvm4DkxAC6p690I2CxTxyo9bXFAP+MSWSZ ApFCNwxb4Qere9QMevd6Ao4= X-Google-Smtp-Source: ABdhPJxrkiL91CPdvsZTsbO1Hid80pODDn9SHBjYl/gFihlRRaSymjzy30hiZHtR39wFTcDnHs8+bw== X-Received: by 2002:adf:92a1:: with SMTP id 30mr5755235wrn.56.1598266778949; Mon, 24 Aug 2020 03:59:38 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:1b8a:: with SMTP id b132ls3156256wmb.2.gmail; Mon, 24 Aug 2020 03:59:38 -0700 (PDT) X-Received: by 2002:a1c:e288:: with SMTP id z130mr5357179wmg.32.1598266778341; Mon, 24 Aug 2020 03:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598266778; cv=none; d=google.com; s=arc-20160816; b=C/U+BhA8jy+c83tac3cN11zaYc83QDNYu1Zmo6lKcMOFTkfqc0srkxxBgogXmI95Fy cig2hhFNnJTXQhdWZjp/ZKzcfsGnMLQ0QFQoDt7c/vYtRzwSBt5C7qPAQLsP+T2hF4m6 mXgx93SMcWmw+W/yGZuapzgIbTh1EtSoswJ0DD3QZ3+Ilzw6IcNW6CeRawS9km2wO1dn qzLALrRvIdSMt1KDsMiGicI15eATc2keFiKuCsua42VEvETnPV0roTxwKukKj52JyoMx 7n1Mxjv3skEWuqmg00u7uZxHPw5AHA50NYUA33dyeiooALV8rmJEMj7XKanUr1fI9Gd3 FSoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:ironport-sdr; bh=Ml4STEzFzVTRwOu7Idd8BehdfsOmooZoI1cNtQIVhY8=; b=mCfcuPs2rMFi8yoTrSYR/Bg+1kUeWHTvFPvt9Cl/IiDyaP9zEpSLuDGP8805J8dN0W fPAVpHHxy4cQg3O4xNqWIMUmgGDK1W6Iy9MuPHFfo1Lb2EKnXUz2EnsPfDOxQkZKWMXP wb3hETC/+rpUq/Bb3/BFrWrk2G7Q+beBGEX1kW/Sxdjv3wmOevSlQFUFqY0UyiXjkSLS h+t3sL1O1D+O56WTByITiFpsWZQ4Nr9leuRhvl44hk3Thiweik/vfrutaT2tRnHgQdTa 3++bGJQk+8HA9rA3W4c23Ph1YursAIa3JUohjfVYijFNGXkQdYgzekQGykklrKsDpLwj xpeA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id i11si331160wra.3.2020.08.24.03.59.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2020 03:59:38 -0700 (PDT) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: 9igxEKfM7NUwS+cPNhLdHkyAuFR7TeQ3wcfpEq+FQ8VBofAMK9QWNjs9d/8qv23M7rlN+bIJnR lM922a7Q4ThmiRy4AC1SsybnIzU+n7EBg5yDvkoM9TF8khbWDInH+GpP8VOqUBrWXSgB1fObdL nwWyN5dQo/a6t2vjYIYvgJVBmaro+sUYeVEWl3c92xZMjsu3jsqCALSqBB88AzBB6DvAUtzPxt luVkYDR+52RfxLUam3PMVsHSsJX/FxaIZX+FYFO9nXvpaIfddMvBkGODK2SkVG0lsdpHsDK2ON MWg= X-IronPort-AV: E=Sophos;i="5.76,348,1592899200"; d="scan'208";a="52309717" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 24 Aug 2020 02:59:37 -0800 IronPort-SDR: JjGQxtKX3g5vVNWDsAE/j/AZvze/xr1pZbwHzX0rPdQTx+JYOKqRL8fQ75Irlc63bw5PKvrCfd XQWD+uzm7KPrsfzoYFSTNypp3y/PGS/C09Ygy7neVPc5i7Coqqp5y5dao9iZJhk5zoFwURsLYF C8OUYB2wdnYtF6OLq4ZAZC/m+Sa0JaeN1rlkLc2jEZeDBKQWRfm1RTTDk2jAV93RPm/D19kPUv i1dLZZZba9RuqRMJQ4POQqjQqMeGqgOm3TEcp9YdrKptP+N0fAgRyqWCeLVcV4m0kZNS/1oLgy cRg= From: Vijai Kumar K To: , Subject: [RFC PATCH 08/10] debian-common: Add tar as a dependency for wic Date: Mon, 24 Aug 2020 16:29:03 +0530 Message-ID: <20200824105905.21110-4-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> References: <20200824092750.19642-5-Vijaikumar_Kanagarajan@mentor.com> <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1675904186460309995?= X-GMAIL-MSGID: =?utf-8?q?1675904186460309995?= For --include-path option, wic requires tar. Add that as a dependency. Signed-off-by: Vijai Kumar K --- meta/conf/distro/debian-common.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/conf/distro/debian-common.conf b/meta/conf/distro/debian-common.conf index 7d681c4..3e3e7d2 100644 --- a/meta/conf/distro/debian-common.conf +++ b/meta/conf/distro/debian-common.conf @@ -14,7 +14,8 @@ WIC_IMAGER_INSTALL = "parted \ mtools \ e2fsprogs \ python3 \ - bmap-tools" + bmap-tools \ + tar" GRUB_BOOTLOADER_INSTALL_amd64 = "grub-efi-amd64-bin" GRUB_BOOTLOADER_INSTALL_i386 = "grub-efi-ia32-bin" From patchwork Mon Aug 24 02:59:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 16 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a05:7000:4605:0:0:0:0 with SMTP id b5csp2195786mae; Mon, 24 Aug 2020 03:59:42 -0700 (PDT) X-Received: by 2002:a17:906:410d:: with SMTP id j13mr4854535ejk.139.1598266782720; Mon, 24 Aug 2020 03:59:42 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1598266782; cv=pass; d=google.com; s=arc-20160816; b=Al5GQ7aj1ZgjUTtdci3JP1vAl+aICzdEPj0AkcXzbP0YdsDpaUzubK2a14K9L+LOZw RVFOIfxpEkOiRZgcH+7aFKZkTSIQpG8w/hwlUqci3QXPzj129n+3t2m0FCBIAVRaT5/g j0oVk9NHvgTY0XaMbVYEriczrZS5PpShZ/7VVKnG6aylIn0tPA5/fM+31NBB3I/RxMnB ojCimm+7XW7Jx+WrI4yRypVoCUUIEjMQE7sdGJl0kALs3z/mFSPeEbeAPowtDr7Kb+nq g7TfIqEPi5fr9Q8YCMIm7JKYIPdToosRBAOYhNNsQXJ57g1BxSLdpAKDlzo2tmJ8KRj2 ZxTw== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=yOng8jG3ocxQszQqSOx/XPQYMTphWWvlkhE1caRWunU=; b=MjJN2YGPW/LuCBi6sQLmJeWCjvc2FFBVeeYsMmW3SgrGqS5Cq4pOtCO5LbH9SFay9c FF+U0DhfZqBhMcXy1an06rnp0eS9mTXIme8H8NhZXcGyolLzQUxEmeIRTL47nD0iX9+z wPlKpqWRg7KSgv7eV7oeNnCrvEZ2nLwZWVOqe88A2pC8a2B+VZ4pDRVzwTvLdEMbVyVs VRPNCpmbLRuVbz/QCwF/8yGcpnk9RbrPHuRsgghx+qEsDmtG12iPbTZU2JeadmQ0wbNf Gx5VDwrH380mv7SY0OodiPj6WT40DWDlKebCujsDCTDJmlMYNDo9jfFawfUQqZsRY4bL S6jw== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=SPRGSz0Q; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbhv3r35akgqezpy2ahi@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBHV3R35AKGQEZPY2AHI@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id p4sor8336773edu.8.2020.08.24.03.59.42 (Google Transport Security); Mon, 24 Aug 2020 03:59:42 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcw7ho6fuybrbhv3r35akgqezpy2ahi@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=SPRGSz0Q; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbhv3r35akgqezpy2ahi@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBHV3R35AKGQEZPY2AHI@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1598266782; cv=pass; d=google.com; s=arc-20160816; b=TvSFDYpErUpPIUpGMnmjWCcX/7ClrneXBcWYAm/o2GgH+rkEZ2Ni0T+dvf4TCrWxUM wxlivRj79C3O/3PDUmYHTF9Zqm3OFq8gDM4HPMgJllylPtKgDaAdz5FTdAWbOQnWKv4g O/xfVK0PTNx/uCCZZrpaR6PivFr1HrIPvH4TqhV9BDXk5dpVpNsIyrwcMx8zegkxBaS0 Urq0gv27rnprHsou7LhabpXiKFd1P/ajnpRq0gIJNhY26u4PlvEdeKM22qUZLYUoc1Ge aZGc9s+6V09Qd89+uhDbYhEN//cCSzVqkHBSb7/k+nNhSpntCbvQCbzIatmiEu1C69n4 WD3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=yOng8jG3ocxQszQqSOx/XPQYMTphWWvlkhE1caRWunU=; b=TAIYzRIPdoEFuqf/nxMMPe9PX6O6r+4qaIKofq0SMy1sqLhjQSVAARyhs2K8WErpml 3yYhu40qkNPUAK/S/PMsaZvtga5wNYnDWCk0W1xyV3XHQF6NRELZvBXObi/8pNhC0G/c fgt42JBoPYdX5ERgFupUnJtHXW2h6QlpVTC9ncY8izz55Obyxaq5DY2rX+UMKI23ESu7 QFNy1y3DILcLhyGvBXx0cCDLWPj6wFzB4kGqlnvxGTiwMiOl6xv9adTYxJobSCalDPcL UVrJOtc9EMUlYxVT0pHuwaTXfyGLuGW6vj+LaBozVxmWze9YxcyJnuLXA3RJfrV8I8hN Rmnw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=yOng8jG3ocxQszQqSOx/XPQYMTphWWvlkhE1caRWunU=; b=SPRGSz0QNOME2vHgK/BABiiDe5kItNY4BWgWa6ihdvBGMMPVzU0GHgMLveaOdUByUI ANd6T2e7mK5kyrY8xuwwbHTnvQi5x/KV3M6XjLBwtUo+MV/C50mQr18b+BrGmpHeQ1D8 gOkb/nvKP6HWc141oRhL2Ay1Ba/Mg33RBNwXxVpYvDi1nzyD/+794QcmsCOxTFel7nN3 W+oJDmpZ1BP308vhQR8SYUvCFkxc65o4+WlIN0aOeuiz8sS916GKt+LX4qWTf01BcFcn y3BWeox6qCrr3/Gg0ADT35JZ6Tu+L6iVgjYY3KmSc+TMrSpdOagTYqGOiLIInPT2x2Fv 1b7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:subject :date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=yOng8jG3ocxQszQqSOx/XPQYMTphWWvlkhE1caRWunU=; b=p0KUlk6zMv3A6wYbYYWNvXg7esobahPPuku5ReUwCA+e/5k+u0FAQZ5ecXL7JjZOoh FPXicPLiHAEVLEx3Ph4p9RBdQuYJsAvEyfSpI+murIFTW0WwkoTPEJrZjNfTY1rsMuKH ErJnyb6OKf/2ABXSdF4/7OTfIOs7wrGod6Gg+MnL1lzgwRB51yVCE4So8nx8jOHAUWCK gqPKIRVi5OYN0/FtkGrifzdJDp8gmrYTxO0g5NC3lG4MIoz+drORpzMqRT4/ELHRrmnz IzHwYiuVEfZX9s58AjSoKFzAJ4ER1WFE2w0pts+W/iblfH6o8MiCrTH6U/vq2EHxR2hz +FWA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM531Wk2ZFgLFetk3gfgB9QI5zKHMxmwnqG3h7yT96mLmr3Nt5nkhm GzU2j4jDeAYybdeUB384+GU= X-Google-Smtp-Source: ABdhPJwHEyysWR1olAnOTgCgFblxTJV1+cI4jayMJMnN2IhxMD7pdBlmurkc1xCVxXBgLekv4IEGBw== X-Received: by 2002:aa7:d291:: with SMTP id w17mr4865031edq.257.1598266782378; Mon, 24 Aug 2020 03:59:42 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:aa7:d342:: with SMTP id m2ls2829105edr.3.gmail; Mon, 24 Aug 2020 03:59:41 -0700 (PDT) X-Received: by 2002:adf:edca:: with SMTP id v10mr2118838wro.124.1598266781738; Mon, 24 Aug 2020 03:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598266781; cv=none; d=google.com; s=arc-20160816; b=dcFgdb0QdaMF9cyrP6CoZ4OFeyEJlr/Y2CmSgNT4ZR5IFUgZ+Qk+jepinh7Ay+dmWa S8LBU1jQNp4KjFmPMpacJqIEAzgIhAq3/KYIY43CUAbPw1CblVwoI/8G/Ek5KKtdiN07 dgxIuXwjmCUimaZXefatn9tvM3u0PnE/mH+s/4ZjHV9OkTuzjysJZ1mRT+pG8TU2e4RL xfPcTbOG7gReTp0lG4mRs6RfW2CEYtD3mCBk+rnPgn7hmnBOAbr0mVku6oN8gFX2he8m v+Vx7GRZi93xgt9IqQUlSuXUd8PIK0WnevlfRETte0C1htr6pYPj8tfv/WjTO0tna0c1 /HpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:ironport-sdr; bh=7n+598+xfiIxBmBYdWPFfatJx52dQBnPbzYk49kV0u4=; b=PqrUQ7trwK/jy5Lj/iWW1O3E1uTTk3amYmcrb9cG9YM7UmpbjI5n6k9D16sYfgUPiQ jokbE1SEDDEKAg8VWVmnXLWYNPFnr3+db+8RZEMLYoVV+BJEcAak0dkf+GnuWTI1Y7SA W6mLEf5M/wXiToSqxIKOJQkZEUvccirLj8OLgnbnmD4GzE+hWkzSW8Otb1mK6yBCxtrW J9G2Kk8RuAcWVSn8RkoJYKq6979IrHktSUunwBMMYGgFcEHBLzi+vQsjMFYlIGj4b2Bs TLQlugJpqNcLsRwFh0FpzeGDHK4+9jq9VAfLlcewNFP8F0nuk0Zk2ksr6OS0wy+XirOu Fq/g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id i11si331160wra.3.2020.08.24.03.59.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2020 03:59:41 -0700 (PDT) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: ZRk0zoMwR7d6tPxA5jOKvRhx24xD8QnSr7uEpC9HYV5n51I9MIhge9LUcuq15xrVsc8XW2A6t5 jM+2VyLuc3bYSEN9pGePeyDb+YIC+1ucRDn2T0Q4S8MSC+mTV8lu1pt6XwHNzCcqOWyHuwXQSp XDtl4IBimmzy4OhA5wfkzBDF+0gMx/6BJWbSWDssa+/ULy0+oh6D0n6YAMk+o5PkInBBvzHOrq 2HhIYD9wp53+xpEJrPC9BL9HzIQmXsPlZSOysCQUgxSr46G70af+zxxmvP95IGr10q37MKFQLp Uxc= X-IronPort-AV: E=Sophos;i="5.76,348,1592899200"; d="scan'208";a="52309719" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 24 Aug 2020 02:59:40 -0800 IronPort-SDR: 1xUYS0qRHl0D+GCdGGtuEudF0bHMXPUOF1EpOf5N88LePWaPshMcvgO+QVqi1jcE41gts6Xrt8 Ys5LgXwLFKOX5a7v3B2H01wrAAiYrqBKDBuzlJZn+tKStTuaIS43vBJJpWEKUNpRCV25TOO+27 QSB6i2ScnJZdVTJ8sjBbNiflx2N08M1oc2CE3e46lLTJAj1VdWDsXgF5SAcCP5mMFqAuIfJYbO hjZPIHkf29qsFWCT00qsBLHVvyZYTNxegw4p61f0xVGirOYEAUWdC5sbKc0stNGAXPteJRZWxc fC4= From: Vijai Kumar K To: , Subject: [RFC PATCH 09/10] scripts/lib/wic: Add /bin to the list of searchpaths Date: Mon, 24 Aug 2020 16:29:04 +0530 Message-ID: <20200824105905.21110-5-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> References: <20200824092750.19642-5-Vijaikumar_Kanagarajan@mentor.com> <20200824105905.21110-1-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1675904189552508471?= X-GMAIL-MSGID: =?utf-8?q?1675904189552508471?= exec_native_cmd doesnot search for the binaries in /bin. Commands like tar which are essential for certain wic operations are present in /bin in distros like debian. Signed-off-by: Vijai Kumar K --- scripts/lib/wic/misc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/lib/wic/misc.py b/scripts/lib/wic/misc.py index 91975ba..4b08d64 100644 --- a/scripts/lib/wic/misc.py +++ b/scripts/lib/wic/misc.py @@ -138,8 +138,9 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""): if pseudo: cmd_and_args = pseudo + cmd_and_args - native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin" % \ - (native_sysroot, native_sysroot, native_sysroot) + native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin" % \ + (native_sysroot, native_sysroot, + native_sysroot, native_sysroot) native_cmd_and_args = "export PATH=%s:$PATH;%s" % \ (native_paths, cmd_and_args) From patchwork Mon Aug 24 03:02:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 17 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a05:7000:4605:0:0:0:0 with SMTP id b5csp2197792mae; Mon, 24 Aug 2020 04:02:30 -0700 (PDT) X-Received: by 2002:a2e:8615:: with SMTP id a21mr2473221lji.357.1598266950401; Mon, 24 Aug 2020 04:02:30 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1598266950; cv=pass; d=google.com; s=arc-20160816; b=o/37SUZf1rtPiki1GH8PeUHU74lMo05zVhV5ge5mNxid2ZB2SBOCqslVft4zoXWAd0 V+TYuRlHxYECBhAYUUqt+SPgPXBPF8QIcs/bTwR+eW4aNvk93iMRW+6O5kA7wrMOZdie l1Q7htaxv/mWu27d5dlaPJo2CSGiTgLD5A2oTeXgVSZUURRqBfj/ynEm85OSJ6n6k+wc mA0T93rxqOsJLbn5IiDt9ISVdnxaL1woMr63bNS6q3kSdcz4rTRVm5i6/qpOPTcfR6yp 6QiN+/b9aR3l/oCveCYic1UySHkXaQcijytsWKDnziDcBThBzjV2e7StGMn239lRyUPQ wgIQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=vSf+5anA+wjwcLE24aidlF0EOAmigZzXLT+bLZFT6TI=; b=iGlZOJOS76Bop6HCuD9yYjvz8Nf9eFlNQON7qDSOwvSFjOemKShAlUI+4sQM5ZX+e6 0T5zwcGBK+CLsqYQuinHQlIvH6tvE4ZrxbVvJxfkgh/5wa+/TNCmjxQshAGTHVhAlv/B R1byKI2Encar0cQr09MrhipZA9o8XwcizkAA32yCmdVXLgSEarafgkOWcNoHnJl8l9So k4D6f8RG9WkDFTmL8+6E7dJWl+ErIWGhfS28zlw0GY/aKmOLHB+LQShcaemIWw71AJUk fyrWZVMqOGIR6b7/tiIN0od7pxI8qE6E8ZrkYLBiPSLFGFCyBUt+b7Ll4anLtn9DeXqc s32A== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=LjJkd39D; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbrn4r35akgqe7gc4g4a@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBRN4R35AKGQE7GC4G4A@googlegroups.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id a26sor1862143lfr.42.2020.08.24.04.02.30 (Google Transport Security); Mon, 24 Aug 2020 04:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of isar-users+bncbcw7ho6fuybrbrn4r35akgqe7gc4g4a@googlegroups.com designates 209.85.220.55 as permitted sender) client-ip=209.85.220.55; Authentication-Results: mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=LjJkd39D; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcw7ho6fuybrbrn4r35akgqe7gc4g4a@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCW7HO6FUYBRBRN4R35AKGQE7GC4G4A@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1598266950; cv=pass; d=google.com; s=arc-20160816; b=JSgSrdFO4tFVYtMajkR3pF8uwQD4gPAynr6DBkLDFgnyWtPmTXFgJvFFNooopKlxKC csZWLXndGe3ph6C/iI+9RV9F6yzJZWSw4NAzCMBbdVENeNSWQ7sDB+w6b0drOZuYyb4x vn4pN+6muiBP0pR3+a4h1Wy+Mr4DEMZKXoYBwtFSLkL7Et3jkwhhGecOb98PxFLL5Ilk 9OhP1UibYZZP9Mv2nrhr2T3l4A/p4XwljU28RS205EpRuCc8q2y9SQDotuCG7/DtH2xo Vx2XiqCZc/iKoa4pJn5177YEhGNWE11N60Mek42YzSczGAOfgfMSXh6a7B0WVh3TlwcD VI4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=vSf+5anA+wjwcLE24aidlF0EOAmigZzXLT+bLZFT6TI=; b=oFK/1E6LYXlVvFCkBJOp9CnL1735KaGTj1pp0cUgMrp3IuiPNsGz4OT/OPymQjkTtS UsTt6S/K2wfg3p2+al9gBXGVf5JDXgDeABOvGGfvNKfIGmXILDYrqkVIx9E0nhVS8CmC k0kv5nG1BkdTF9kmg4WCsbFLTpfhhyI8oKGrhA/+xWV96d/Ae5zIM/P0p9hEQPSu60lZ 77OhSJjJAIUk9nbE0NBJpctkhWpNxukZfCOLH0P2SrVYWDKKTecxq7Oe9VWfvAAYWU+s lYcrxmjc+3jz3UwykK6DFs5zr5fQ1iolbveBLQuTWyanvOY906SbH00Q/jEMvSSzx8Xh yOyw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=vSf+5anA+wjwcLE24aidlF0EOAmigZzXLT+bLZFT6TI=; b=LjJkd39DIDyoCL7B38Nfkl2Z6JuWsHq1RrmwhfiTi0biISrdpyo+g8kyIXZMzfrZ52 KfmrIwyYBxCrgNUf+15TwNntpah9xrG4v/nmXS+4zYLtfwsw3czZ6G2QphVB6dWzi/ey fbCuN2St8UacsLfWqirMGlza5Nrw9GiaoTU3UHZlTjznOwCxvD9Nd6bHpomC8yKtN7ot ndK5O+XobD1f6bIBircF3jhDjBxhR5tOzV9aF7YkguaxJ98y/4szrYmk0itRCivxPH9g 8hbnCB1ex0HW9XXUPPrHsmsn3MLveMG5OGtVxxeiJ5Ow6iDN/TPHMhjX3oRLrlbIlfux 9A/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:subject :date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=vSf+5anA+wjwcLE24aidlF0EOAmigZzXLT+bLZFT6TI=; b=N7oxAnPAjWuZyZV75+FVfKg+7nrQGPxnkwdkG4qmsMmO5k8SYFPsh2ZBnHii0WZeLa F20xqLwgxquUiu4Cf6RqjQdvsw6tG97tMpqMv/zyiHtx9jfbjZj9YNfoYN8Nkt6HR152 Ruh9GfMtcy4crdWCqsMEp8WhVzpeRnKRuj8yHO4BusX4AaOkRAglgaa06dexMBQUJLoe 5H7/vHXPNMGzLUMVOISGDBgMuwbXFEYXf0eYfLZhD3i7ijPBvgTXGQkP4E8xpy+UHo4i xOBkyipg/yMciUQtkyQf9ueTL8EcmWgDHOKf3yyLr0XQEi6ROs71RhYIqScELkL5Pscg 1KfA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM532BuQW7GzOsJSj/MmF7yPF1TBYBh75quRpOUqXt76G2q/42i+4l Rf7LYwyTDVthbFgrNImEN/M= X-Google-Smtp-Source: ABdhPJyr8F7MtmQrqOp4S3zJJOhQylW0owynWbv67uuvaF0JNJAwemShMeftLdhe+vVtNKofHLQcFA== X-Received: by 2002:a19:644:: with SMTP id 65mr2252774lfg.143.1598266950055; Mon, 24 Aug 2020 04:02:30 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:60e:: with SMTP id 14ls1663382lfg.0.gmail; Mon, 24 Aug 2020 04:02:29 -0700 (PDT) X-Received: by 2002:ac2:44a2:: with SMTP id c2mr24680lfm.194.1598266949328; Mon, 24 Aug 2020 04:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598266949; cv=none; d=google.com; s=arc-20160816; b=SW6i3vujoyectDAhvYzmWLq4NQvCTmPBTTtixV6JEJtsVBWmKMOGS9Aja4GYdwK0S0 uDTZ8O8vn5CpYdfyINNDTf4mygy9oIyGHPH+cPqE7QB7k2BDHG5ysXkydq3WZkqpXaux qjyZ6WrRHoxWUQ3nNto0xHaP5PZDJx9k51LmctBUg82uMezSkm+Rq4H+HimMN4C3o+xH dnTSr/flLQkjjrjGH+hLDMv3Wvqx9LMjpKfcJM1VZVp/umntXkEOYO9wFcQKho/UGxQE /HarLAoBaU7bA6iShXwgq8M/j9RcXWXxQtRWHcNWGaTLmakOCS0m0tY7kTS5jSNUysWT 8Lmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :ironport-sdr:ironport-sdr; bh=xG0xR0L+KZCW2zI11hocj20TIYXLxvmBG8bTSliJLqs=; b=vPXeHkbVphYrtjV83uImd52UBC0fCWiqBUuMEKe04fK2yRac2YC5Zx5nMdz8OR62uB lod8+1YuTl/Xp0VmQenChwTJeX3ruPuLBPXknlSkuP5p6pqd6K3celHS50ux2gwuqZD2 Rm9Sxc3GgM3hj/FBBwpNrzRFFqgYzMbIPY9s9Y57++zTBVA6948we/GF/JqZyrKWmInA yYNH989l4ip5I+t5AZe0km+Ytx+FLc8lYy4znDZQHMpnB1CBnWVcN2ncBMNRuewpDWyg 2kTWm84rOdlDsKCsFz66kKPEAcnGzZ9kxlyybruApefA97GAX614Hqb8Aa2jvvvE/i8B Dw8w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com. [68.232.137.180]) by gmr-mx.google.com with ESMTPS id b10si202128lff.4.2020.08.24.04.02.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2020 04:02:29 -0700 (PDT) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) client-ip=68.232.137.180; IronPort-SDR: vKB9m7eLaTZUFjHv2PkPW14onnSCI8ub1LSF2yXDbUJGOdbmRVyDQcGVzzk1Pmz/3g+b5AA3aX l4Mjyicmur4EZfTyF9WuFoFYusI+ArooHg8qd1CTR6dSx2MEIU+rzaLKF/XiK9iCOUGcMIxmcV JqGoXYRsvR6cenm399aCmUnFXuxtf9zvR2XifDKZMRLAjEF19HOm8rieuEnFX/fK3KiMSgKfRQ MBtF6VNOcO2VY3DNS3uCKV1f9bCg/hgj/B8WU7I/X/nH+CTEMEeAP2tmfhlEBdH1HWhkkDgUor s3g= X-IronPort-AV: E=Sophos;i="5.76,348,1592899200"; d="scan'208";a="52175623" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 24 Aug 2020 03:02:26 -0800 IronPort-SDR: aMTfjZY8dshezUUup4KOviGgsoqcs6ywpbxlOUJAu1w2qOO/Bc5YkwGcffy/ndLf+EoJOlZEdy 6Zpwy2TZfWIYwBdZjJsjUkcXFti11pomXhF2YzGrWBSZPqn9+f2Rqu+FnQAlFysYcb5smYArEE zSKCre+oByYGwxPbP2Z16E6aXzZCPPqFUzv4OgoAp/bGU7ARWMtHCJsiJAZHjJ1flMFws0ojad YzVfYzeKXEQqUknOVVxRhsW6X4iOO6Tgl8wKOsQrYQE46TrttHzWF869AQejf/TK4ze1sbx/QN nYQ= From: Vijai Kumar K To: , Subject: [RFC PATCH 10/10] meta-isar/canned-wks: Remove /boot mountpoint Date: Mon, 24 Aug 2020 16:32:06 +0530 Message-ID: <20200824110206.21410-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200824105905.21110-5-Vijaikumar_Kanagarajan@mentor.com> References: <20200824105905.21110-5-Vijaikumar_Kanagarajan@mentor.com> MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: vijaikumar_kanagarajan@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1675904365665445545?= X-GMAIL-MSGID: =?utf-8?q?1675904365665445545?= In the older version of wic, the fstab entry for /boot mountpoint was skipped. However in the latest wic this is not the case. Adding a /boot mountpoint in part results in creating a fstab entry for automount. Remove it to avoid the unwanted mount which overwrites the contents of /boot in debian rootfilesystem. Signed-off-by: Vijai Kumar K --- meta-isar/scripts/lib/wic/canned-wks/common-isar.wks.inc | 2 +- meta-isar/scripts/lib/wic/canned-wks/hikey.wks | 2 +- meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-isar/scripts/lib/wic/canned-wks/common-isar.wks.inc b/meta-isar/scripts/lib/wic/canned-wks/common-isar.wks.inc index c8ea4c2..e7dabd4 100644 --- a/meta-isar/scripts/lib/wic/canned-wks/common-isar.wks.inc +++ b/meta-isar/scripts/lib/wic/canned-wks/common-isar.wks.inc @@ -1,3 +1,3 @@ # This file is included into 3 canned wks files from this directory -part /boot --source bootimg-pcbios-isar --ondisk sda --label boot --active --align 1024 +part --source bootimg-pcbios-isar --ondisk sda --label boot --active --align 1024 part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 diff --git a/meta-isar/scripts/lib/wic/canned-wks/hikey.wks b/meta-isar/scripts/lib/wic/canned-wks/hikey.wks index 1e82f8c..840858e 100644 --- a/meta-isar/scripts/lib/wic/canned-wks/hikey.wks +++ b/meta-isar/scripts/lib/wic/canned-wks/hikey.wks @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: MIT -part /boot --source bootimg-efi-isar --sourceparams "loader=grub-efi" --ondisk mmcblk1 --label efi --part-type EF00 --align 1024 +part --source bootimg-efi-isar --sourceparams "loader=grub-efi" --ondisk mmcblk1 --label efi --part-type EF00 --align 1024 part / --source rootfs --ondisk mmcblk1 --fstype ext4 --label platform --align 1024 --use-uuid diff --git a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks index 2afa016..e0fa7a1 100644 --- a/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks +++ b/meta-isar/scripts/lib/wic/canned-wks/sdimage-efi.wks @@ -2,7 +2,7 @@ # long-description: Creates a partitioned EFI disk image without any swap that # the user can directly dd to boot media. -part /boot --source bootimg-efi-isar --sourceparams "loader=grub-efi" --ondisk sda --label efi --part-type EF00 --align 1024 +part --source bootimg-efi-isar --sourceparams "loader=grub-efi" --ondisk sda --label efi --part-type EF00 --align 1024 part / --source rootfs --ondisk sda --fstype ext4 --label platform --align 1024 --use-uuid