From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6558749580291211264 X-Received: by 2002:adf:ab57:: with SMTP id r23-v6mr630531wrc.13.1527151130264; Thu, 24 May 2018 01:38:50 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:39c1:: with SMTP id g184-v6ls3480412wma.9.canary-gmail; Thu, 24 May 2018 01:38:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr3TZqVAcD5lLxAkUDCIZlthsMqqRABNrzQN7OmGiG/NHbOvncHUSNNBSTTl21Mm4H/AkRT X-Received: by 2002:a1c:8702:: with SMTP id j2-v6mr898839wmd.1.1527151129810; Thu, 24 May 2018 01:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527151129; cv=none; d=google.com; s=arc-20160816; b=SVFE5SxfsI/M+23ua1cyVpah/45Lfv2PDCz3fR0RcouQpCMhB1KBzJxh4w3V2nFWiW pba1bKnztuBBPBfFUPOFoFf2XxdEZE85bMCHv6Ef0txnP+ZlbeuDiUtPOg6iVAAUL9qy wMBNfyAf9d0tKU/fJIKy/d7KB/6KcTKaulu3SwWJNMlBVgc+BGxhRwo0XO2VIvNNxEca 2YpMsGiVhvl9eI1flNCNu8Es7LjPJh5WJnGWt+gqH9lCEl4Z32WZpuHXsRFdZ0za836X lpGlUXuePWpxzxJ9qCxrsHcnP1paAMdq2WJuj0RrstLIJMrnuZ1PlhX2hR3Ueh+kGSFm QUOQ== 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 :arc-authentication-results; bh=CeU52cS8TqVeAiQ+8GeNbcflNIbB8seDxC1Br/RLw/0=; b=aAdHqaCuggJ3B+vEmUPLefWMDzXTfXqM4/MFSXS2WV8G297EYoJBnUYrbLM9f/5ec3 NK4EZhIk8dWAKvDmCB360bxvFcvGPgpfoh+swsQcigUMbrrU0D1gwDBHxwQPCwHu34XT QbCSY30c4zVVgA7UzsJuEKJWWxuUgH5xirZn0QdQ8u43vzvnObR/FhKk2nj9zLUj7L3j xHT6lYZ3xDNxyXfNQFzCUnGNZ9vDyyKt+zJWp5UH5Ui4CYgTz+Y/7UvRBiGbqNVO7sQ9 1Xl2k4cbu73sOn8HEMSu8I5ZaxRgNKuim8Hko4BBHq/rU8SEHyQE3/KNSehdMvvhIRP+ /skQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id z83-v6si142459wmc.0.2018.05.24.01.38.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 01:38:49 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id w4O8cmFf017535 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 May 2018 10:38:48 +0200 Received: from [139.25.69.69] (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w4O8cmVE007958; Thu, 24 May 2018 10:38:48 +0200 Subject: Re: [PATCH v2 0/3] One-shot configuration packages To: Henning Schild Cc: isar-users@googlegroups.com, Claudius Heine References: <20180523131248.31907-1-claudius.heine.ext@siemens.com> <20180523160327.714453e7@md1pvb1c.ad001.siemens.net> From: Claudius Heine Message-ID: Date: Thu, 24 May 2018 10:38:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180523160327.714453e7@md1pvb1c.ad001.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: KFMeW+tle8uV Hi Henning, On 2018-05-23 16:03, Henning Schild wrote: > Nice patchset. It follows the "everything that enters the rootfs should > come from a package" approach. And it introduced a nice hack to execute > scripts in the "last package", switching from the chrootable folder to > the image. > Things like removing qemu, resolv.conf etc could also be done in such a > "final" package postrm. I initially liked the idea about removing qemu with a package, but I don't think that is possible. After removal of this binary no commands can be executed in the chroot environment, and we still need to purge the package and cleanup the dependencies/cache etc. AFAIK it needs to be done from outside. For removal of for hostname and resolv.conf I am not so sure. IMO that should be done before any custom package is installed. This way the deployment of those files can be done by any package and those files are managed by dpkg. I currently cannot think of anything that should/could be installed/executed/removed this way apart from localepurge. But there might be more administrative tasks that could be done this way. I thought about moving the locale config outside the isar-cfg-localepurge package, but since I don't actually deploy any locale config files, and just modify the debconf + reconfigure the locales package its ok here IMO. And it might be useful to have the whole locales configuration in one place. Claudius > > Henning > > Am Wed, 23 May 2018 15:12:45 +0200 > schrieb "[ext] claudius.heine.ext@siemens.com" > : > >> From: Claudius Heine >> >> Hi, >> >> here is the rebased patchset that removes the issue with the global >> localepurge configuration as well. >> >> Claudius >> >> Changes from v1: >> - rebased to current next >> - removed locale.nopurge setup in isar-bootstrap >> >> Claudius Heine (3): >> isar-bootstrap|configscript: implement one shot config option >> meta/isar-cfg-localepurge: added locale purge recipe >> meta-isar/isar-image-base: switch use isar-cfg-localepurge >> >> .../images/files/debian-configscript.sh | 9 ------ >> .../images/files/raspbian-configscript.sh | 8 ----- >> .../recipes-core/images/isar-image-base.bb | 6 ++-- >> meta/classes/isar-bootstrap-helper.bbclass | 23 +++++++++++--- >> .../isar-bootstrap/files/locale.nopurge | 10 ------- >> .../isar-bootstrap/isar-bootstrap.bb | 4 +-- >> .../isar-cfg-localepurge/files/locale.debconf | 12 ++++++++ >> .../isar-cfg-localepurge/files/locale.gen | 1 + >> .../isar-cfg-localepurge/files/postinst | 30 >> +++++++++++++++++++ .../isar-cfg-localepurge.bb | >> 19 ++++++++++++ 10 files changed, 85 insertions(+), 37 deletions(-) >> delete mode 100644 >> meta/recipes-core/isar-bootstrap/files/locale.nopurge create mode >> 100644 meta/recipes-support/isar-cfg-localepurge/files/locale.debconf >> create mode 100644 >> meta/recipes-support/isar-cfg-localepurge/files/locale.gen create >> mode 100644 meta/recipes-support/isar-cfg-localepurge/files/postinst >> create mode 100644 >> meta/recipes-support/isar-cfg-localepurge/isar-cfg-localepurge.bb >> > -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de