From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gMN0JJfgTWZVRAEAe85BDQ:P1 (envelope-from ) for ; Wed, 22 May 2024 14:09:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gMN0JJfgTWZVRAEAe85BDQ (envelope-from ) for ; Wed, 22 May 2024 14:09:59 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=operationnull.com header.s=mail header.b=FFA5mWcJ; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=operationnull.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716379799; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=e6xHfzKM3We6a8FxV/mrcvBI7yqzAp1P3AX8bObCRIg=; b=uaXVg8lZeRxQGHZBuI8pHeyNJUXjiOXh/xM2P287FM/2oRhfMS0iDsfFFSo1Zb7bWOBUtG UTzHusoEzAwI+LNyvM0G3Qq8h/W7yJ4p5aLamKt4h2Awbxyr5AUU1oNBGnkRtfh3K+x7GA 5BTf9FDUl9Kn87k9wYzJ9pVDSP+LL3r4jiQEIHMxr4vAT1CCxce9+JyNLIOV2zaCxj5AAm Ywfad4USwFJRhd/PcYadySwM+g3Qr3vwnTP3zynUhtg7HmpQJikp/IooZWl0U3E7sYqf1g 86AgjXcTVyIcgnOJZbLC63/0FgZ6AcZo0D5Xah+YdjYwn2q1zvcnO27+IYLLfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=operationnull.com header.s=mail header.b=FFA5mWcJ; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=operationnull.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716379799; a=rsa-sha256; cv=none; b=Ik4euUIEJyGzcn0/pljIculd2ukR1lWs4GfJKcUSw7qFYBVx4QZjIHBW7thvjCaRm4PqDo 6gg3gvM097QV2aV0DOeKnmgYwAHAfXrDuMPV3zngRqNAextgLcWB6fcef+qQPI18x5rnkT cY84JJIVXZp0YKFx38Cvo3BFs882mR9YIWtt73QPIQFwdOn4ossFGtEgc2Xn21rL4Yi7Z8 TPfVgzFh1ocKAZ0NyJuoDkmtIYVnWQEYLcO+ZLq5ZvvsCeVv9lMC6kObuICTrGhPk/eFcu vAvg2TSNbspYNA1uLxG9FcKF5w+ulAyNWEZnr0bJo5HTknkfC4MDVrn1yLpT3w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.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 11E5512E6D for ; Wed, 22 May 2024 14:09:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9kmk-0003eK-Hv; Wed, 22 May 2024 08:09:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9e0c-0001Sh-AC for help-guix@gnu.org; Wed, 22 May 2024 00:55:26 -0400 Received: from operationnull.com ([2600:3c02::f03c:94ff:fe77:2bc]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9e0a-0007n5-8n for help-guix@gnu.org; Wed, 22 May 2024 00:55:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=operationnull.com; s=mail; t=1716353721; bh=siIf9+SGBySDdL823n6Y24FH0oAKbtCksH3v/JCt6d8=; h=From:To:Subject:Date:From; b=FFA5mWcJuMgwlaMr0+gVWvq4CvxngsdhMLKSTNuShdpoKZyaxZxb0qBGbV9F9O0+g Wy2YLeIrdIrodnyQI4IyFs31+TWeM0rXkQiCX45T7td41TvdKxNZdSb75sV0C5aA34 wdhTbOTb7f80bXAGFR8vWBVF/bW+/YmQMk9ciW+QMkVJATjYW5bVRAguTV7EYqKhJ2 /10SKHKvvv32hJez163mxrcIRuJxxJHTVK959NQ+VYZeBZ2GTkZ5/JSydtqwDe3sHt jOJ3bdQN1FUUkI9GdSaLEtaSa6WCnBP4cMKAORCbBBLqRc5w6kIrwDf5jgNAB51P67 nnmdSsSn/Bi9A== From: bdunahu To: help-guix@gnu.org Subject: Guix system image record with a large root partition Date: Tue, 21 May 2024 22:55:01 -0600 Message-ID: <87ttiqo38a.fsf@operationnull.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2600:3c02::f03c:94ff:fe77:2bc; envelope-from=bdunahu@operationnull.com; helo=operationnull.com X-Spam_score_int: 41 X-Spam_score: 4.1 X-Spam_bar: ++++ X-Spam_report: (4.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_SBL_CSS=3.335, RCVD_IN_XBL=0.375, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_DBL_SPAM=2.5 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 22 May 2024 08:09:30 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.26 X-Spam-Score: -0.26 X-Migadu-Queue-Id: 11E5512E6D X-Migadu-Scanner: mx13.migadu.com X-TUID: mjtYi85a0ygB Hello! I would like to create a Guix System bootable from a USB. I am trying to configure an image record that will allow me to create this image with a large enough root partition (my USB is 32GB) that I can also instantiate my home configuration on it, whether manually or programatically later. I have tried two different ways of creating an image with a large root partition, but am having difficulty with both: (define system (operating-system ...)) ;; simplified (define MiB (expt 2 20)) (define GiB (expt 2 30)) (image (format 'disk-image) (operating-system system) (partitions (list (partition (size (* 40 MiB)) (offset (* 1024 1024)) (label "GNU-ESP") (file-system "vfat") (flags '(esp)) (initializer (gexp initialize-efi-partition))) (partition (size (* 28 GiB)) (label root-label) (file-system "ext4") (flags '(boot)) (initializer (gexp initialize-root-partition)))))) ;; the above image declaraction is in kvasir.scm $ guix system -L ~/.config/guix/modules/ image ~/.config/guix/kvasir.scm This generates correctly sized and offset partitions, but unfortunately results in a broken grub configuration. The program packages are there, but the /root directory is missing as well; so is my user (all part of the shared 'system' declaration I use to configure the computer I write this on) and the guixbuild user group... I then tried to use a different image format (iso9660), which I based off of the existing iso9660-image included in the existing images module (so the same as the above but no ESP partition): (image (format 'iso9660) (operating-system system) (partitions (list (partition (size (* 28 GiB)) (label root-label) (file-system "ext4") (flags '(boot)) (initializer (gexp initialize-root-partition)))))) This creates a full, working configuration, but also ignores my size and offset specifications (the root partition is ~2GiB, and starts at block 0). I have tried to resize the partition manually using fdisk, but because the boot partition starts after the root partition, this also seems impossible (and more of a duct-tape solution). So I am not sure how to get the image I want. If anyone were able to help me fix my image record (or better solutions, or even a suggestion as to why mine doesn't work) to generate a simple image that works on most modern computers and has a large root partition, it would be very helpful to me. Thanks! bd