From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6691586504498610176 X-Received: by 2002:a2e:4246:: with SMTP id p67mr11993969lja.44.1558021766261; Thu, 16 May 2019 08:49:26 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:9e89:: with SMTP id h131ls629892lfe.10.gmail; Thu, 16 May 2019 08:49:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwL1GZpqci7M4JzpxEmB2YVvq7i6fwkCKX/788cyhkL9iWkiWfvx/IV9MNeP9eTZbgFDb1I X-Received: by 2002:ac2:4479:: with SMTP id y25mr24370668lfl.95.1558021765747; Thu, 16 May 2019 08:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558021765; cv=none; d=google.com; s=arc-20160816; b=cwCtCfAENfwPfJ8lm5kYwZ41r8Ei+tuGjg1YynLnDmUiW35xsqUPqwOaoaQyTCKmcL Ha8qlPzQcVt00NSnYlPJwV31TVr8ZeFiSpTTSYBOPtrBO0tiTF9Ab6vUXxhx6Wc6NT3s P4FOcTUf3Sl3HmI6pUUbwhY5eDTQ3mUpn1d1G4eDdhbn9pVpdKfCWZ7NrFlmwktpL5p8 9UnQ3lPpJIWbNq858Z0h2ia0TwmZ+oCJ4RVq4Hw9JNxifSuT4fbkJAYfMABgCqpdNdBU epHfu8WcCuXgLmDTHbJKxCNn8nQrIPGHTDHrQ4mXRgtc6kmFWPYAXe1lsIvlEs5edtf0 1JwA== 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:organization:from:references:cc:to :subject; bh=hPsJYl0zjltO+cw1VkbhEMEN2RtNXv2N4EMG9Q97ES4=; b=FAAP5V2Di5WjH8tGUAqdxsdgU19VZytS5BpFK6PocwBa6GMaOgF4fvvsBTG29DBBVl 3sJYtS3tIWAtLqguFUGHqD8W3PA7g92g1iR7Zl6CY4vgrK8rFCm3wmvT6XmMRmYvd46i pFCYUV0jio/1+2xpcLb8PUbgPXzAmZ2OUS681DB29TVejzHEFpjun5JMPV5HouJUw889 5dL/knqa9ESKJdvvI41L4PU97N/tddS+WAdPyrGSFmUOGXKT0fWMSrJW4Ta68WRQwwtD OVEEzBKoWmMaI9epJEojBr+YXKznSqZjRNcG6gTBAlbciMXm2vVy1rAcjmZK+1PtyO8B 9Grg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id c9si1123761lff.2.2019.05.16.08.49.25 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 May 2019 08:49:25 -0700 (PDT) Received-SPF: pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of mosipov@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.1.29] (115.165-131-109.adsl-dyn.isp.belgacom.be [109.131.165.115] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id x4GFnN5D010826 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 May 2019 17:49:23 +0200 Subject: Re: [PATCH v2 0/8] pre-processing pipeline and transient package replacement To: claudius.heine.ext@siemens.com, isar-users@googlegroups.com Cc: Claudius Heine References: <20190516113303.12184-1-claudius.heine.ext@siemens.com> From: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: Date: Thu, 16 May 2019 17:49:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190516113303.12184-1-claudius.heine.ext@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: v5bN2A/RJpaz Hi Claudius, Creation of local apt repo caching upstream debian packages doesn't work on with this patchset (my host PC is Debian 9). I've set ISAR_CROSS_COMPILE ?= "1" in local.conf and followed the procedure (without Signing of local repo) described: https://github.com/ilbers/isar/blob/next/doc/user_manual.md#creation-of-local-apt-repo-caching-upstream-debian-packages 1) bitbake -c cache_base_repo multiconfig:qemuarm-stretch:isar-image-base works OK. 2) Set `ISAR_USE_CACHED_BASE_REPO` in `conf/local.conf` and remove build artifacts to use only local base-apt sudo rm -rf tmp 3) Trigger again generation of image (now using local caching repo): bitbake multiconfig:qemuarm-stretch:isar-image-base fails (log is below): ================= NOTE: Executing RunQueue Tasks ERROR: mc:qemuarm-stretch:isar-image-base-debian-stretch-qemuarm do_rootfs_install: Function failed: rootfs_install_pkgs_download (log file is located at /home/myo/work/isar/src/trunk/isar/build/tmp/work/debian-stretch-armhf/isar-image-base-debian-stretch-qemuarm/temp/log.do_rootfs_install.11489) ERROR: Logfile of failure stored in: /home/myo/work/isar/src/trunk/isar/build/tmp/work/debian-stretch-armhf/isar-image-base-debian-stretch-qemuarm/temp/log.do_rootfs_install.11489 Log data follows: | DEBUG: Executing python function do_rootfs_install | DEBUG: Executing shell function root_cleandirs | DEBUG: Shell function root_cleandirs finished | DEBUG: Executing shell function rootfs_prepare | DEBUG: Shell function rootfs_prepare finished | DEBUG: Executing shell function rootfs_configure_isar_apt | DEBUG: Shell function rootfs_configure_isar_apt finished | DEBUG: Executing shell function image_configure_accounts | Execute groupadd with "--system" for "isar" | Do not execute usermod (no changes). | Execute useradd with "--gid isar --comment My isar user --home-dir /var/lib/isar --system --create-home" for "isar" | DEBUG: Shell function image_configure_accounts finished | DEBUG: Executing shell function image_configure_fstab | # Begin /etc/fstab | /dev/root / auto defaults 0 0 | proc /proc proc nosuid,noexec,nodev 0 0 | sysfs /sys sysfs nosuid,noexec,nodev 0 0 | devpts /dev/pts devpts gid=5,mode=620 0 0 | tmpfs /run tmpfs defaults 0 0 | devtmpfs /dev devtmpfs mode=0755,nosuid 0 0 | | # End /etc/fstab | DEBUG: Shell function image_configure_fstab finished | DEBUG: Executing shell function rootfs_do_mounts | DEBUG: Shell function rootfs_do_mounts finished | DEBUG: Executing shell function rootfs_install_pkgs_update | Get:1 file:/isar-apt isar InRelease | Ign:1 file:/isar-apt isar InRelease | Get:2 file:/isar-apt isar Release [3569 B] | Get:2 file:/isar-apt isar Release [3569 B] | Get:3 file:/isar-apt isar Release.gpg | Ign:3 file:/isar-apt isar Release.gpg | Get:4 file:/isar-apt isar/main armhf Packages [1666 B] | Reading package lists... | DEBUG: Shell function rootfs_install_pkgs_update finished | DEBUG: Executing shell function rootfs_install_resolvconf | DEBUG: Shell function rootfs_install_resolvconf finished | DEBUG: Executing shell function rootfs_install_pkgs_download | Reading package lists... | Building dependency tree... | Package linux-image-armmp is not available, but is referred to by another package. | This may mean that the package is missing, has been obsoleted, or | is only available from another source | | E: Unable to locate package init | E: Package 'linux-image-armmp' has no installation candidate | WARNING: exit code 100 from a shell command. | DEBUG: Python function do_rootfs_install finished | ERROR: Function failed: rootfs_install_pkgs_download (log file is located at /home/myo/work/isar/src/trunk/isar/build/tmp/work/debian-stretch-armhf/isar-image-base-debian-stretch-qemuarm/temp/log.do_rootfs_install.11489) ERROR: Task (multiconfig:qemuarm-stretch:/home/myo/work/isar/src/trunk/isar/meta-isar/recipes-core/images/isar-image-base.bb:do_rootfs_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 83 tasks of which 0 didn't need to be rerun and 1 failed. Summary: 1 task failed: multiconfig:qemuarm-stretch:/home/myo/work/isar/src/trunk/isar/meta-isar/recipes-core/images/isar-image-base.bb:do_rootfs_install Summary: There was 1 ERROR message shown, returning a non-zero exit code. =================== Regards, Maxim. On 5/16/19 1:32 PM, claudius.heine.ext@siemens.com wrote: > From: Claudius Heine > > Hi, > > here is the new rebased version of that patchset, now that the rootfs cleanup > patchset was merged. > > I tested the fast build: > http://isar-build.org:8080/job/isar_claudius_ilbers_fast_ci/21/ > > and the slow build: > http://isar-build.org:8080/job/isar_claudius_ilbers-ci/62/ > > The fast build finished successfully already and the slow build currently is > looking like its going to finish that way as well. > > regards, > Claudius > > changes from v1: > - rebased to current next > - added some more documentation > > Claudius Heine (8): > split up isar-bootstrap helper and implement pre-process pipeline > meta: remove transient package support > meta/classes: add image-locales-extension class > meta/classes: add image-account-extension class > doc: update description of image customization > doc: some fixes > meta-isar: local.conf.sample: update root password and isar user > creation > RECIPE-API-CHANGELOG: update transient package removal + root password > > RECIPE-API-CHANGELOG.md | 22 ++ > doc/user_manual.md | 53 +++- > meta-isar/conf/local.conf.sample | 12 +- > .../recipes-app/example-raw/files/postinst | 13 - > meta/classes/image-account-extension.bbclass | 257 ++++++++++++++++++ > meta/classes/image-locales-extension.bbclass | 97 +++++++ > meta/classes/image.bbclass | 30 +- > meta/classes/isar-bootstrap-helper.bbclass | 143 ---------- > meta/classes/rootfs.bbclass | 176 +++++++++++- > .../isar-bootstrap/isar-bootstrap.inc | 5 + > .../buildchroot/buildchroot-host.bb | 16 +- > .../buildchroot/buildchroot-target.bb | 2 - > .../buildchroot/buildchroot.inc | 26 +- > meta/recipes-devtools/sdkchroot/sdkchroot.bb | 48 ++-- > .../isar-cfg-localepurge/files/postinst | 15 - > .../isar-cfg-localepurge.bb | 70 ----- > .../isar-cfg-rootpw/files/postinst.tmpl | 19 -- > .../isar-cfg-rootpw/isar-cfg-rootpw.bb | 19 -- > 18 files changed, 663 insertions(+), 360 deletions(-) > create mode 100644 meta/classes/image-account-extension.bbclass > create mode 100644 meta/classes/image-locales-extension.bbclass > delete mode 100644 meta/classes/isar-bootstrap-helper.bbclass > delete mode 100644 meta/recipes-support/isar-cfg-localepurge/files/postinst > delete mode 100644 meta/recipes-support/isar-cfg-localepurge/isar-cfg-localepurge.bb > delete mode 100644 meta/recipes-support/isar-cfg-rootpw/files/postinst.tmpl > delete mode 100644 meta/recipes-support/isar-cfg-rootpw/isar-cfg-rootpw.bb > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov