From patchwork Wed Apr 29 08:38:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 21743 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 295A627BBE4; Wed, 29 Apr 2020 09:42:54 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) by mira.cbaines.net (Postfix) with ESMTP id 9198227BBE1 for ; Wed, 29 Apr 2020 09:42:53 +0100 (BST) Received: from localhost ([::1]:36310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTiIv-0004Ux-5w for patchwork@mira.cbaines.net; Wed, 29 Apr 2020 04:42:53 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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