From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aNqGHQQ+qV6wQAAA0tVLHw (envelope-from ) for ; Wed, 29 Apr 2020 08:42:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MGRdLAw+qV6DMgAA1q6Kng (envelope-from ) for ; Wed, 29 Apr 2020 08:42:52 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DCF4D943B15 for ; Wed, 29 Apr 2020 08:42:51 +0000 (UTC) Received: from localhost ([::1]:36310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTiIt-0004Ux-Qd for larch@yhetil.org; Wed, 29 Apr 2020 04:42:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56150) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTiI9-0003lh-Lf for guix-patches@gnu.org; Wed, 29 Apr 2020 04:42:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTiI6-00082P-MG for guix-patches@gnu.org; Wed, 29 Apr 2020 04:42:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59062) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTiI6-00082K-A1 for guix-patches@gnu.org; Wed, 29 Apr 2020 04:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTiI6-00051j-5s for guix-patches@gnu.org; Wed, 29 Apr 2020 04:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40955] [PATCH 0/5] Add new image API. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Apr 2020 08:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40955 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40955@debbugs.gnu.org Cc: Mathieu Othacehe X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158814970219283 (code B ref -1); Wed, 29 Apr 2020 08:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Apr 2020 08:41:42 +0000 Received: from localhost ([127.0.0.1]:42366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTiHZ-00050c-2P for submit@debbugs.gnu.org; Wed, 29 Apr 2020 04:41:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:37790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTiHY-00050V-1M for submit@debbugs.gnu.org; Wed, 29 Apr 2020 04:41:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55726) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTiGx-0001ot-K3 for guix-patches@gnu.org; Wed, 29 Apr 2020 04:41:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTiEY-0006iH-6b for guix-patches@gnu.org; Wed, 29 Apr 2020 04:40:51 -0400 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]:41522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTiEX-0006i3-QT for guix-patches@gnu.org; Wed, 29 Apr 2020 04:38:21 -0400 Received: by mail-wr1-x444.google.com with SMTP id g13so1429965wrb.8 for ; Wed, 29 Apr 2020 01:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zxsRfR1IDIB3od1dAAbalSDZdVKbWqYaBpshCzMsP0g=; b=tQqMaFrapKDaLDGezOBVUrmQ5OxjD7VvNvpxAktIWBF0oaXjEf37jhQUAgeCeU+Pti 6VuchpHjb3h+uFa/9xnJEO9Gk8V2u0ksGK3ncMhXSiFyAdIxLOFpJgfBcJx9e9l+i7a7 hy1g6C1TNt9VH9iUgr7p7xV8kxevo4LtIGFUpRd2qzv/fwoV5GJcvXjfRGkHiydJFku0 +pTqmzB4XP683TJGLfa++3390x4bB+7ABXbBkGrP2kEgunlN69ve31V1LpLiWgl3f0H8 VfAgKeVq5lyPRmZlOrnxjUTsI3zoo8snPnjBGWJTT9UEzYmBYHPu9Azzj9Jc4mLJs3i1 YGbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zxsRfR1IDIB3od1dAAbalSDZdVKbWqYaBpshCzMsP0g=; b=dxvUuIdzZYZAsrZN1GhlBGbzDkfbZ5VzzN2Ia6S7/M+7JhnAYFUXRyl8CmmauKnEY2 FtjyqhuTXD0f7prkuTkf/AYurRoQX5nFtquRtw5SCKER6nbh7bsupbB1yCOCxuIdbFPf Pzc4vAZmc1o/50pcTskUlqHdo5PkVUdX0zUCg9YW2solKZkTwaA2uU1Ffk0MhQ8RdIhd KgAjLI/+oqB/qeN14oFtV0s7wEhqL240PbEMQX6/MmaX/Imd2keagc5qtNHVkggdjian mY3jei/GQsTebH5Bo6JYfCVd6Q5knJzSlWl9oHAQ1ejaS7n+L4T2uxdk3D3DEQAZ4zqA JR/g== X-Gm-Message-State: AGi0PuZhO++RJY6kOnH4Rk0PcB6Wrsg6PNnQOVJ9tEydH9Q88/cYZKVN 3mSsuJqdlSCKtK1svQKQH6WpfGzP X-Google-Smtp-Source: APiQypKr6TTJ1NH8o2PtKlbPgXPRGBlfbaCYfp/fWPu3ZDuy1C5dRtzIhfQf2KdqjqUp1QSJG6Zbhw== X-Received: by 2002:adf:edcc:: with SMTP id v12mr38771082wro.317.1588149500223; Wed, 29 Apr 2020 01:38:20 -0700 (PDT) Received: from meru.fronius.com ([2a01:cb18:832e:5f00:e9fd:9d65:b691:fcb3]) by smtp.gmail.com with ESMTPSA id e2sm29040743wrv.89.2020.04.29.01.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2020 01:38:19 -0700 (PDT) From: Mathieu Othacehe Date: Wed, 29 Apr 2020 10:38:14 +0200 Message-Id: <20200429083814.23768-1-m.othacehe@gmail.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::444; envelope-from=m.othacehe@gmail.com; helo=mail-wr1-x444.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 X-Spam-Score: 4.09 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=tQqMaFra; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Scan-Result: default: False [4.09 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49332881766904]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; FREEMAIL_FROM(0.00)[gmail.com]; BROKEN_CONTENT_TYPE(1.50)[]; RCVD_COUNT_TWELVE(0.00)[13]; R_MISSING_CHARSET(2.50)[]; DKIM_TRACE(0.00)[gmail.com:-]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.18), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; FROM_NEQ_ENVFROM(0.00)[mothacehe@gmail.com,guix-patches-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[gnu.org:url]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; FREEMAIL_CC(0.00)[gmail.com]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed),none] X-TUID: egX+A/n3KNEW Hello, This has been discussed previously on the mailing-list and can be seen on the wip-disk-image branch. It introduces a new (gnu image) module. This module makes image creation more modular and extensible. Creation of raw disk-images and ISO9660 images is now handled in (gnu system image), and based on the new image API. This does not involve the use of virtual machines anymore. Some bootloaders are not yet supported (MBR based grub, extlinux, u-boot). Image creation with those bootloaders, fallback to original VM based process. See: https://lists.gnu.org/archive/html/guix-devel/2020-04/msg00347.html Thanks, Mathieu Mathieu Othacehe (5): build: store-copy: Export file-size procedure. build: install: Ignore chown exceptions. build: bootloader: Add install-efi procedure. image: Add a new API. vm: Remove obsolete procedures. gnu/build/bootloader.scm | 55 +++- gnu/build/image.scm | 275 ++++++++++++++++++++ gnu/build/install.scm | 4 +- gnu/build/vm.scm | 175 +------------ gnu/ci.scm | 45 ++-- gnu/image.scm | 77 ++++++ gnu/local.mk | 3 + gnu/system/image.scm | 514 ++++++++++++++++++++++++++++++++++++++ gnu/system/vm.scm | 168 ++----------- gnu/tests/install.scm | 22 +- guix/build/store-copy.scm | 1 + guix/scripts/system.scm | 13 +- 12 files changed, 996 insertions(+), 356 deletions(-) create mode 100644 gnu/build/image.scm create mode 100644 gnu/image.scm create mode 100644 gnu/system/image.scm -- 2.26.0