From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qP9VJfcUF2CoKgAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 20:37:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gOwXIfcUF2DMawAAB5/wlQ (envelope-from ) for ; Sun, 31 Jan 2021 20:37:11 +0000 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 E0FA89404DF for ; Sun, 31 Jan 2021 20:37:10 +0000 (UTC) Received: from localhost ([::1]:54992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6JT3-0005Zt-Sx for larch@yhetil.org; Sun, 31 Jan 2021 15:37:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6JSv-0005Zd-Vj for bug-guix@gnu.org; Sun, 31 Jan 2021 15:37:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6JSv-00044G-OE for bug-guix@gnu.org; Sun, 31 Jan 2021 15:37:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6JSv-0005cT-MS for bug-guix@gnu.org; Sun, 31 Jan 2021 15:37:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46209: 46043 breaks booting with custom shepherd package Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 31 Jan 2021 20:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46209 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Oleg Pykhalov Received: via spool by 46209-submit@debbugs.gnu.org id=B46209.161212537721534 (code B ref 46209); Sun, 31 Jan 2021 20:37:01 +0000 Received: (at 46209) by debbugs.gnu.org; 31 Jan 2021 20:36:17 +0000 Received: from localhost ([127.0.0.1]:58182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6JSC-0005bF-Nj for submit@debbugs.gnu.org; Sun, 31 Jan 2021 15:36:17 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:45138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6JS9-0005b4-Hl for 46209@debbugs.gnu.org; Sun, 31 Jan 2021 15:36:14 -0500 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by laurent.telenet-ops.be with bizsmtp id PYcB2400E0mfAB401YcB6p; Sun, 31 Jan 2021 21:36:11 +0100 Message-ID: <5240046905c259cac672ab29cc4da791675aa99d.camel@telenet.be> From: Maxime Devos Date: Sun, 31 Jan 2021 21:35:59 +0100 In-Reply-To: <87lfc8lwdx.fsf@gmail.com> References: <87im7dp93p.fsf@gmail.com> <9e86e296320b9b31aa132e8df050a664b0ea6146.camel@telenet.be> <87lfc8lwdx.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-HCwAx2FRv+a4QHdknBuO" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1612125371; bh=7qox0ta+0C7lEbPc+WbcD+DD4AXqBjXdSUJefh8VPyQ=; h=Subject:From:Reply-To:To:Cc:Date:In-Reply-To:References; b=qIT0k4hDYgACMwOJ8cA8RFIRpExalBVso1uw7650Xt9EJGrcnW8utqGLM8hjVbstX GMtfd6z+0gba0v49yxZgWuDMcZXel97oxXWkIfB34msIO4WXu8xMkC3ZAq2w0ui7Ql AmJVL7UIYwemSqaA+bvQBGMmkQM50sGkGW/a0TNVU4IGOtdbp3+IXhP1bTz83mmF6i wO9eWseail3C2gX54G3FUhTrFj+btGeXeZ7cjKn8sTrNIjEtd/fHdIgVVm0CUIvi9N X/F+rfBupTwtDsdTVFFvbzS7NBy0EkHI8ePXQuKqG/m0sS4I0NgPiq0BGiPm6U7UfD EFAFZBY0AYq/g== 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: , Reply-To: 46209@debbugs.gnu.org, Maxime Devos Cc: 46209@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=qIT0k4hD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: E0FA89404DF X-Spam-Score: -3.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: +ly+iEJ/O8pf --=-HCwAx2FRv+a4QHdknBuO Content-Type: multipart/mixed; boundary="=-GvGZddsSrHiDSqdh4Dd1" --=-GvGZddsSrHiDSqdh4Dd1 Content-Type: multipart/alternative; boundary="=-ovawyteO5iLtXtfkSBCE" --=-ovawyteO5iLtXtfkSBCE Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 2021-01-31 at 22:49 +0300, Oleg Pykhalov wrote: > (operating-system >=20 > (inherit base-system) >=20 > (essential-services >=20 > (modify-services (operating-system-default-essential-services base-s= ystem) >=20 > (shepherd-root-service-type config =3D> (shepherd-configuration >=20 > (inherit config) >=20 > (shepherd shepherd))))))) I'm currently running "guix time-machine etcetera", which hasn't completed = yet, but here's some quick speculation on what could have went wrong: You shouldn't write (operating-system-default-essential-services base-syste= m), but rather (operating-system-default-essential-services this-operating-syst= em). The essential-services field is thunked, basically that means that the expr= ession under essential-services can refer to the operating-system definition itsel= f, using the macro this-operating-system. A potentially fixed configuration is attached, I'll try to run it in a VM. --=-ovawyteO5iLtXtfkSBCE Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Sun, 2021-01-31 at 22:49 +0300, Oleg Pykhalov wrote:
  (operating-system
    (inherit base-system)
    (essential-services
     (modify-services (operating-system-default-essenti= al-services base-system)
       (shepherd-root-service-type config =3D= > (shepherd-configuration
            &nb= sp;            =             &nb= sp;        (inherit config)
            &nb= sp;            =             &nb= sp;        (shepherd shepherd)))))))

I'm currently running "guix time-machine etcet= era", which hasn't completed yet,
but here's some quick speculati= on on what could have went wrong:

You shouldn't wr= ite (operating-system-default-essential-services base-system),
bu= t rather (operating-system-default-essential-services this-operating-system= ).

The essential-services field is thunked, basica= lly that means that the expression
under essential-services can r= efer to the operating-system definition itself,
using the macro t= his-operating-system.

A potentially fixed configu= ration is attached, I'll try to run it in a VM.
--=-ovawyteO5iLtXtfkSBCE-- --=-GvGZddsSrHiDSqdh4Dd1 Content-Disposition: attachment; filename="reproduce-shepherd-bug.scm" Content-Type: text/x-scheme; name="reproduce-shepherd-bug.scm"; charset="us-ascii" Content-Transfer-Encoding: quoted-printable ;; Generation 120 Jan 31 2021 01:15:12 (current) ;; guix eb6b061 ;; repository URL: https://git.savannah.gnu.org/git/guix.git ;; branch: master ;; commit: eb6b061320418fdbd49ecb72c366e43ff7a38dbc ;; ;; env GUIX_PACKAGE_PATH=3D$PWD guix system build vm-image.tmpl ;; env GUIX_PACKAGE_PATH=3D$PWD guix system vm vm-image.tmpl (use-modules (gnu) (guix) (srfi srfi-1)) (use-service-modules shepherd networking ssh) (use-package-modules admin bootloaders certs nano) (operating-system (host-name "gnu") (timezone "Etc/UTC") (locale "en_US.utf8") (firmware '()) ;; Below we assume /dev/vda is the VM's hard disk. ;; Adjust as needed. (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/vda") (terminal-outputs '(console)))) (file-systems (cons (file-system (mount-point "/") (device "/dev/vda1") (type "ext4")) %base-file-systems)) (users (cons (user-account (name "guest") (comment "GNU Guix Live") (password "") ;no password (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video"))) %base-user-accounts)) ;; Our /etc/sudoers file. Since 'guest' initially has an empty password, ;; allow for password-less sudo. (sudoers-file (plain-file "sudoers" " root ALL=3D(ALL) ALL %wheel ALL=3DNOPASSWD: ALL\n")) (packages (append (list nano nss-certs) %base-packages)) (essential-services (modify-services (operating-system-default-essential-services this-operating-system) (shepherd-root-service-type config =3D> (shepherd-configuration (inherit config) (shepherd shepherd))))) (services (append (list ;; Uncomment the line below to add an SSH server. ;;(service openssh-service-type) ;; Use the DHCP client service rather than NetworkManager. (service dhcp-client-service-type)) ;; Remove GDM, ModemManager, NetworkManager, and wpa-supplicant, ;; which don't make sense in a VM. (remove (lambda (service) (let ((type (service-kind service))) (or (memq type (list wpa-supplicant-service-type network-manager-service-type modem-manager-service-type)) (eq? 'network-manager-applet (service-type-name type))))) %base-services)))) --=-GvGZddsSrHiDSqdh4Dd1-- --=-HCwAx2FRv+a4QHdknBuO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYBcUsxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7nGaAP4hKDTAgMYCQeY+1+zyLCsVEh1b 6u2hrikaB8wUL1nA4wD/UCoI4zhH1ffunTtaXVWr8zpQSdzLxuVFZJsQWiyKaws= =0vXf -----END PGP SIGNATURE----- --=-HCwAx2FRv+a4QHdknBuO--