From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6795913180905209856 X-Received: by 2002:a5d:5745:: with SMTP id q5mr14506920wrw.374.1582609437438; Mon, 24 Feb 2020 21:43:57 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:6385:: with SMTP id x127ls773429wmb.2.gmail; Mon, 24 Feb 2020 21:43:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwDSqtYBfwnqi5D0oHSMV9KWynz8HFf/GMdES3jZB1DkKknnIderN6RP1AsBzhCJUnRELHb X-Received: by 2002:a1c:5684:: with SMTP id k126mr3154360wmb.181.1582609436536; Mon, 24 Feb 2020 21:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582609436; cv=none; d=google.com; s=arc-20160816; b=SNLt8SgRS8iUSoxzBa4ES7AkQCVCJeoqJhsAXdafQFz/qvHbSx2TOpdM5a/N7+IdTw mXnPjAVuPnF9FTu2nDVDa0ni1zFQ73NsrWFx8BQqmy7m+81YzWLHNiLke1O55h7pKpFz Kf7t90cx067LL+8zAX61W9Oygj782hSsuTfCmSZTCmZ4B2e1Etqppf/6sYJilJdVxUSg eVQyvo3XltrHEyqTumOhYCONOnPZVfvLG/KL6Jl9S5j0QtVPXimpqCkN5ZnwTYC0t8tS 9KlkHXo6pCqZ1bUMyexNunRgioi1k3SkEKErLVbvWKRcVNlJbK+wUG3sWZVL/KaIvhax eRWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=4sysaqAaa9rZ5Q3KzgtYI5w2dcWSRY6uvPAeX11N5e8=; b=HyV+MQ0VWA9V+BRov1jxTeJ2GcmzWHn3CMdQumaSLdrR7t8K0FlmhtgAV5UeUiMcXW cZT6G3RC4iCNB3NP/AgReHuEiFfh5ZO/uT7TESj1Q5VMwKqF0iQiaXLwlglVa7TUGGZ5 yKJLUrONMnWcf3s+l/otxY+g7YHECP4wO6kYN4MEAb886FlMr6EzwQZC64vdc8vh1ZA6 IiXN+o6+9iVvS/IglTS4+SfDcN5SeP6TQbQ1038EK809iHbUDRwNsAyiYzVnL0ixB9/k oQoP7kJeDD7RyYNj6COruw0zPZ5a1g//uJXsz0cX4Hr8MbJR4Vg/rjb8BL7SPBqPbTBm FHCg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=quirin.gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id p23si131032wma.1.2020.02.24.21.43.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Feb 2020 21:43:56 -0800 (PST) Received-SPF: pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=quirin.gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id 01P5huAj010277 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 25 Feb 2020 06:43:56 +0100 Received: from [139.22.34.136] ([139.22.34.136]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 01P5htFb013616; Tue, 25 Feb 2020 06:43:55 +0100 Subject: Re: [RFC 0/2] Remove Packages during Postprocessing To: Henning Schild Cc: isar-users@googlegroups.com, jan.kiszka@siemens.com References: <20200221145348.24250-1-Quirin.Gylstorff@siemens.com> <20200224152416.2aab3ec9@md1za8fc.ad001.siemens.net> From: Gylstorff Quirin Message-ID: Date: Tue, 25 Feb 2020 06:43:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200224152416.2aab3ec9@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: IwcE4DdQTQ8s On 2/24/20 3:24 PM, Henning Schild wrote: > Hi, > > my opinion on that is clear. Fix it upstream or live with those > packages. You are either on a distro or fiddle around and tune > everything until you are the only one on the planet testing your setup. > That is Isar vs. yocto ... whoever thinks they _need_ that should maybe > think again. If they need it they can put it into their own layer or > use yocto ;). > I do not think upstream should carry such hacky features unless we get > better reasoning ... Removing "required" packages has the potential to > break your image in funny ways ... that is much more expensive than a > few MB disc space. All affected packages are likely already cleared and > vulnerabilty monitored by someone else, find that someone and share the > cost! > > Henning Hi Henning, I understand your concern and I think you are right. But some people already hack the build process in similar ways and this is a way to give them some support. I want to collect the option of community regarding this patch. Quirin > > On Fri, 21 Feb 2020 15:53:46 +0100 > "Q. Gylstorff" wrote: > >> From: Quirin Gylstorff >> >> Some packages even if the are part of minbase are not necessary >> to run a debian system. Debian has some issues and experiments >> to remove packages from minbase [1]. This feature allows a >> expert user to remove packages from the final image during post >> processing. >> >> The reason for this are e.g. disk usage reduction and reduction >> of the clearing effort. >> >> The method to remove packages in postprocessing is a best-effort >> action. >> >> Another way would be to identify like [1] packages in >> minbase which can be removed without compremising the isar rootfs >> creation and remove them directly after or during bootstrapping. >> If a package is used for a production related feature it should be >> reinstalled. >> >> >> [1]: https://wiki.debian.org/BusterPriorityRequalification >> >> Quirin Gylstorff (2): >> meta/classes: Add remove packages to rootfs postprocessing >> meta-isar/images: Remove gcc-8-base from rootfs >> >> meta-isar/recipes-core/images/isar-image-base.bb | 4 ++++ >> meta/classes/image.bbclass | 2 +- >> meta/classes/rootfs.bbclass | 13 +++++++++++++ >> 3 files changed, 18 insertions(+), 1 deletion(-) >> > -- Quirin Gylstorff Siemens AG Corporate Technology Research in Digitalization and Automation Smart Embedded Systems CT RDA IOT SES-DE Otto-Hahn-Ring 6 81739 Muenchen, Germany Mobile: +49 173 3746683 mailto:quirin.gylstorff@siemens.com www.siemens.com/ingenuityforlife Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Jim Hagemann Snabe; Managing Board: Joe Kaeser, Chairman, President and Chief Executive Officer; Roland Busch, Lisa Davis, Klaus Helmrich, Cedrik Neike, Michael Sen, Ralf P. Thomas; Registered offices: Berlin and Munich, Germany; Commercial registries: Berlin Charlottenburg, HRB 12300, Munich, HRB 6684; WEEE-Reg.-No. DE 23691322 Important notice: This e-mail and any attachment thereof contain corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank you.