From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpiFu-0006MC-R3 for guix-patches@gnu.org; Wed, 06 Sep 2017 17:53:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpiFq-0007uY-0L for guix-patches@gnu.org; Wed, 06 Sep 2017 17:53:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpiFp-0007uS-T9 for guix-patches@gnu.org; Wed, 06 Sep 2017 17:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dpiFp-00058q-MG for guix-patches@gnu.org; Wed, 06 Sep 2017 17:53:01 -0400 Subject: [bug#28377] [PATCH 00/10] Allow users to specify the UUID of disk images Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpiEk-0006Hm-0z for guix-patches@gnu.org; Wed, 06 Sep 2017 17:51:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpiEi-00070g-Es for guix-patches@gnu.org; Wed, 06 Sep 2017 17:51:53 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 6 Sep 2017 23:51:30 +0200 Message-Id: <20170906215130.16411-1-ludo@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28377@debbugs.gnu.org Hello! This is a followup to : it’s about making it possible to specify the UUID of the root partition of the disk image. To get there, this patch series does a few things: 1. Give a 2nd argument to ‘uuid->string’ et al., which is the name of the UUID format. 2. Move UUID-related code to (gnu system uuid). 3. Introduce a record type that ties together a bytevector and a symbol specifying the UUID type (DCE, ISO9660, etc.). This allows ‘uuid->string’ to generate a string in the “right” format as expected by tools such as GRUB. 4. Finally, generate a UUID for generated images. Tested with both an ISO and an ext4/qcow2 image. Feedback welcome! Ludo’. Ludovic Courtès (10): vm: Allow partitions to be initialized with a given UUID. file-systems: Add UUID type dictionaries. services: base: Import the closure of (gnu build file-systems). file-systems: Introduce (gnu system uuid). services: file-system: Use 'file-system->spec'. system: Introduce a disjoint UUID type. system: Serialize the UUID type in the "parameters" file. uuid: 'uuid' macro supports more UUID types. vm: Allow users to specify a UUID for the root partition. vm: Generate a UUID to identify the root file system. gnu/bootloader/grub.scm | 4 +- gnu/build/file-systems.scm | 130 +-------------------- gnu/build/vm.scm | 28 +++-- gnu/local.mk | 1 + gnu/services/base.scm | 15 +-- gnu/system.scm | 48 +++++--- gnu/system/file-systems.scm | 26 ++--- gnu/system/mapped-devices.scm | 7 +- gnu/system/uuid.scm | 265 ++++++++++++++++++++++++++++++++++++++++++ gnu/system/vm.scm | 63 ++++++++-- 10 files changed, 393 insertions(+), 194 deletions(-) create mode 100644 gnu/system/uuid.scm -- 2.14.1