From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sxo9DQVz5l4HZgAA0tVLHw (envelope-from ) for ; Sun, 14 Jun 2020 18:57:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id sCTNCAVz5l4dBgAA1q6Kng (envelope-from ) for ; Sun, 14 Jun 2020 18:57:09 +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 AB9609404C7 for ; Sun, 14 Jun 2020 18:57:08 +0000 (UTC) Received: from localhost ([::1]:39990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkXoZ-0005yH-Ba for larch@yhetil.org; Sun, 14 Jun 2020 14:57:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkXoT-0005y7-Vb for guix-patches@gnu.org; Sun, 14 Jun 2020 14:57:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jkXoT-00042g-Mf for guix-patches@gnu.org; Sun, 14 Jun 2020 14:57:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jkXoT-0006AR-M5 for guix-patches@gnu.org; Sun, 14 Jun 2020 14:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41011] [PATCH] gnu: grub: Support for network boot via tftp/nfs. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 14 Jun 2020 18:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41011 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Danny Milosavljevic Cc: Stefan , 41011@debbugs.gnu.org Received: via spool by 41011-submit@debbugs.gnu.org id=B41011.159216099323673 (code B ref 41011); Sun, 14 Jun 2020 18:57:01 +0000 Received: (at 41011) by debbugs.gnu.org; 14 Jun 2020 18:56:33 +0000 Received: from localhost ([127.0.0.1]:44508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkXo0-00069l-Sl for submit@debbugs.gnu.org; Sun, 14 Jun 2020 14:56:33 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:35195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkXny-00069V-Ap for 41011@debbugs.gnu.org; Sun, 14 Jun 2020 14:56:31 -0400 Received: by mail-qt1-f195.google.com with SMTP id z1so10996709qtn.2 for <41011@debbugs.gnu.org>; Sun, 14 Jun 2020 11:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=SirjVjAeJT5ei0PNuIxIbpRHNRcN/7nPnBhDK+XoEcY=; b=AMfNSLNL1nqrJHeTBM8Uuu81lejd+6mUTBi+NPJWPoKyy5uwropWv13lvfPk49geyT BhPkVtrIWXamD0WXuc0M2fo1EDuHLR2JUCRTSqpDzaL8Px866BamqCFBzKHW+XrqNmM5 OYjS//ie3DxJxi+QZ3rq6lF0Jpz0ZLtt9zCJ6n4RFp8Is7cyf224/SFZPSSRJ4X1SRL7 MQREQD5V9tvbSmHQ3V47Wxn1VNJMV5/R8+kcjI8e2pwzt//ge9tyZLEPIP46zjGUvOO5 dMu6SPGU5gPuorozYwHQ/fBL1ALKc9ufxmDQ855/MVxIJTX5v3Go87RU9XH6+fwcPO7Y Lpkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=SirjVjAeJT5ei0PNuIxIbpRHNRcN/7nPnBhDK+XoEcY=; b=tTGc6O5B2u3aB86F+3pOgIIQp1RYdb9iHUL2LAUzMdAHAvXeYPLgh4Jh0CkoShSEpS zi5nyKssZhpgw95Ewwl8k+wrI2V6mQ5gPD+cx9ccQxdxutPc7ASqMIeFsDePd2/M5OJ7 wHwtWtP5q50v//5+RHjGY6Szrj7KMcEFxb+2Z7HnHCyh+cZ5zx5JPzokB4LSuRK1zp6B w2QAXfEfdVUAwim6OLJS85AzjpXfznli7YcJW9SO0AyCv5W2T7VU7hb1elk1MHD5R9vU cux/98OiYEKFFBRayHH2Y8seyyzdJwuZiZXoHs0iA/ZwmSHHJAI3WFdbjJn6VORIf8gL UoMA== X-Gm-Message-State: AOAM533RXFo/9o1ZTEtDXMvoeOF50fGzufqqx1ILIr43R5lKYkEXv6zR HJ7Qa7hQLsWrisMUAyJRZGiI9/DOapw= X-Google-Smtp-Source: ABdhPJy1HQ1KQ3vAUmuQEmM95iuFiKpYsHGCCfMb95Ntc6aDlBhy8urGhmycpxT/tg/kfCym4hn68g== X-Received: by 2002:ac8:7252:: with SMTP id l18mr12390264qtp.71.1592160984625; Sun, 14 Jun 2020 11:56:24 -0700 (PDT) Received: from hurd (dsl-10-134-19.b2b2c.ca. [72.10.134.19]) by smtp.gmail.com with ESMTPSA id g51sm10399285qtb.69.2020.06.14.11.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2020 11:56:24 -0700 (PDT) From: Maxim Cournoyer References: <9AAFEFF4-8ACE-4C95-975F-67C3F4FDAF81@vodafonemail.de> <87a72gi4kz.fsf@gmail.com> <1179D890-7D6C-43D8-A286-DA7A0F61D585@vodafonemail.de> <87h7w7cc55.fsf@gnu.org> <92DB8E2B-1CA2-41AE-9265-53C4F5337686@vodafonemail.de> <20200606193721.1e126131@scratchpost.org> <46CD97B3-9994-4AB7-AA7D-4DE39AB7A238@vodafonemail.de> <20200609154400.4c7d2f90@scratchpost.org> <87bllqi66g.fsf@gmail.com> <20200611151937.204ad14d@scratchpost.org> Date: Sun, 14 Jun 2020 14:56:23 -0400 In-Reply-To: <20200611151937.204ad14d@scratchpost.org> (Danny Milosavljevic's message of "Thu, 11 Jun 2020 15:19:37 +0200") Message-ID: <87eeqhh3xk.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=AMfNSLNL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: tseCbIkl3EWY Hello Danny, Danny Milosavljevic writes: > Hi Maxim, > Hi Stefan, > > On Thu, 11 Jun 2020 00:21:11 -0400 > Maxim Cournoyer wrote: > >> > (define (device-string->file-system-device device-string) >> > ;; The "--root=3DSPEC" kernel command-line option always provides a >> > ;; string, but the string can represent a device, a UUID, a >> > ;; label or a NFS spec. So check for all three. >> > (cond ((string-prefix? "/" device-string) device-string) >> > ((uuid device-string) =3D> identity) >> > (else (file-system-label device-string)))) >> > >> > But looking at the condition (uuid device-string) I have no idea what = that means, >> > or is bound to!=20=20 >>=20 >> It means that if the device-string (a string as its name imply) contains >> something that represent a UUID, return its corresponding UUID object. >> `uuid' comes from (gnu system uuid). Does that answer your question? > > Oh! I've looked at now it but I still don't get it. Perhaps the '=3D>' syntax is the reason why? The the Guile Reference info manual defines it as such: For the =E2=80=98=3D>=E2=80=99 clause type, EXPRESSION is evaluated and the resulting procedure is applied to the value of TEST. The result of this procedure application is then the result of the =E2=80=98cond=E2=80=99-expression. (uuid device-string) returns either #f or a uuid object. So applying the identity function to a uuid object yields that same object. HTH! Maxim