From patchwork Fri Feb 5 00:52:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 300 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:3788:0:0:0:0:0 with SMTP id r130csp2092944oor; Fri, 5 Feb 2021 02:52:38 -0800 (PST) X-Received: by 2002:ac2:58d3:: with SMTP id u19mr2241727lfo.159.1612522358445; Fri, 05 Feb 2021 02:52:38 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1612522358; cv=pass; d=google.com; s=arc-20160816; b=E6VmPqQkQwo6xDXbli4LQpxiKTZeNBfVSA5QhC8oyZQMMrZThlN7NqsqXPdaDkersB 349DJUYCnUSp4Zv3+9NnEjErF5p3g7rYqNN2SwR9CXvi1PplgvbkjG4NI57PEf9d3CaP yaKM2I/OJ+Mo5Cb/8x50w3GHRgmz7I30/8FlHQpFahc/Wzpnw1n/so6EpSV2L/V++2Kl vwbnZBVpf4TdgojFrpz071wu3Y8LSTMxqJFmTf5mmbc+GM064Ekj/DebaNpg956dRl9t 4gn15ClCjY74yqh9zDnYNQPp31HgmUXCHP2flH4HcdkGnKJf5gzTEhu9doc62mByR6nr aTkQ== 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:cc:to:from:sender:dkim-signature; bh=RQA0QzRT7j9f50+GQmEWEItL3mY1AYoub7nmUEfQwDI=; b=Zy9LuKbebVKCjQ9lxjm8R/iKqhZ5KXpSZT/cFbv7Q6LxnBZ0ZhhuWdaljBBbUKDGa9 hMpxUbjYU9+3hr12gH8VEWsgUH+F7M25Zp9KWp0GKuEkgaTkvVc5m+y5m9WK9HsTmm/l Z970dtWLcjd0V6rw/ORNp+sNOThNmwbmsngx4yE4D1MtNcpknyCSS9+ecQ41rwPXbwJL 286WZdXagugZG6gCbrnAVszdSe46Za4r413AZwkkVl8vWbEKsGBsonZyyiqBbEQHI1F5 1d42NO6vU+XMFDy+Tl3UHe0j5CsMYROF1E3mWn2PXJLdH+buLLtJT0prcazTysmM/CNc qb4A== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=CKCThrAs; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbctzztvx2qcrb5og6saamgqea4ufk7q@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCTZZTVX2QCRB5OG6SAAMGQEA4UFK7Q@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 h1sor4012535ljj.35.2021.02.05.02.52.38 (Google Transport Security); Fri, 05 Feb 2021 02:52:38 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbctzztvx2qcrb5og6saamgqea4ufk7q@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=CKCThrAs; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbctzztvx2qcrb5og6saamgqea4ufk7q@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCTZZTVX2QCRB5OG6SAAMGQEA4UFK7Q@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com ARC-Seal: i=2; a=rsa-sha256; t=1612522358; cv=pass; d=google.com; s=arc-20160816; b=bhoovrh4/N8+/c9E9eP0f3Z5i1ma/e8p5PxoYBzvqvPJ8ucir1BQlCIyVQT5NJIado 5Rf3R+iF81fH1otrzK0v91mJLaTw08Yn++mRD5WX5giijcC6nQ9qKNNXleUIzWgetw6Z xn4pBXLmqjSQZAtlEe/dDvOUUG3RjN4JXWiPWU8ar1lXHQrHVzduz4Pdq9kb4Fz7R/cb Lp2cAsIED2rZQeEvQ85Iwi+cn+ToJr5nzFTqlvZaNo5IqlxYdQeGa56KdGCRXUaMh7Qg RBmcMRuT553VS6WmNEwHjdDPzE8IVwdHiyIQ5ABXERRD4sb5FOJZd2bzalduFUDHAt7w /77A== 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:cc:to:from:sender:dkim-signature; bh=RQA0QzRT7j9f50+GQmEWEItL3mY1AYoub7nmUEfQwDI=; b=O195RK53DZc9jqusjn/yTEjhYeCmtBh2SVbWJ2olvY/SocvourgPRq+079xoq3vBrF /NYDm0TSdwapC9Nl7QTjLqRw07SMpSesykG183LbyAbXTBTrx0wSjHx8PB5EKfnFpvS2 biVN56RTy7pIB94p1Ik88WM/t1Id33fDNfPip4Pk1SVPkyxUSgMdbE1qQo9/pDjlXI3g x1RzEw1Avkg/TDDy+Vg8SgcRqLaqKDuEohNxqbVRECAvW8H3GLuZzWor4g1j7TNLvrrc nQpucTXsNTfhj001Tjs/dm+DF1C2XfYQcJaZ+Rwj+qbctWG/u7nNSvHey+uHqutX+FB5 pW+Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=Quirin.Gylstorff@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:cc: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=RQA0QzRT7j9f50+GQmEWEItL3mY1AYoub7nmUEfQwDI=; b=CKCThrAse8cEPFM78TVo2cUUoOF+PNGb9wC0faETy+OAm0E10cne3zUH8wPj1/FEEo pVXy7t+iMo2CpMoqxWUYyXI7seb1PnUJNjygJhUMp1cgzfkAeoyAS3/6T7P2mWgAVcGn tUXiZTYWGkqhJF85QauZrSROBDVn+zyRMsQ66GsIgWygH+7Zx05ytHAooWMfbPJv8ZAI MzmzDoDoI8TF614LCe7vcMYNvOixNlwz+yKn4Pu7Uyarv5M6AHMp8V5z5I7An6AZaABU dtfH4+91WTLaTHlw/rfzO3Cq6a13u1gON2+F190wsTn53H/AA7HnegkP7df5E51mkkBf ePmQ== 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:cc: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=RQA0QzRT7j9f50+GQmEWEItL3mY1AYoub7nmUEfQwDI=; b=MSA83QhU9rqFAtYRZSekSBtOuGb7G53Z2eUfy0VibGM71rmMpTPo5r4n/mCniwuwwc cvbKlydtuJ7G1oxppcgKokJc5GPgLciRwavokbytn2/kIsy9P+Xq75XsWi7CYw7k4e/F EYjtRrf7yEpprhMH61ugz6/lBsif/eHQNvkg3gpiompjHlGihSDsNDtqmi+vM8h5/8T4 hU3v2QGJbpL1WvBKprr/sL51uXAZzOOjiY+j7jYAq+lXiPO1Up0ezsLpd/QsUBZepc3Q EPNOWIHzWyglgJEdd+FNdm3Ksow2H4MSeGSQoqEg4MoTH4ST7NNOmhlwqv6p7be+Nr2+ Vjtw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM530C+lyl61gmei6C2ucEP6VGcwtHBPK/+biZqfPFrhXZZNJzl7sN rbf42bsqIlSmfiW9I/tPAv0= X-Google-Smtp-Source: ABdhPJyF99z2M8s7vV2oUURs6wUmmFo7MUwQHXoLgwNbndH5/YkfPTZm2QUb7oktPcgYsWJejxcsgg== X-Received: by 2002:a2e:541b:: with SMTP id i27mr2291188ljb.331.1612522357877; Fri, 05 Feb 2021 02:52:37 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:8e77:: with SMTP id t23ls1595960ljk.0.gmail; Fri, 05 Feb 2021 02:52:36 -0800 (PST) X-Received: by 2002:a2e:6f05:: with SMTP id k5mr2279215ljc.400.1612522356892; Fri, 05 Feb 2021 02:52:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612522356; cv=none; d=google.com; s=arc-20160816; b=wUTQc6vxJ4uGOs9DKdI0wVrYwhR/tEV18/DRFchuiut6NPc3AytD3CrLY5c+wfp15t +bdnb6i+YMxzisIw57S7NrLdeoGB92iub9ekM1D38UF0FuPThdS47twVexwl+bIHpJ5k lnNqCI/BZhIv8jWqqxE2eV1CJMCk5L1w5yZtoJDot+4QO82QSW2gA+X48tEFXOkm2tvv QMQ/IU9ZNBvaJt4uNjJmvt5wNWVumcC04PxeK0fR9dl1iQpbRTHkbMY3W/hiG+Pl4ByF yqQ3guUSeDhewpWlUzuqt96evl3lqdSBUYMEogRTfaTK8fA1yADZXDzFWNE2FULa6AMi xQrQ== 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:cc:to:from; bh=zcgKhXfE5pgcNbo8vqUdC7OWHMxRgBq+XyMeIdPwhpk=; b=V/2rb3KYuRcgBX3ovndVgemrxHEUnc6cm6eoX6SqUaLH6vdimbDG9GUR1Q1ETIWoQG k3MTP8eL85L+KSty5MSQ9d88dosZBFNZCFWYZuG6JoD23CjxHtfcYy8SZohvhMuROOn8 KUiRLagyyIzr33EfqXrIAhR5RThzO/e6A7L1JYxEv7ljFCZjXBHiAWl3fFARtxfhngq2 fE9Gdz55mlLAWjyLBsEGqKcAVuRDK3QTp1NuDBFtUQJY5ppj8FIMkYG81xDlNx4pdQgm 3Gf98Oxhqxtv8Jp7EbGKLQbF5AmlUZjN7Txqzpy+LQd6bKkzE++sSkA8ZTUmpzfHwp+d 8atQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=Quirin.Gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from lizzard.sbs.de (lizzard.sbs.de. [194.138.37.39]) by gmr-mx.google.com with ESMTPS id l186si435941lfd.13.2021.02.05.02.52.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Feb 2021 02:52:36 -0800 (PST) Received-SPF: pass (google.com: domain of quirin.gylstorff@siemens.com designates 194.138.37.39 as permitted sender) client-ip=194.138.37.39; Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 115AqaZW027945 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 5 Feb 2021 11:52:36 +0100 Received: from md2dvrtc.fritz.box ([167.87.55.90]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 115AqZQI029686; Fri, 5 Feb 2021 11:52:35 +0100 From: "Q. Gylstorff" To: Jan.Kiszka@siemens.com, isar-users@googlegroups.com Cc: Quirin Gylstorff Subject: [PATCH v7 0/2] CPIO & OVA Images Date: Fri, 5 Feb 2021 11:52:33 +0100 Message-Id: <20210205105235.29169-1-Quirin.Gylstorff@siemens.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200423094636.24511-2-Quirin.Gylstorff@siemens.com> References: <20200423094636.24511-2-Quirin.Gylstorff@siemens.com> MIME-Version: 1.0 X-Original-Sender: quirin.gylstorff@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 194.138.37.39 as permitted sender) smtp.mailfrom=Quirin.Gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.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?1690852244883840787?= X-GMAIL-MSGID: =?utf-8?q?1690852244883840787?= From: Quirin Gylstorff - Generate cpio images for rescue images - generate ova images for VMWare & Virtualbox Changes V2: - initramfs modification is now a package - ova-wic-img was renamed to virtual-machine-image - virtual-machine-image do_convert_wic supports now other image formats - Add tests - cpiogz now use chown instead of userspec Changes V3: - Add tests to build-ci - add postrm to initramfs-config - use sdimage-efi for virtualbox images - changed maintainer Changes V4: - use templates from debhelper for postinst and postrm scripts Changes V5: - add virtual-machine-template package to add the template as extra file to the build Changes V6: - whitespace fix - initramfs-config is now a inc file instead of a recipe - meta isar contains a default implementation of intramfs-config Changes V7: - drop initramfs-config in favour of https://groups.google.com/g/isar-users/c/47EZAUTclZs/m/npCfE6zqCwAJ - clarify OVA commit message - rebase on origin/next f5a6fdfd9aad49202093aab2158f625429eaf7c5 Quirin Gylstorff (2): meta/classes: Generate ova image for vmware or virtualbox meta/classes: add cpiogz-img doc/user_manual.md | 1 + meta-isar/conf/machine/virtualbox.conf | 16 ++ meta-isar/conf/machine/vmware.conf | 16 ++ .../multiconfig/qemuamd64-buster-cpiogz.conf | 9 + .../multiconfig/virtualbox-ova-buster.conf | 8 + meta/classes/cpiogz-img.bbclass | 20 +++ meta/classes/virtual-machine-image.bbclass | 92 +++++++++++ .../files/virtual-machine-template.ovf.tmpl | 155 ++++++++++++++++++ .../virtual-machine-template_0.1.bb | 17 ++ scripts/ci_build.sh | 5 +- 10 files changed, 338 insertions(+), 1 deletion(-) create mode 100644 meta-isar/conf/machine/virtualbox.conf create mode 100644 meta-isar/conf/machine/vmware.conf create mode 100644 meta-isar/conf/multiconfig/qemuamd64-buster-cpiogz.conf create mode 100644 meta-isar/conf/multiconfig/virtualbox-ova-buster.conf create mode 100644 meta/classes/cpiogz-img.bbclass create mode 100644 meta/classes/virtual-machine-image.bbclass create mode 100644 meta/recipes-devtools/virtual-machine-template/files/virtual-machine-template.ovf.tmpl create mode 100644 meta/recipes-devtools/virtual-machine-template/virtual-machine-template_0.1.bb