From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id odt3JxR25l4DBAAA0tVLHw (envelope-from ) for ; Sun, 14 Jun 2020 19:10:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8DEuIxR25l61LgAAbx9fmQ (envelope-from ) for ; Sun, 14 Jun 2020 19:10:12 +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 663B8940058 for ; Sun, 14 Jun 2020 19:10:11 +0000 (UTC) Received: from localhost ([::1]:48076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkY1A-0002Zt-Ab for larch@yhetil.org; Sun, 14 Jun 2020 15:10:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkY14-0002Za-AM for guix-patches@gnu.org; Sun, 14 Jun 2020 15:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jkY14-0006QS-0j for guix-patches@gnu.org; Sun, 14 Jun 2020 15:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jkY13-0006Tu-RY for guix-patches@gnu.org; Sun, 14 Jun 2020 15:10: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 19:10: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: Stefan Cc: Danny Milosavljevic , 41011@debbugs.gnu.org Received: via spool by 41011-submit@debbugs.gnu.org id=B41011.159216179524897 (code B ref 41011); Sun, 14 Jun 2020 19:10:01 +0000 Received: (at 41011) by debbugs.gnu.org; 14 Jun 2020 19:09:55 +0000 Received: from localhost ([127.0.0.1]:44512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkY0x-0006TV-2m for submit@debbugs.gnu.org; Sun, 14 Jun 2020 15:09:55 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:34423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jkY0v-0006TH-1q for 41011@debbugs.gnu.org; Sun, 14 Jun 2020 15:09:53 -0400 Received: by mail-qt1-f196.google.com with SMTP id u17so11037422qtq.1 for <41011@debbugs.gnu.org>; Sun, 14 Jun 2020 12:09:53 -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=9OF8jnYyv74LOtLNUwnDcsRajrmFdWtgyYCaB75O+9A=; b=t6F2/QW5mddQnBOX59lWG96WXFNJAE6giYNyjZiAIEO0ZmhRec7r4XWjPdDf3Odh9W SBZoJJ2izCKA09S4dH1RYzYZteF9v9qfX9vT04FHmXkMEwOdUXFHX+2kj/lu8RzyeyCW /rW53OFMK10D8Cq0zFJpB9CIHv/fiXsj2F80/aZiOUxDtijw1y8yqmERP0c4j031QAND FHgJRautP9iDRmfyPEo45EjyO46OwGCMvffCKRpVS256/D69L7UqmjZjpJN1A2KpM3q4 AJfeXL7NXiA6U2tjhmFDbVctiQpXwNlDxnez7NQqwlo3rN26kmbjsXbqVs4cMm+uC/cf +MuA== 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=9OF8jnYyv74LOtLNUwnDcsRajrmFdWtgyYCaB75O+9A=; b=M9ni9HTYH8L2MJh6/jm8MrnyPuudll1fSZ7LzC1ua/Z30lrgAZCRn7JjqnISOsp0Dy AZHFd9IyP0lrgHxG+wc2mkbIVbNQNFHO93G/VIUU1VOzxf/YR25xjUv1psSzJC+st5aS ByV3bP8AdwvRXXuoQqbJefmIFI7BTSf5ZVOWxDXYd+7qPgvTRJhLHbwDxcil1j+2wKop 35WAAEZ/FP9KpBZj3f/s4xfGI28SbqKbISL+YUq3AR4TYZDRXzGH+CER67DH4y9z0KxC 2enKhGg7lSv3s2AX+bD/gikYQde5g6cyRupgUtRajZcLuHWudkLVCPSKs5FliDqI5nVw qPdQ== X-Gm-Message-State: AOAM531PA46/QaPAlYVn4hbq94fUqBnGrWLd1dTFuAWcmXfIbs0MIiqE Dx7oY4XT9P0tVo4JL3AJe6sY6EcSUes= X-Google-Smtp-Source: ABdhPJyoC+9AXIJW6SjzdGmZ11I+uVrU/hM2O7QLxjEDgVDSedImtX3n9ePVkmCWA0W5JUuR+P++iA== X-Received: by 2002:ac8:4143:: with SMTP id e3mr12190050qtm.28.1592161787315; Sun, 14 Jun 2020 12:09:47 -0700 (PDT) Received: from hurd (dsl-10-134-19.b2b2c.ca. [72.10.134.19]) by smtp.gmail.com with ESMTPSA id x54sm10787340qta.42.2020.06.14.12.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2020 12:09:46 -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> Date: Sun, 14 Jun 2020 15:09:46 -0400 In-Reply-To: (Stefan's message of "Fri, 12 Jun 2020 02:06:27 +0200") Message-ID: <87a715h3b9.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=t6F2/QW5; 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: rQ8sUjFBn8hy Hello Stefan! Stefan writes: [...] > Regarding =E2=80=98grub efi net=E2=80=99: Just take a look at the GRUB > manual. Actually GRUB is not dealing with NFS at all, it is using TFTP > to load files. Only Linux uses NFS to mount its root file system. I see. Then we're talking about TFTP support in GRUB, and it doesn't seem to depend on EFI at all (which is good!). >> When booting >> from NFS using the nfsroot Linux option, it's possible to specify a >> '/dev/nfs' as the root kernel parameter. /dev/nfs is not a real block >> device, it's just a stub hinting the kernel that its root file system is >> on NFS. Perhaps that can be used? > > These =E2=80=9Croot=3D/dev/nfs rootfstype=3Dnfs nfsroot=3D=E2=80=A6 ip=3D= =E2=80=A6=E2=80=9D kernel arguments > only make sense if an initrd can be omitted. Either the initrd or such > a root-nfs becomes the root file system at startup. As the guix system > is currently relying on an initrd, this is not an option. I see. Thanks for explaining, I understand the plan better now. > Further you would need to ensure that certain CONFIG_NFS=E2=80=A6, CONFIG= _IP=E2=80=A6 > and even more options for your network interface are set to =E2=80=98=3Dy= =E2=80=99 to > ensure that Linux can make use of an nfs-root. Yes. For having done it recently, enabling the NFS support in the kernel doesn't require much change, but then supporting a vast array of network cards directly in the kernel doesn't sound too appealing. IIUC, going through an initrd allows dynamically loading kernel modules instead of having them statically built in the kernel (so that a user could add a network module of their choice to their OS declaration without having to rebuild the default kernel), which is why it's better to go that route in Guix. Am I understanding things correctly? Thanks! Maxim