From patchwork Fri Feb 19 09:57:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijai Kumar K X-Patchwork-Id: 335 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:c583:0:0:0:0:0 with SMTP id x3csp8991711oop; Fri, 19 Feb 2021 11:57:45 -0800 (PST) X-Received: by 2002:a5d:4bce:: with SMTP id l14mr10661109wrt.256.1613764665686; Fri, 19 Feb 2021 11:57:45 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1613764665; cv=pass; d=google.com; s=arc-20160816; b=kQuqRxABfo4kTZEiTU0nt+gCN878fnpf+b9t/vT3OmPEIiISVqURdVkiV/lGuR4pIx Ugq/pMKHbwN5QmKgE2ugl4r/i4Hs867b7JHTdJ3CUuxluo3/7ccwQ9iuACPL6u/H7XT8 Ty6z4dBuxz3JFsyRcyBADvQP+yqNSAXOnUH7bZOP1AgQ116QcFTpAn9f+6t1wEmO9YjH U9GD/GBmWpp4IvoVC5woDahyIy8Awi+W0uy9VxaA4miTmgFRHaZE44cSkx3jXFLRg9QJ DsrZBGVgoJtEIlRfeaxGsykouvxb1ikR5Dsv6e6XG2JGiDkZ18XV1ozG2W+Db9JJlvxr szbQ== 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:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr:sender:dkim-signature; bh=gkajuGZj3bRbudkE3g8hQ9ARaOdCpohUNTZgXd425oU=; b=UU6YPQ+0mSyrgzrI8ZzWn43mcwm3jhKe/pny80s5X/5uoHj6xhJmFY9TsAesLIbcf8 pnnk/IxmltWD0ZxleHnAtYOCBayqlzqkbIkSN8k3xezzHtAKoLMjzeEv07B43jqzH2rV n8gfCQiYabTHp2pRMbMig7nOfq86e4YyEioK5t2gDzli9CKyA1SX+79BnuNfhZmV4Jxs m5B7rtGohj0awbwDKkf/JJrKxF/fLqKa7arfx1sY4FyApuW1R/M7zWGmFFlgzUjQDBh9 3FMbMlyycMKOJRthLK0NfkmggyGY/Hgq5OCfik8MpFKGczfzq9HMq8pIkgVYeQhBErJ0 84Hw== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=fs80yYMd; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbofqycaqmgqemokg26q@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBOFQYCAQMGQEMOKG26Q@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 d5sor5168747wrj.46.2021.02.19.11.57.44 (Google Transport Security); Fri, 19 Feb 2021 11:57:45 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbcwp7lf37ukrbofqycaqmgqemokg26q@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=fs80yYMd; arc=pass (i=2 spf=pass spfdomain=mentor.com); spf=pass (google.com: domain of isar-users+bncbcwp7lf37ukrbofqycaqmgqemokg26q@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCWP7LF37UKRBOFQYCAQMGQEMOKG26Q@googlegroups.com ARC-Seal: i=2; a=rsa-sha256; t=1613764664; cv=pass; d=google.com; s=arc-20160816; b=sIZa+jUq2v4M/6YmkfA61x4x0eDkPw/RAtPzlcWlj+ow6Cb3/8EruJAS1CF5rFBs+i kq5FKjzhHG4OQbGYB29eGUp/W639fN3hoC2ohGVQD21cUdWOV5oAybxbta7vE8kzFeZa 71vL/0O8VpOtTrymIj0I1dDTy+SQruM2o0tyPYR4hlHx0dGyEphFNOp/6BIllXBWZXyB mO0jksFo9FuVpgB1zfnj7ztWbMup3q6muTpEUA3UMXaETVAVahiP4xdyJtlnhgaQlR7P 78lrdiENPp+vzSZ7NqRqSR5dXMoW2bubgGpExczHNncnfkEgx34fwufXuiS1aLYWa8ll Te4w== 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:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr:sender:dkim-signature; bh=gkajuGZj3bRbudkE3g8hQ9ARaOdCpohUNTZgXd425oU=; b=Nc9OXyASwEVr9RtDHwZmoGDTEndR35XvLto2k9zpgUqNBbnAB03RNzzBgFnFZseXB8 kTyA0vkP4acbkX1STTTnxsbvofk55Kl3sjGFuFmCd22p/sI8DGVAClejLXuK9UMU82lR 6iKeMQz6mFCiKmmN+9kBvNqdyBL7x0Wl8eoJNKpRojii4B88oT0wcKoTd3QekNpA+Mqe C3bqDgyuIQ5EAZIjKJNzQrjWxfJhasOxzAkfx0vq8lNhyKPo/+7CTQX722+6J28vu/Eh L/8roxdP6qEq1IwP9tJV8hIdgIuRYLqTxmLZm3AeNa6oog9oZDdO46Rl/4rkIlrRbktI /D0A== 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:cc:subject:date:message-id :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=gkajuGZj3bRbudkE3g8hQ9ARaOdCpohUNTZgXd425oU=; b=fs80yYMdlyMKkWxYfiBHU8utwnUSuPoJqenQtXCJ8ait2coZWEQ1uEb+DLeilunXse MVtTnEiW/KmR21UDDsCy508fvCfO0U4dq3E5s4F6cXa/ZBayljvT6ynKL9H44abdR2Ma 88DiBk0Io7a7cA2oDebFKgJOiq4WAj0d+8a13VzXwQHFzFeBgr+nEpAmBGztz9jN+tMq skvNp3CruzEm7C4jIpAh8BZ/KfPql3VWHTFrE3yBTXBYBRr85vtCLa1TJTCLOUMGefHo gLD2zPd1AYWwNQTRk7WwzxE82rphuRyx8tRduqN6Aq0F+R+AWl4z5BAvnCOzTvwoYAQU h3PQ== 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:cc :subject:date:message-id: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=gkajuGZj3bRbudkE3g8hQ9ARaOdCpohUNTZgXd425oU=; b=Ze5by57HR6j7dbz9NIGPUIp/jaER16NpHYE7LZsXe8gufxjh7dK84DY7YqbBXDAb9F CRkxURtPzEJPfcCeefbntwPyDCyEXiIq0zjUTWwJ1VkJGLoic6kLHLAnA76oZg/TBjNY xuUY+M9pEImgLpUfXNM1sql/Zg7/qvQVs57laOM0hrDc83lysOY5vGb1bz8i3uW6h0Bz KJLkt+A2BIBsLSK3f4UbrDjGO2GzYe5PrmYuJqItHeDD1+sZAviWdEyMZLIDJGj9vh/R GUP8rLQZoBRIKMKDAERQZQ0qcCfbjF4uyL1Y0756B3hR6Dadv+NOFytRHtSI3tF8quGW Q9dw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM533FXIIatyFgND9v7TWrgGfnnpIErxZdqDVakbjpQDu8t7m6TiAM bXuaCucBY5nCA9DabQecxUI= X-Google-Smtp-Source: ABdhPJwaLuyj76OZDOYBHbxHYp2UDGFj1PIqKKMQrC+kzcRLay69YfI7S4PdlAiR0T4cDw74VCTAeg== X-Received: by 2002:a5d:6404:: with SMTP id z4mr10481279wru.103.1613764664754; Fri, 19 Feb 2021 11:57:44 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:f70a:: with SMTP id r10ls906903wrp.2.gmail; Fri, 19 Feb 2021 11:57:43 -0800 (PST) X-Received: by 2002:adf:ebc9:: with SMTP id v9mr10879142wrn.387.1613764663874; Fri, 19 Feb 2021 11:57:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613764663; cv=none; d=google.com; s=arc-20160816; b=TEd0o+2jPeE7WOsDuL6lHtdM3dtopFywE00DUwaCVO+Y1t2b/xQmUiHsXffWnri0NU u6FqmrHjaNqbQj9qMRpF/BMDPxyDf2xKp0T74KGSnBPVFYgGJP4R5hkfuVM8+og37yks l+8IVQW9Kpna4n2SFg7IpSwH3hO55Hw25+QFcxXrDe9agWqON9GxmxClk+VmWmSxyVNx CPKtNBzIMtR4cSxpzFhf7rSwiLE7ulXiMrupTyUHxuH3LFYOZuvPOE8MZT900QyOIGsC I+H/cRep/P0vkSltUxld638sPH9PiSYFuR51fiHtoDZowISImfm3dC0jHmFNr/gxl4/t VvEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=vPlMYmm5fcn1uQUwYUcRQvGpF7Ju8HYO6wPna1Sx0FA=; b=LbmMHXE049LoOpmmKnbZz1RgPYv6mflvdsi3ZUg5cCgCYoWA+ODcya61x1APUu4ejt 7TWGWoY6cSmicJjNeNkK9+U34Y6ByeA7y0PG4GMM+IZzyGjOo81Uz4bsBI2wCl6hvjo1 SspCILBux6zFp/slbwmaFy23QMO7IvU0QSDWggMaAlEF8fU2tmwhjy4x2l3iJYvzLOXN l1ZoLCtOhQoHcAzgjnZNS4J+XxgsZ+CuX5RDvG5BzYao/iJF8YhxUlIprshD6igOS+6u IurfzdhmWzxTugk8ldzsd6Gg+X6C7Y4wGJf8SW/Q5LD2mokammWxYAT9RKsjPECK2wTy PWvw== 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 f6si199833wmq.2.2021.02.19.11.57.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2021 11:57:43 -0800 (PST) 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: 5ZvAYJdguzZIfVaFlGm9MU4MxsBnTa3TKrzkaWyNhtGvNqQYENgdE0OUdZf6Z/ZT+uF8T4SE11 5+XCwJjelaNJQi/vDMIEWqG6rWPrbj2dmpHk/6NruUIzyQkIpjDXCOYIjrhAqe3HDaO0Cw9swL MfCp4aklcIx0YlWBohNLVVB7Y7nyhOYQHG+aXkY1Qi6Jc2bMSXT2G8Dr1rm49yufxKDQo8JAU7 K1J07eUgzz1KWlj4Yg9gWAi8D/59dD9SHD4kQ6mKNC8iXC5JDgKiZZ5pgi2hMJz8icxEoKp6n4 sd8= X-IronPort-AV: E=Sophos;i="5.81,189,1610438400"; d="scan'208";a="58305032" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 19 Feb 2021 11:57:41 -0800 IronPort-SDR: juSQXOaUVN80KXFDIDkWrOk9mEMv31wXcD86TSfZiP5b/2W2hc9AoQ3vCGKMJzd9uxXELWYXyI F/1ox423XDNeBgnMd+yOOi1DUPwi4hJCQCUZynNJSn9vbnepcPAhnGtdCYSjnwHAg47SeHSHjA z86bl7Mp54IBWw676zYMwKfJ0K1B/SQ3J1ya50ithMvmyBComxuWTzDUWxGJcaQtcPDuj1jso/ FgPe94n9G2RJVMJkEgHA5XDZrV6Gw/UcFT2ANRWLPWemJP9qlI6ZkvWUDwLQt5OUl5BxQk93Rn r8c= From: Vijai Kumar K To: , , CC: Vijai Kumar K Subject: [RFC PATCH 0/2] Custom base-files Date: Sat, 20 Feb 2021 01:27:17 +0530 Message-ID: <20210219195719.29037-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-ClientProxiedBy: SVR-ORW-MBX-09.mgc.mentorg.com (147.34.90.209) 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?1692154897920475661?= X-GMAIL-MSGID: =?utf-8?q?1692154897920475661?= This series introduced 2 patchsets. P1 though could be a separate patchset, is clubbed with this series since it is needed for P2. This series removes the postprocessing logic that modifies /etc/os-release to inject custom data into it. Instead, proposes a custom base-files based approach to solve the problem. The basic issue identified with the post-processing approach is that the information put onto /etc/os-release will be overwritten by the one provided by the base-files package on reinstall/upgrade. For a history of this issue and relevant discussions please see [1] [1]https://groups.google.com/g/isar-users/c/Jr3bTPumH-w This might need some entry in user-manual and/or changelog. Will be added after further testing and in the final version of the patchset. Vijai Kumar K (2): dpkg-base: Handle custom source directory in do_apt_fetch recipes-core: Add recipe for base-files .../recipes-core/images/isar-image-base.bb | 2 + meta/classes/dpkg-base.bbclass | 7 ++- meta/classes/image-postproc-extension.bbclass | 40 -------------- meta/classes/image.bbclass | 20 ------- meta/recipes-core/base-files/base-files.bb | 6 ++ meta/recipes-core/base-files/base-files.inc | 55 +++++++++++++++++++ 6 files changed, 69 insertions(+), 61 deletions(-) create mode 100644 meta/recipes-core/base-files/base-files.bb create mode 100644 meta/recipes-core/base-files/base-files.inc