From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id aH1qBVPjE2aB4wAAqHPOHw:P1 (envelope-from ) for ; Mon, 08 Apr 2024 14:30:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aH1qBVPjE2aB4wAAqHPOHw (envelope-from ) for ; Mon, 08 Apr 2024 14:30:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FiOjKmbY; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712579411; a=rsa-sha256; cv=none; b=FRcy6APqIiccyRj9FuKwaw0YvfFQb+qgJbQq7PYQd9ZucZSY+ZJTkyKGl1T0gbctd3Zw60 Gbhj4/vECgb46E/0iBwyx5PJDuykDKaOImr+ZZ0GQYb6Xg2GJiqlgMo+px3oQ7KbCI1uPI CDseP0e7ep1x/dczjPMHvRw7SXp6jA1rOuwWGivijXyCBFPAY7gKw4+yw09/35SAS6ySbJ Ma4ABVZ3j213tAtvAToxQY/kEBIqOszn6ycfYo3OsliQdZd8XkE1nSEoFTAzXdNv1ukALm rFAjkJWCj4W222WIX5QIZLx87/vr32ixTJatHj4ENk1RyAtLP0trJQbg7gJoSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=FiOjKmbY; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712579411; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=DxgB5U0hVoaN4N0Hi78QUaofpV4Ylp+Uf2KlAYUDzXk=; b=Epfk+IxqVGl3kCcyQqK9a+0Qhup3COgGOYrJ1bsxpN1GSEL0cXhAA3ni8ofQlY4NHrNY0f ObgyyUJ2bqjrcFR5a2zKH909pr9xsbSz52dDWxMV8nknR8ejI+Dgueu5rTwdRLSPlRH7zp dubK3jTwWo1iqRDkSBGKWrxi831iS5PtOhuRxan0s+yVPBxw0zONWAmpMyiJKbW8I+9Fpc u8FgFmSdO2FW69ycBnkvQfr6nPVB/wV09KNGZr95ImD9QrEGrlRDo7sNdEJfa8B6OWYl8X qZ2IXkRjUv+qJwEeSNgAXgY1TXbOPw16bWTkyrDS+lItcKTAMcIym97kBxV+pw== 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 D2D0E68A31 for ; Mon, 8 Apr 2024 14:30:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rto8L-0002pm-5f; Mon, 08 Apr 2024 08:29:57 -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 1rto8J-0002pI-LO for bug-guix@gnu.org; Mon, 08 Apr 2024 08:29:55 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rto8J-0008R8-Ae for bug-guix@gnu.org; Mon, 08 Apr 2024 08:29:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rto8Q-0004k9-Ed for bug-guix@gnu.org; Mon, 08 Apr 2024 08:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#70239: (operating-system) structure requires a kernel Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 08 Apr 2024 12:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70239 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tomas Volf <~@wolfsden.cz> Cc: 70239@debbugs.gnu.org Received: via spool by 70239-submit@debbugs.gnu.org id=B70239.171257935817968 (code B ref 70239); Mon, 08 Apr 2024 12:30:02 +0000 Received: (at 70239) by debbugs.gnu.org; 8 Apr 2024 12:29:18 +0000 Received: from localhost ([127.0.0.1]:45529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rto7h-0004fk-QA for submit@debbugs.gnu.org; Mon, 08 Apr 2024 08:29:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rto7f-0004el-5Z for 70239@debbugs.gnu.org; Mon, 08 Apr 2024 08:29:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rto7R-0008IS-EJ; Mon, 08 Apr 2024 08:29:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=DxgB5U0hVoaN4N0Hi78QUaofpV4Ylp+Uf2KlAYUDzXk=; b=FiOjKmbYFgA+FwVPBDIH 0WwFmEEGLrHvJ1p/1uUr7kybdtoCVxRtbPvziJnPT/KuSZkQpWKGbkKvDxeeCe7mjSjptNmoIQokF 6DKP8obuj54K59mj1INrag89yNQiRloKBD1/LNuRgkXOPulxpOMcpNliMLSAp+saWfAqUGW+OCqVk WhfT5NpjdAHhqnlj0a2sNFB4/tGPU/v1KKHl+LgT3q/AU6KUrriAUhE2+u0X66CWT+VXZ3uU4nV0s 8KEWyHa7txOhRLHFJmCX/+JFTYK2O4A99Rkqg4W0KAcfnUR3iy4PgUtbuf3uQ4C/MxddJbOAuNq2T jJGwkKRAN0ZS4Q==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Tomas Volf's message of "Sat, 6 Apr 2024 16:51:42 +0200") References: Date: Mon, 08 Apr 2024 14:28:58 +0200 Message-ID: <87cyr0qbqt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Spam-Score: -7.07 X-Migadu-Queue-Id: D2D0E68A31 X-Migadu-Spam-Score: -7.07 X-Migadu-Scanner: mx10.migadu.com X-TUID: FLaw6A33HFPd --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Tomas Volf <~@wolfsden.cz> skribis: > (operating-system > (host-name "guix") > ;; Servers usually use UTC regardless of the location. > (timezone "Etc/UTC") > (locale "en_US.utf8") > (firmware '()) > (initrd-modules '()) > ; (kernel %ct-dummy-kernel) > (kernel #f) [...] > In gnu/services.scm: > 1031:29 7 (linux-builder-configuration->system-entry _) > In guix/profiles.scm: > 439:4 6 (packages->manifest _) > In srfi/srfi-1.scm: > 586:17 5 (map1 (#f)) > In guix/inferior.scm: > 549:2 4 (loop #f "out" #) > 529:4 3 (inferior-package-input-field #f _) > 473:18 2 (inferior-package-field #f (compose (lambda (#) (=E2=80= =A6)) #)) > In ice-9/boot-9.scm: > 1685:16 1 (raise-exception _ #:continuable? _) > 1685:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > In procedure struct-vtable: Wrong type argument in position 1 (expect= ing struct): #f Indeed, =E2=80=98linux-builder-configuration->system-entry=E2=80=99 is not = prepared for that, but we can fix it. > The (kernel (plain-file "fake-kernel" "")) leads to a different error: > > building /gnu/store/idy2sylx9zbvphzlqvhnldjvg242hd2a-linux-modules.dr= v... > find-files: /gnu/store/jfcbq6djya5pi54yhpvzj66r18h4mp09-dummy-kernel-= 1/lib/modules: Not a directory > Backtrace: > 4 (primitive-load "/gnu/store/sckm34nzvmkcynhgn6zs5aq6xfs?= ") > In ice-9/eval.scm: > 619:8 3 (_ #f) > 626:19 2 (_ #) > 159:9 1 (_ #) > In unknown file: > 0 (car ()) > > ERROR: In procedure car: > In procedure car: Wrong type (expecting pair): () I believe this one is a regression introduced in 8f8ec56052766aa5105d672b77ad9eaca5c1ab3c. I believe this is fixed by this patch: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm index 561cfe2fd0..40ff2dc808 100644 --- a/gnu/system/linux-initrd.scm +++ b/gnu/system/linux-initrd.scm @@ -134,18 +134,23 @@ (define (flat-linux-module-directory linux modules) (guix build utils) (rnrs io ports) (srfi srfi-1) - (srfi srfi-26)) + (srfi srfi-26) + (ice-9 match)) (define module-dir (string-append #$linux "/lib/modules")) (define builtin-modules - (call-with-input-file - (first (find-files module-dir "modules.builtin$")) - (lambda (port) - (map file-name->module-name - (string-tokenize - (get-string-all port)))))) + (match (find-files module-dir (lambda (file stat) + (string=? (basename file) + "modules.builtin"))) + ((file . _) + (call-with-input-file file + (lambda (port) + (map file-name->module-name + (string-tokenize (get-string-all port)))))) + (_ + '()))) (define modules-to-lookup (lset-difference string=? '#$modules builtin-modules)) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Could you confirm? > I think it would be best to just support (kernel #f) for container deploy= ments, > since that would simplify it and keep it manageable. Yes, let=E2=80=99s do that too. Thanks, Ludo=E2=80=99. --=-=-=--