From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GHUjHdBhEWb0JgAAqHPOHw:P1 (envelope-from ) for ; Sat, 06 Apr 2024 16:53:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GHUjHdBhEWb0JgAAqHPOHw (envelope-from ) for ; Sat, 06 Apr 2024 16:53:04 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=wmU5pc9j; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=fXmtd4GT; 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=wolfsden.cz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712415184; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=DDXtpkyJKCgNE3PhnWUkq72qumTXcBQMGVvvI20shWU=; b=HtuxAH5vCzEEN4e2zcaqwVdxuvH5N/bmvUxDsY4mAsrN0c/coo2gGpbkvRnU3MKoN/XtHz CyrAR1wdpl5FVRADVoKqz0TuCt6hW+wFXaBjllWMnaetZNJRj2/odD6dpf/ogm5Xn/d5Gp T9qiBfeFRK6AObV+AbW9XikchAkGYO6HRgqXiq8wSgyL3NRZwae+yR5TPrBwWdGGdN2u6x 3hXr5eHfehT3JOHqB9xmA4rFkBP/tGp1xMl2kDDXzbm0J/gjQyGXMH4lU6aeWZQHEVyltP V0svRc3e/vzL/743qTYx4ZOJROxdqqMwgvQy69CUsVUWfqNg2vZ2NubqrJk7Fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712415184; a=rsa-sha256; cv=none; b=EtnncZOi4i6ICLdk9SFEaVj6Mcx0aPP0XhQCXyFdzx3lQiOyMdHdCMG74uP6CzVhDT0cij 2lUBhYk/Ym26SjwPgrMiJCkUnaLuoX8sqamP9lQ9UPHKNGLxnlFe8Cgl+QU5IzRIzTQBbp mIZ2/8mpK2ukYFhJ+XpjZGzRNm5Auw95/2RfPA86Deu/1dcwkJ+X9qJ/TloAReL0yhuzJl ZqrIJh6NMntYaXkkFRNR3XjwpbdVNpnB/NOhx79lVExPrVCSnV0IUxJvYRFVX0boetfWDo yHhOIbtoArRhBf3Nma1UH8LSRW5V558zLdiJYw8Bd2nNyFBQ/Wn9lAZAqB4H1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=wmU5pc9j; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=fXmtd4GT; 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=wolfsden.cz (policy=none) 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 EC52A35857 for ; Sat, 6 Apr 2024 16:53:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rt7Pf-00016t-6y; Sat, 06 Apr 2024 10:52:59 -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 1rt7Pc-00012g-Nm for bug-guix@gnu.org; Sat, 06 Apr 2024 10:52:57 -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 1rt7Pc-0006ns-F1 for bug-guix@gnu.org; Sat, 06 Apr 2024 10:52:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rt7Pi-0000uz-8u for bug-guix@gnu.org; Sat, 06 Apr 2024 10:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#70239: (operating-system) structure requires a kernel Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 06 Apr 2024 14:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70239 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 70239@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17124151283300 (code B ref -1); Sat, 06 Apr 2024 14:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Apr 2024 14:52:08 +0000 Received: from localhost ([127.0.0.1]:40565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rt7Oo-0000qy-93 for submit@debbugs.gnu.org; Sat, 06 Apr 2024 10:52:07 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1rt7Oj-0000q0-5e for submit@debbugs.gnu.org; Sat, 06 Apr 2024 10:52:04 -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 <~@wolfsden.cz>) id 1rt7OX-0008PO-CA for bug-guix@gnu.org; Sat, 06 Apr 2024 10:51:49 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rt7OU-0006TB-Vi for bug-guix@gnu.org; Sat, 06 Apr 2024 10:51:49 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id B36C42A6EE5; Sat, 6 Apr 2024 14:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1712415103; bh=Dhb0zkSO1qx0jADvO4L9AEI+gBbqUqj4sB3YuPIDWfg=; h=Date:From:To:Subject; b=wmU5pc9jYkZVVEXtGDdAAuVCDAnGBOOQtFtiITkJvR7sQoeXV/vB9kRMlZwr3c7jI g563fZaXGJoK3q5hFzi2SrABEqYdbVps0RMcmm9zR4WES7hGFowkFNOyljo0jCTWOk XIQyk5Nu2kpnFbJ0/pKXVUanYI7XetqS4ptfqlasZaQRgtKAzRIXSR4mdvF7rMa0AC miQDPIi66g/pLNNPfVM/k6t1Qt8+wGCCkSEz1Hkx9jAHSSLNMkuBOtjYUAxQY9xMoy UiRN4l0LPy1sDoqCkrsY5Kf92WGMbTevmTU7xsScp7AiJa16E26yRkhKaHwaKMZp1d oxXCXdX8LFgJQj6smVWP3CtphnQu2Fd+IfoOe1S0cAD8KFmjjIHMwtmTxmDTr3LHmV Ezpqn1FBs1t8kj0H1kYEt9VkOOX3hg90YFT+04wtZXfspbJjXCdGyMcTv1f5s5Wwzb 6BWT7h5YlpNA2gDTsrWkntSzMGU7D7FEsyOOJJu/+wVc/3jM8vboyGokeb5d2gjrrd cTi3w7tW2Zl4krPGRE3nYpdAdPWWTncQr+o1Omr4RYdhhLrDf8ej8QQrQ1bXS/14SH 2qPb0ogIEmRAE8Gc+nOcsCX0pfJUbQNKRITeUw0/9h2X2FJPPkbkHFrNe+WAY9WDsT 9PlCdBTb9Cc7RdTObvDUm0Xo= Received: from localhost (unknown [193.32.127.157]) by wolfsden.cz (Postfix) with ESMTPSA id D44A02A5FFC for ; Sat, 6 Apr 2024 14:51:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1712415102; bh=Dhb0zkSO1qx0jADvO4L9AEI+gBbqUqj4sB3YuPIDWfg=; h=Date:From:To:Subject; b=fXmtd4GT7uS4GQhec9+z4kG2Fwlll9ysAdXG9RmOtQcG6x0SaNPUGm04ZwEjNmnk5 RCIOmBsZfDGzw81e3eybeZRY5h2BpbO8Z9g5QO2R6JnoL7O6yW4h1drZamQI4t/yzm dxcleqe1jfiUkbiMPiGln4gQ7rqshwuKD0r20NlXg0tAdnKIcPyvq7mhojP9PM2hSc x1sCI8jIQHhCM9TbNHs0wGy2mwaoF2lZn+mjUvVjV3VvSRMCQvM089A0AekZOVyAqQ frOcW8UaLA2pH8mtlF+PDODSk7vr1IU3PGt32qL1B7yL0xOAyptyaGfgAwnlvrspcf BG1ZQN/WGZzyxa427rWYFP+Sh6jATtYawzUk4LGjRJiwMxL7QtmxTr+tXFeVN3+Nft YDEE3iK/biFCCgvIfRDutwRj161o+usoGI37E33yjv979CeBf7nGZY4zrNbDffb/4R 3P0tmrmkVCHtWp8lRJw1aur028QJHozP8PsnHjOo2OAWv6ML+76xLuDD/XN48y0y4P GJaUmgwCqYMZikVfPhC6lZ0ds/ZI3of20Q4TnmSfXiBwc4rIEl/AeNiUpPxMEDgz78 a8LGt0dvNObvx3J+3IXsuaTVM2ww9jWdsKSHWKT+7S1hOTFmnmvgUrD4x4AXX4s7Ll qLtW81Hqu8wKkx5i8g68wGHA= Date: Sat, 6 Apr 2024 16:51:42 +0200 From: Tomas Volf <~@wolfsden.cz> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OMPTKsyEvWMxU2J+" Content-Disposition: inline Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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-Spam-Score: 1.04 X-Spam-Score: 1.04 X-Migadu-Queue-Id: EC52A35857 X-Migadu-Scanner: mx12.migadu.com X-TUID: eRieYVlXtWnl --OMPTKsyEvWMxU2J+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I am deploying Guix into a LXC container, therefore I have no need for a ke= rnel (it is provided by the host). So I would like to limit both storage and co= mpute cost by not providing any in the `operating-system' record. Historically I was using a dummy empty package for that purpose, but that h= ave stopped working, so after short discussion with civodul on IRC I decided to bug-report this problem. 2024-04-06 14:45:10 civodul can=E2=80=99t you make it (kernel #f)? 2024-04-06 14:45:34 civodul or maybe (kernel (plain-file "fake-kernel" ""))? =2E.. 2024-04-06 14:49:52 civodul actually i think =E2=80=98guix system container= =E2=80=99 could/should do that: replace =E2=80=98kernel=E2=80=99 with a fak= e kernel or #f 2024-04-06 14:51:05 civodul so yes, sounds like a bug to me I tried the suggested options, here is #f: (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) (packages (cons* nss-certs %base-packages)) (essential-services (modify-services (operating-system-default-essential-services this-operating-system) (delete firmware-service-type) (delete (service-kind %linux-bare-metal-service= )))) (bootloader %ct-bootloader) (file-systems %ct-file-systems) (services (cons* (service openssh-service-type (openssh-configuration (openssh openssh-sans-x) (permit-root-login #t) (password-authentication? #t))) %ct-services))) Which leads to: Backtrace: In guix/store.scm: 661:37 19 (thunk) 1300:8 18 (call-with-build-handler # =E2=80=A6) 2180:25 17 (run-with-store # = =E2=80=A6) In guix/scripts/system.scm: 847:2 16 (_ _) 721:8 15 (_ #) In gnu/system.scm: 1301:19 14 (operating-system-derivation _) In gnu/services.scm: 1220:36 13 (_ _) In srfi/srfi-1.scm: 586:29 12 (map1 (#< type: # =E2=80=A6)) 586:29 11 (map1 (#< type: # =E2=80=A6)) 586:29 10 (map1 (#< type: # =E2=80=A6)) 586:29 9 (map1 (#< type: # =E2=80=A6)) 586:17 8 (map1 (#< type: # =E2=80=A6)) 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 (expectin= g struct): #f The (kernel (plain-file "fake-kernel" "")) leads to a different error: building /gnu/store/idy2sylx9zbvphzlqvhnldjvg242hd2a-linux-modules.drv.= =2E. 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): () For the record, before the pull I was successfully using this "kernel" pack= age: (define %ct-dummy-kernel (package (name "dummy-kernel") (version "1") (source #f) (build-system trivial-build-system) (arguments (list #:builder #~(mkdir #$output))) (synopsis "Dummy kernel") (description "In container environment, the kernel is provided by the host. Ho= wever we still need to specify a kernel in the operating-system definition, henc= e this package.") (home-page #f) (license #f))) Even if I adjust it to create the /lib/modules subdirectory, it just chokes= down the line on something else. I think it would be best to just support (kernel #f) for container deployme= nts, since that would simplify it and keep it manageable. Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --OMPTKsyEvWMxU2J+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmYRYX4ACgkQL7/ufbZ/ wakuuA/+Ir0/NFGzlo4+3IwZ0b6Yjv9GOoKu884tpW1nFnrwBF7Ctl1yDdcbbeHW uff5Ge9TED6cf71kIhDoPLehA5Yktbt4QoqXquk1jgDBH5e7uJ6eKhh7ls6n9Xnp DgfxPReKl6DQFqvA9pspkIuIgA20w8AH6hzsrtzvbuAl2+GhssQIDy6gQyfI6InM opfJA9Po/wQOFHtd2tMUSBOpOm5+bpYgT4MK0AMQqPN7fUpAXdis7FFGznWAm1E/ ISNCIRzeGSGPJB7uTZf9tkT09OqmXQT9h8eIQFTpGohiDnkJ09Cy0GXfQSALzU8c ne0Rb6ipCbYA25LXO56mG54bIYZ04ARzKWBLlE9FBIpqtrPN5j/9Uj522F5dayoR WQul3mDDlMt+Kr8LBfujLUMJo17nyLQR6ByCh18rXJQPQsMoHp28xL793K6epKEt rAu6ES/nNIgsUEqVlKOE3Iu/6lrtvQmyYRlSjLBcuxg3xOd08oKzwj4F8qYUm7q6 pUJBDW9L4XPM7mEz4pRgWAaw5rIdjeeVNIbxba7Scpu5RppL/r7l5gLnrB9e31ka qpyaBuk5FDeCHg0j70P5lIeH4KJfCQTGCnkifUazAFwxE6NYOaCzHbUu4NlhXq4b TIBFWJBhJ0JUd2+wO6b7qFASN3QDUGPtJj6hCx4Z2IOZdENjS8s= =3UQK -----END PGP SIGNATURE----- --OMPTKsyEvWMxU2J+--