From patchwork Fri Feb 5 05:57:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quirin Gylstorff X-Patchwork-Id: 306 Return-Path: Delivered-To: ilbers.mnt@gmail.com Received: by 2002:a4a:3788:0:0:0:0:0 with SMTP id r130csp2310011oor; Fri, 5 Feb 2021 07:57:16 -0800 (PST) X-Received: by 2002:a19:f012:: with SMTP id p18mr2836177lfc.153.1612540636180; Fri, 05 Feb 2021 07:57:16 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1612540636; cv=pass; d=google.com; s=arc-20160816; b=IJeFoGUiCOZEnyMlkYR8Kk3rDQ+5yqDsS4zuFyp9Diq3yRUDlfxbdfoAY0lqB8fwi/ VbdPFEjN5K4BYPkFmCmKCPFnZCT0EgnLBU2JogDtpiP4GF4kahP1lCHXUpIUoUZJP5bb W4x228LIuT7qDS3cXDztVwLJVD7u5OYChzdh0LlNerGo3iu4PZhSimpxmTGhKliPdZmy gR8hQFI+GQ46MZL2z1O1rvAnZIWpCB6WHXRbeu2YllgXryz4CNhVnVF36IoQvGF4z1vq mSVnG+18Uwbz84X7iMvL19oqZ4rl6y4XemGti8b+LRFcqrTpGNF5taLsu1HJ1rNCFprt 9wEA== 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=O7A8lUiazUwrVYJsD9mFzfg4hxi/hq7dTal4t8TbeC8=; b=C3315MljsRTNLC5+YY1QFScNe2OUcxXt14uK5t1Dwj+upcgSnvZZTn0xPL3qAaXu/X J3f2qi6MJDxQxSDPzCYb+ET0MhnFL+Aj/NtxxKQDOa5tg0JhIOCqAc+lGiIZxigMgoEr UJHq1lSCDgjL6xYLdLVPNZztOT/nUzr8Ng7+CRUlHbB7nLZl/Bz/c9IkbUDybMu1rry7 EY9cWSKfM8yl5PsBRYcWu+JZDu1ihjvBn2ZEyrIDt1evUpHhquNOWrTnaySCw0XzulU4 GgYjiyuZeAMFS0B6l1OGhzZWPlWxrnX9An1i9CRPl81XwDqdveNWB9Fm/yTffvuwDOp3 hZiw== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@googlegroups.com header.s=20161025 header.b=obDZO0zD; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbctzztvx2qcrbw6v6waamgqeknw6gei@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCTZZTVX2QCRBW6V6WAAMGQEKNW6GEI@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 b10sor2247240lfs.123.2021.02.05.07.57.15 (Google Transport Security); Fri, 05 Feb 2021 07:57:16 -0800 (PST) Received-SPF: pass (google.com: domain of isar-users+bncbctzztvx2qcrbw6v6waamgqeknw6gei@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=obDZO0zD; arc=pass (i=2 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of isar-users+bncbctzztvx2qcrbw6v6waamgqeknw6gei@googlegroups.com designates 209.85.220.55 as permitted sender) smtp.mailfrom=isar-users+bncBCTZZTVX2QCRBW6V6WAAMGQEKNW6GEI@googlegroups.com; dmarc=fail (p=NONE sp=NONE dis=NONE arc=pass) header.from=siemens.com ARC-Seal: i=2; a=rsa-sha256; t=1612540635; cv=pass; d=google.com; s=arc-20160816; b=LkijTPBvaorpMHRp1bSjao7Qfqm/rLGKYUnsJcXQ+bDcrWkM43cWtaITUXbtIoyv+q emqnmwmBPUpimbz1rRngaC3Dxx9U0WHA7n6vsRRf7LGQj1i4Vh8sir8lVkIo3pRjwkdF 1Tqe7N0alC/NajVLM9/GYyU0NZe96yQsfO6TtF1c+6AyN5JknzPjLql0KrY39nHzXsZQ ZATDmxBokP/74mnaR15fb8jytlEhwM2uAX18LvHcl7KCU95nsDTQ4X5iXKbO6wVkp6lr CXzR4VKmqMMVeT5ox9mYovaKHl0H4HYi8JviYxDqRBhSlxq6CpoQyGBKzpa07pGIwSu0 lbYA== 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=O7A8lUiazUwrVYJsD9mFzfg4hxi/hq7dTal4t8TbeC8=; b=n9D7T8Nl1XHVsR1JMLSSnZxHuwqDP2W7QqemtLJ1ppiFQkV535tHvpgv8xqHtBhXdt ucHD4RxRvFTDUDgNPBYd0S0ogyAWXkOc32mHy7MlyvKPk8iUA9XUHtF/0pslHB8C9LAL OjEix3NFDJAIt7HzDwBlFn90XY18C/TacpZH8pAaoeW9pn13kVQ0TvA2huVRZKq/aDse 6qQ7t2MnhIiDzBzTqc3pX6kNWoTmcACFdQYy0E65PXy8NeO5o5xkirkDO2ugyl8xwIrB 955vlB1MgqeNjikVYWl0U62WUPHeS90bIQO9DU8UVwN2QvzZBo8laKXHGBMucbj3pQot Vb2A== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.28 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=O7A8lUiazUwrVYJsD9mFzfg4hxi/hq7dTal4t8TbeC8=; b=obDZO0zDsu3nx23svVqIk3fnZXSAHqImNHdDSQxLOkUFS9vLQwyKrYMs3WNxFO6NzE ubYcKNErSKqgrU0a8SJQjqItcdo9dTri6nWddcctQYtY9coh9q1xx41yjq/YVWsBvacr Q89WQuKibcW1SLaPff8vFGfwT153P2C27lul9dqO7BdfcVz2aBrCjmVSY0hE+4HHX9sq Zv/GYrRhnd2JPItzbHvQtS53Ewfx+D3vLJfm2aZHQNKQ/a93GoQjehogTUAE5xCNiQTJ k9TjWDi3bw5iuwMrW+Rte4LY6t9qGY87qfGHTukNoxv4nKl0eGsvAPdck+BLd9PRvTtB 069w== 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=O7A8lUiazUwrVYJsD9mFzfg4hxi/hq7dTal4t8TbeC8=; b=MrUcFw/T7BJJTBebID8oOooMsKTI1380CGymrbchsIE2Z7fUj0YUhdzCE+o88nymQe dTTI0HEt1wq2XEuwr+Tv0KhlGc8coRjbG5VdNUGOnC3CkRRdR4y8u3CjLBgKxkHer9s9 luLd/p4oRtO2hsRUtcU5Gfr/msESYCcKb6kMkPn+v+BIj+sVfPGRxAELO2uOb9KJkV2E bheXLdK2lAhDhkqbot9yVgYskHaz4TftqbVJwCMg5Y6SaDnL3GatYd7QRhJ3mg81739n T1ICYaZqiDjPvEXipqbVQi8vcdXBHGZAYsH5AxLQIbBat1QMqxKfPrCwzr3+6jy8ax9g zxfw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM533pM7l3RM1n9H88O36LsJ6d/MTZ4IkFCxoSJ0Z+FBtyiZXDJ7ma 4H9gIUT7FIkpN3z/7jsOdGM= X-Google-Smtp-Source: ABdhPJxAYtqSeW172r6QIywqOux4JwbcysAgOtscVIEbhNazNVIibGjQl1GgY4fXsQ1CIwzisR56gQ== X-Received: by 2002:a19:7f8a:: with SMTP id a132mr2815023lfd.274.1612540635747; Fri, 05 Feb 2021 07:57:15 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:3993:: with SMTP id j19ls2672942lfu.3.gmail; Fri, 05 Feb 2021 07:57:14 -0800 (PST) X-Received: by 2002:ac2:5ed0:: with SMTP id d16mr2871425lfq.644.1612540634755; Fri, 05 Feb 2021 07:57:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612540634; cv=none; d=google.com; s=arc-20160816; b=DwizEWQygbGkEV2pdCOyJwEh1hxO9oHbLETK4Qz3GIj6uCzT/5wzkikWaUVq2/6tTJ siYxke0818E4hrxjJIzfxXW91CZQ3+QIXmAjKVelPRnkMLTWAfUkdu6mkk2Eps2FcDGg MkCntKeV/HEgKG+G1wA/Rlv1eaFz3JFK4/9DNrYU9ghiL1W0gFjnGnlra/t6BwYUEr+x M8t75ubkiOakErOdtpOnN9RaBptTxo5B9yWBF8Ca+m+dsgh2RDgj7VHKwdSUv5xeG1Qf ssUD++l4dO+QIFvd/GfmhqkwMyD7NBthKK64gwtTOgvCioKbQGWLL6ADFusrhWxHr3EG s3bA== 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=zyakfZtx8iPfOBHNFRG3F/h/YxX+8s1GGcncySoTikg=; b=SyGL53Kw819jOWqHJwc70nRhrFe/KRVJPYWatWataTT3wuXqBhD2X/A3r6SiqDZssw S880p7PE5cXhWoGD7eblS9resgq/X8+MHwGkc5huzG0Tx2e93XS9m0b5Uzvai/LaRHuv yuzJigJr5Dyi+RH9p5MZZP/GYy0o9zO+QLyV8aSLpli84GCS05bRLx48UNxUfQxxIyq3 cYmuzxHA1FD2fa3yGJAJN34zZn/p+rTwFBvWMj9oYqVOg/sktZgijRaHN1ztIIaUx2gL MCeaRDw/ECWAorMRqinROVD9oZDYinw9yKDB/BS0uDu/r1v936UhFKG50IMLcfTI8Xwi d0ZQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=Quirin.Gylstorff@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id c6si539824ljk.2.2021.02.05.07.57.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Feb 2021 07:57:14 -0800 (PST) Received-SPF: pass (google.com: domain of quirin.gylstorff@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id 115FvDf9017515 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 5 Feb 2021 16:57:14 +0100 Received: from md2dvrtc.ad001.siemens.net ([139.22.33.9]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id 115FvDVf013323; Fri, 5 Feb 2021 16:57:13 +0100 From: "Q. Gylstorff" To: Jan.Kiszka@siemens.com, isar-users@googlegroups.com Cc: Quirin Gylstorff Subject: [PATCH v8 0/2] CPIO & OVA Images Date: Fri, 5 Feb 2021 16:57:11 +0100 Message-Id: <20210205155713.29133-1-Quirin.Gylstorff@siemens.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210205105235.29169-1-Quirin.Gylstorff@siemens.com> References: <20210205105235.29169-1-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 192.35.17.28 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?1690871410193327441?= 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 Changes V8: - formatting - correct cpio commit message 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 | 104 ++++++++++++ .../files/virtual-machine-template.ovf.tmpl | 155 ++++++++++++++++++ .../virtual-machine-template_0.1.bb | 17 ++ scripts/ci_build.sh | 5 +- 10 files changed, 350 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