From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YKsXMhzFr2SAFQEASxT56A (envelope-from ) for ; Thu, 13 Jul 2023 11:34:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oPg/MRzFr2TGTwEAG6o9tA (envelope-from ) for ; Thu, 13 Jul 2023 11:34:20 +0200 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 1FF845363C for ; Thu, 13 Jul 2023 11:34:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=E5EOpJ1h; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689240860; a=rsa-sha256; cv=none; b=uRZvkNoyWHT+WSxd1ezuq3U+UwDG+H55a6Lq46anvOd23/OD4gqeTmBNtP4qvb0Yi0BN1v +V85utdkv0lrRVbMDGJOo3uJEwaspPGqtNTI4l9LTNrea8tNqNH+dQG4wwTuAiCOmfnH/o csEoS1DTa57lXsL2utJ81tlzhCd01zsAWfz7QLayhHlE4R0wQ8YgMi5HeEgSTwJzOcdl35 sEwrGY7QZhVceJV0JaQRsH4o7WFJnwpS/x2cqCGYTyj2o0I0O2g/6eAKN2HzmbdIXc0bzK fcWNGPTz+LM4/xhVs1mNf9BvjDXyu9qkUn9X8j+uBH8fYiQfrn2Zbfb0bVMOag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=E5EOpJ1h; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689240860; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=IqG3MRjGyN4XSs/8Z5NVO6fYhnD2nS4vAVZYY3rOo/w=; b=cO9zYMa165Z0rKyhw5EqiTo7NoPJCTiSrnD6N83SLDdidOb/U8CkvS3J0ShBvxmpy/3CYR Ywro1cd6zhya0ROLIsLrfD4xzdCmlFJb8EhmRTJ3xpwi41WWMhTko+shJgiXAxJhUh8mrF OcLWgZHlYCzhXNuQyENkATY6IWmJJhtK8v64wRslMplF7c7DEHzJsn5zyk5Q7CtAKO9vqe k/SgXARsuruNmRR1+FDI6p+u+NgprZOXTxKIBFUQJqvyJV01EuoSBQ49yoTaOtjdT5n5GV gDjd06ZpnTOUC8kcyVLkpLGcOFOJoJekhlp4VbT+NpGScxuKcanMi2QKFhOuYw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJsi5-00040t-Ro; Thu, 13 Jul 2023 05:34:05 -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 1qJsi4-00040X-DA for bug-guix@gnu.org; Thu, 13 Jul 2023 05:34:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJsi4-0007bn-5V for bug-guix@gnu.org; Thu, 13 Jul 2023 05:34:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJsi2-0004oj-E8; Thu, 13 Jul 2023 05:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64593: =?UTF-8?Q?=E2=80=98guix?= system =?UTF-8?Q?image=E2=80=99?= fails to create image while invoking =?UTF-8?Q?=E2=80=98grub-bios-setup=E2=80=99?= Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: yann.dupont@univ-nantes.fr, sarg@sarg.org.ru, dev@jpoiret.xyz, bug-guix@gnu.org Resent-Date: Thu, 13 Jul 2023 09:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64593 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64593@debbugs.gnu.org Cc: Yann Dupont , Sergey Trofimov , Josselin Poiret X-Debbugs-Original-To: bug-guix@gnu.org X-Debbugs-Original-Xcc: Yann Dupont , Sergey Trofimov , Josselin Poiret Received: via spool by submit@debbugs.gnu.org id=B.168924082918486 (code B ref -1); Thu, 13 Jul 2023 09:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Jul 2023 09:33:49 +0000 Received: from localhost ([127.0.0.1]:53408 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJshn-0004o3-QO for submit@debbugs.gnu.org; Thu, 13 Jul 2023 05:33:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:39752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJshi-0004nm-UW for submit@debbugs.gnu.org; Thu, 13 Jul 2023 05:33:47 -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 1qJshh-0003xv-3H for bug-guix@gnu.org; Thu, 13 Jul 2023 05:33:41 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJshe-0007ZJ-T1 for bug-guix@gnu.org; Thu, 13 Jul 2023 05:33:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=IqG3MRjGyN4XSs/8Z5NVO6fYhnD2nS4vAVZYY3rOo/w=; b=E5EOpJ1hQO0e5GBA3H5JdEEuyqAri351cTq2gDrbez7D2xJIvxd9uGu7 YYfXu70ZpmUpdREIGTsfv0Axz5HYjRrJzO28UhqeCbKSVA9FQZXjuK5SS ZAFdn8O3BJSwzXDukOCJL7CrOB2c+TabvP7ATZvDuJICxBn1db1LtsfQG Y=; X-IronPort-AV: E=Sophos;i="6.01,202,1684792800"; d="scan'208";a="61317907" Received: from unknown (HELO ribbon) ([193.50.110.205]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2023 11:33:33 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 25 Messidor an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la Pintade X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 13 Jul 2023 11:33:33 +0200 Message-ID: <87sf9syx3m.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 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, PDS_BTC_ID=0.41, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.41 X-Spam-Score: -5.41 X-Migadu-Queue-Id: 1FF845363C X-TUID: GMFAVUUhSm7s Hello, There seems to be a recent regression: --8<---------------cut here---------------start------------->8--- $ cat mini-os.scm=20 (use-modules (gnu)) =20 (operating-system (host-name "mini-1") =20 (bootloader (bootloader-configuration=20 (bootloader grub-bootloader) (targets '("/dev/sda")))) (file-systems (cons (file-system=20 (device (file-system-label "my-root")) (mount-point "/") (type "ext4")) %base-file-systems)) (kernel-arguments (list "console=3Dtty0 console=3DttyS0,115200"))) $ guix system image mini-os.scm [...] building /gnu/store/99wmrm4ali4f4pnii21rlhjvpfds762j-boot.drv... building /gnu/store/6gra5cyiilyv3dm3jc7yhkga0kygblhn-system.drv... building /gnu/store/xf50b8cm7ida4rgxp2q69vp2jhsl3kzp-grub.cfg.drv... building /gnu/store/69nhv7idhf1i7a3j8pdchkdd5jj5fl7l-partition.img.drv... building /gnu/store/74sxq3x9gwq0wlwqrrs0lqkr0n14p1kd-partition.img.drv... building /gnu/store/dnqxyq1x7fd5131rby4z46rx8wkzw1k6-genimage.cfg.drv... building /gnu/store/rvq9sqk55qwk27j8m3gjhba7f4zjid2k-disk-image.drv... -builder for `/gnu/store/rvq9sqk55qwk27j8m3gjhba7f4zjid2k-disk-image.drv' f= ailed with exit code 1 build of /gnu/store/rvq9sqk55qwk27j8m3gjhba7f4zjid2k-disk-image.drv failed View build log at '/var/log/guix/drvs/rv/q9sqk55qwk27j8m3gjhba7f4zjid2k-dis= k-image.drv.gz'. guix system: error: build of `/gnu/store/rvq9sqk55qwk27j8m3gjhba7f4zjid2k-d= isk-image.drv' failed $ zcat /var/log/guix/drvs/rv/q9sqk55qwk27j8m3gjhba7f4zjid2k-disk-image.drv.= gz | tail -20 INFO: hdimage(image): writing GPT INFO: hdimage(image): writing protective MBR INFO: hdimage(image): writing MBR /gnu/store/0f4z2i472rfd3qphl82j7jm49qgm672d-grub-2.06/sbin/grub-bios-setup:= error: cannot find a device for . (is /dev mounted?). Backtrace: 2 (primitive-load "/gnu/store/i6khnb475pxagfvjwnhi09z07n5?") In ice-9/eval.scm: 619:8 1 (_ #(# ("/gn?" ?) ?)) In ./guix/build/utils.scm: 812:6 0 (invoke "/gnu/store/0f4z2i472rfd3qphl82j7jm49qgm672d-g?" ?) ./guix/build/utils.scm:812:6: In procedure invoke: ERROR: 1. &invoke-error: program: "/gnu/store/0f4z2i472rfd3qphl82j7jm49qgm672d-grub-2.06/sbin/= grub-bios-setup" arguments: ("-m" "device.map" "-r" "hd0,msdos2" "-d" "." "images/imag= e") exit-status: 1 term-signal: #f stop-signal: #f environment variable `PATH' set to `/gnu/store/n31fw25l5yxq17x52mm7jjbvld58= f8zd-genimage-15-1.ec44ae0/bin:/gnu/store/yr39rh6wihd1wv6gzf7w4w687dwzf3vb-= coreutils-9.1/bin:/gnu/store/016lrymzc8a1rpx2p1app1awp2w2wlpk-findutils-4.9= .0/bin:/gnu/store/nl2ddwgdw4mzghv6kzl6akg1s7p7yik8-qemu-minimal-7.2.1/bin' $ guix describe Generation 269 Jul 10 2023 00:17:51 (current) guix d2cf631 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: d2cf63165119fc78c9f52abce2ce66af23e49243 --8<---------------cut here---------------end--------------->8--- Conversely, it works with a commit from two weeks ago: --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=3D269cfe341f242c2b5f37774cb9b1e17d9aa68e2c -- = system image mini-os.scm [...] building /gnu/store/k4r5d09slzl70sn4zbl0gpnzn1mb5ksy-system.drv... building /gnu/store/13z2cyi9n4isyrw5ashhcazy4ps8qffy-grub.cfg.drv... building /gnu/store/7sx021qpby1p57fqv5n5jkfz20qi9933-partition.img.drv... building /gnu/store/vw5n9q3z6k59mcsw7z4kb6ckp9bbc8nh-partition.img.drv... building /gnu/store/hq7lw7qm3fbl4fhlmqxxp9sw1v8h3h3m-genimage.cfg.drv... building /gnu/store/dil3qjisdkprw20kybr1bxmp6sid7g2v-disk-image.drv... /gnu/store/5lsi1wp59vwnk8rk2124y14p9r2fr9yc-disk-image --8<---------------cut here---------------end--------------->8--- A relevant difference seems to be GPT vs. MBR (the latter works, the former breaks): --8<---------------cut here---------------start------------->8--- $ cat $(guix build /gnu/store/hq7lw7qm3fbl4fhlmqxxp9sw1v8h3h3m-genimage.cfg= .drv) |head -3 image image { hdimage { partition-table-type =3D "mbr" $ cat $(guix build /gnu/store/dnqxyq1x7fd5131rby4z46rx8wkzw1k6-genimage.cfg= .drv) |head -3 image image { hdimage { partition-table-type =3D "gpt" --8<---------------cut here---------------end--------------->8--- The culprit might be 209204e23b39af09e0ea92540b6fa00a60e6a0ae, from . Josselin, Sergey, WDYT? Ludo=E2=80=99.