Message ID | 20210312195843.96000-3-silvano.cirujano-cuesta@siemens.com |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <isar-users+bncBCD6JJ6CQQFRB54PV6BAMGQEIE2DCIY@googlegroups.com> Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:c583:0:0:0:0:0 with SMTP id x3csp1554995oop; Fri, 12 Mar 2021 11:58:47 -0800 (PST) X-Received: by 2002:a05:6512:3996:: with SMTP id j22mr473165lfu.515.1615579127657; Fri, 12 Mar 2021 11:58:47 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1615579127; cv=pass; d=google.com; s=arc-20160816; b=ysP/etIwv/rLS5sxJTIx2tboZO1t1a6y4FcvCPglOJT+drqPkJGYz6pYd0sVxXsXux HNpfBGIWNFMTDvJeDeY3rVuewtGa9JYjtJY2mH7aPgEuMru2ZyBZNJecbi+a6DHPboED hBllTCRXSFhsBFA2y6R2RydW2nnQbno9xzJgACfSGHzyMJEQCEou28oUQNdt6WJUnGr+ 1vub1l1XaKErysA4SIRbAu52QZeN2NHSTqxpAv9F5DcrhYhDUXphf04MRQU0vg5VASB4 HZWsyPN8qhRRCQHKCV9H2T0D8qCKwko3z2APCh9hXiiJJ1oWF5YxX/u9stl1SjUZV+AG LfLA== 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:sender:dkim-signature; bh=JOhnlX3SDUYS/d9WQitOfB3JlUiX5/ZHnitNBafQzPw=; b=jIE2n2KQOa0okqqVpmXUOFuwb04xzVfsOGAA1CJX4UuW7DOl2D8Nmm4roAzJGmDyZL 2CENaQtvfb5KhQL63DozBYilvr8NsJf+J1pIZivHDD4KkdFrgk3IsIDZPQdIsP34yUB7 p91i9S+LZbB1FEPefgYTPpFGWHUYvTC42bJ6zkoISHaq2YbgClNZWZTrcdsa1lgyJMx6 1jnKnk+nbUWChrneDd0Lg+EiNI50pHJKFZNYXIDIGWPVUK8dlja8w37aPQ9BwcSzGwEv 76fV8ec0pHFteCghbmljnOXsy2x9uR3W6zSU1BfBowQrmib5fYPkJCDKSR+nFXCwf8ho qxTQ== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=cpILyjAW; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbcd6jj6cqqfrb54pv6bamgqeie2dciy@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCD6JJ6CQQFRB54PV6BAMGQEIE2DCIY@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com Received: from mail-sor-f55.google.com (mail-sor-f55.google.com. [209.85.220.55]) by mx.google.com with SMTPS id r19sor1823241lfi.185.2021.03.12.11.58.47 (Google Transport Security); Fri, 12 Mar 2021 11:58:47 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbcd6jj6cqqfrb54pv6bamgqeie2dciy@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=cpILyjAW; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbcd6jj6cqqfrb54pv6bamgqeie2dciy@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCD6JJ6CQQFRB54PV6BAMGQEIE2DCIY@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com ARC-Seal: i=2; a=rsa-sha256; t=1615579127; cv=pass; d=google.com; s=arc-20160816; b=F8xqmEcvbRFfqsve8ehJBsVYwJa9z084tMmjxQcbGfCTfHHieUNbrDqCIIhSizn8xG thDt+1elHn0yfxNPOJwrIBFdrHH4q5S7K0SvdpHu2pn+rJITuOJc0sENcGQSpFmLiE4K ncwgOkjRArTuKf0FiRETrJwx0WbKj29i2WX+PZqK+AqJIAwn9kttcAOOHv08E74Kb88d iujW6nn5WRMltkVCcaLUgBjoc+pL+n9eGJeysc3RxLsfoJfpRsvMGg+lrXl++l3dNXtv 1GVrfYHq+8fF9Y+Tyaf4JQEd5TkyPMSLXSlrIz+4YQSFC7/M9t8PWLOIl3dOFXHbqJ6i xQvQ== 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:sender:dkim-signature; bh=JOhnlX3SDUYS/d9WQitOfB3JlUiX5/ZHnitNBafQzPw=; b=I1ggtZLDP6Y2iKCuzkFoMge/AaKa3wt4UOfUgaowHqhO3mVx2JN4aELJ/KNgyagVHA lrI9y1v11S00tRNlDbfU73Aktkr84SMDyRK4dlzNJzKH47A413TeGiVv22brG2Jk7zMZ uvIvi3u/EbrHxpySdPBqLBFGLKwDqPwtqB68xYqYDhXRe1P7E+oHPNwjwEd0nCTEYFF0 eRdizwv1tflQQI4bX/daInbIRtnhPrIX+C3oGn3xDXmh3VFUjFICCXKDrRITpOtJQtx2 //kQP/JIT87i/Pev+BYliyWpm9sYijp+Sc82AV17Uez25v+bISqw1W3TmcA01roagViJ wSCQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of silvano.cirujano-cuesta@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=silvano.cirujano-cuesta@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender: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=JOhnlX3SDUYS/d9WQitOfB3JlUiX5/ZHnitNBafQzPw=; b=cpILyjAWdJYzdd7ic8GiPsg9SK45bt8KC7LV+WUf69PWe9CJs1Ag6zkuk8Vs7+G7jU YeyKerwG8ujqICshQYEYRKiRrQsYoUYPwVrcVfgyxpHsMe4fuGcMMPdhoUtyzqVsA+ym 22OIKv879+PW4erJ83JNT7IszvlP/BtXcWf9V/OwdufzT/SwRZ83z1GJWJeZyTUXnC0f nC0ZJeSvfWtj0qiIfzfc1yktFnJBOgcX767QueOZvQYGd1VyCoZo/Jx3sAPzTdqLZkrr x+6cwWp9XPh2jwwfmspVX7Pa4kwpcFqRkol7MmTKddWRTqohFZjAgdrAAqii1zw3rVrJ JaWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state: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=JOhnlX3SDUYS/d9WQitOfB3JlUiX5/ZHnitNBafQzPw=; b=kr2XR9Vcth0V6FebT6MRkoJC8CUFT0slB07HY7Om5kNVgQ5TXTLpsep4sfeTmPcHC8 JyVBqUEEYCNH6qqXq/B1Ks0tm8/Jcmhtc66FI6CK8TuBqqJSD4RNNh4HbCZZCHrq7Jj0 On1mhAL2kk64cFpXwa3BOGIc8B5qrvuwbslO0wGy/2j+VLXy5gKHCaaRuhmiBAvPnzul SWYnXXnc9to/b0jF0NDzw6XgpHih21FHbveb3MQDqmaAB5bErtehDIMon/3DTnomzVdr p4AOs4KkZguV5YsTFy32zRAlrFWMz56Ri0QP82s2PJBFBLMtl85tHaCHI8P1VR0OqFhe gWAw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM533wEfBnmbdiBHPBesGHgWgOYxR+tMLLAfDLAt1+us7MgcN2TQj+ i53gBYoY/zBc2/zNV4D8Cas= X-Google-Smtp-Source: ABdhPJz5/foIPCvgAcIV8KI3qY40X/L7jqYfi1uRVTataxeQOgkLTTrUoWeHLO6Xmfhl6eG7bm1UCA== X-Received: by 2002:a05:6512:388f:: with SMTP id n15mr520360lft.8.1615579127349; Fri, 12 Mar 2021 11:58:47 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:ac46:: with SMTP id r6ls4261329lfc.2.gmail; Fri, 12 Mar 2021 11:58:46 -0800 (PST) X-Received: by 2002:a19:ee13:: with SMTP id g19mr478476lfb.657.1615579126457; Fri, 12 Mar 2021 11:58:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615579126; cv=none; d=google.com; s=arc-20160816; b=Pw2MKsMQtabo+oXAsmCeRuYPMK4zuz9g4kqXqKK6JH/4+H0Cuur+LidCpxtx2PTe78 zfKUI7S0hBRog3zymIxFqfhTYX5MgFdOXyZloPhd/eE9bWFbQOiGyTbceUZp9Odavz4e wRkVaKBREgGzgG8a6O0YOfpxSo+KmGYf8becNX3HSlvYS/lcVE8bcdK1EJqz/1v0MUAM zevtHaYNmIVipQVqj2ngU3/+Bx4apOe0uDKlkwDlzQmq3SAdxnzH95jdBCjJl7hf2o9m 8DAisMHAWUx0DJw874q5gr4klVg/AiBNvqbdo1MpDqXRAbzy1iqNolub8YIntIG9V69A GNLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=lby9ldJxDdwF+z13oarV6vQb/7ujvZtT2G1hsr4l1T0=; b=k5AwHzN4JYXqGOfyIhKm6/PnDGgQebTmb6j2pjajSDGdqGRN5GkUQjBWO71sOBqVJA MHqsBtT6q8AqNxvykk/DxyzV4ATPv4PlgfmtGUaD9mlY435XqyHCAQHScuSPVCtE4TCV 4dZJmoVsuF8imgBZM6BeqiR1Ds+TqlmoO6ODAqC4qmZ+J7ZEQ3hW6pXMMQduiMGfNrXC V/miX/ssH4VW3BIO4OxjqKgNyDrUhfRQAnXSTXER5B36tHxq3ZHeAHCz1VTLHof9fKyI igjffOsL9KxVlCheKdwjJ5tXi4B3LxSopmGPXULniaozRO09ti15gpfktwxNjq39ZVIR jUQg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of silvano.cirujano-cuesta@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=silvano.cirujano-cuesta@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id o10si319136lfg.12.2021.03.12.11.58.46 for <isar-users@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Mar 2021 11:58:46 -0800 (PST) Received-SPF: pass (google.com: domain of silvano.cirujano-cuesta@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 12CJwjYX008567 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <isar-users@googlegroups.com>; Fri, 12 Mar 2021 20:58:45 +0100 Received: from md1sf36c.ad001.siemens.net ([167.87.3.106]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 12CJwiaO008930 for <isar-users@googlegroups.com>; Fri, 12 Mar 2021 20:58:45 +0100 From: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com> To: isar-users@googlegroups.com Subject: [PATCH v7 2/5] classes: add new image type 'container-img' Date: Fri, 12 Mar 2021 20:58:40 +0100 Message-Id: <20210312195843.96000-3-silvano.cirujano-cuesta@siemens.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312195843.96000-1-silvano.cirujano-cuesta@siemens.com> References: <20210312195843.96000-1-silvano.cirujano-cuesta@siemens.com> MIME-Version: 1.0 X-Original-Sender: silvano.cirujano-cuesta@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of silvano.cirujano-cuesta@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=silvano.cirujano-cuesta@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: <isar-users.googlegroups.com> X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: <https://groups.google.com/group/isar-users/post>, <mailto:isar-users@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:isar-users+help@googlegroups.com> List-Archive: <https://groups.google.com/group/isar-users List-Subscribe: <https://groups.google.com/group/isar-users/subscribe>, <mailto:isar-users+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+914930254986+unsubscribe@googlegroups.com>, <https://groups.google.com/group/isar-users/subscribe> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1694057499316568009?= X-GMAIL-MSGID: =?utf-8?q?1694057499316568009?= |
Series |
Add support for containerized root filesystems
|
expand
|
diff --git a/meta/classes/container-img.bbclass b/meta/classes/container-img.bbclass new file mode 100644 index 0000000..79ef3e8 --- /dev/null +++ b/meta/classes/container-img.bbclass @@ -0,0 +1,18 @@ +# This software is a part of ISAR. +# Copyright (C) Siemens AG, 2021 +# +# SPDX-License-Identifier: MIT +# +# This class provides the task 'containerize_rootfs' +# to create container images containing the target rootfs. + +do_container_image[stamp-extra-info] = "${DISTRO}-${MACHINE}" +do_container_image[vardeps] += "CONTAINER_FORMATS" +do_container_image(){ + rootfs_id="${DISTRO}-${DISTRO_ARCH}" + + bbdebug 1 "Generate container image in these formats: ${CONTAINER_FORMATS}" + containerize_rootfs "${IMAGE_ROOTFS}" "${rootfs_id}" "${CONTAINER_FORMATS}" +} + +addtask container_image before do_image after do_image_tools
Add a new "image" class for generating a container image containing the target root filesystem. Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com> --- meta/classes/container-img.bbclass | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meta/classes/container-img.bbclass