From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?VG9tw6HFoSDEjGVjaA==?= Subject: Re: [PATCH] linux-initrd: Introduce way to add more packages to initrd. Date: Tue, 2 Aug 2016 20:03:28 +0200 Message-ID: <20160802180327.GJ1062@venom> References: <20160725074606.66hhcgeehmcsv2pf@venom> <20160725201002.7211-1-sleep_walker@gnu.org> <20160801103933.GD1062@venom> <87h9b4qxnb.fsf@gnu.org> <20160801182636.GG1062@venom> <871t27wcux.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="X+nYw8KZ/oNxZ8JS" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUe2S-0007YV-8F for guix-devel@gnu.org; Tue, 02 Aug 2016 14:03:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUe2O-0007EW-2T for guix-devel@gnu.org; Tue, 02 Aug 2016 14:03:36 -0400 Content-Disposition: inline In-Reply-To: <871t27wcux.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?iso-8859-1?Q?Court=E8s?= Cc: guix-devel@gnu.org --X+nYw8KZ/oNxZ8JS Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 02, 2016 at 02:53:58PM +0200, Ludovic Court=C3=A8s wrote: >Hello, > >Tom=C3=A1=C5=A1 =C4=8Cech skribis: >>>All the packages used by the initrd are automatically part of the >>>initrd. The proposed patch would allow people to add unused packages to >>>the initrd. >> >> It is for the packages which you may want to use interactivelly in >> case of failure or for some extra initrd hacking you may not want/be >> able to write in Guile. >> >> Features like >> - extra authentication >> - full disk encryption >> - root on NFS >> - LVM :) >> - ... > >OK but if you need these packages, for instance because you have a LUKS >boot device, they=E2=80=99ll already be in the initrd. No need to manuall= y list >them in #:extra-packages. That is correct only for cases which are already handle. Last time I booted from LVM it didn't work. IOW your answer is valid for user but not for (potential) contributor. This can help me (and possibly others) to write it. Otherwise it is hard to write for Guix in Guile because it is hard to write for Guix in Guile. My solution is not perfect but helps. >>>Could you explain how/when this would be used? Maybe as commands for >>>use by Bournish when it=E2=80=99s used as a rescue shell? >> >> I agree that it is more for debugging and to balance my inability to >> express it in Guile but it lowers the barrier a bit. >> >> Bournish is too young to rely on it. I miss pipes, accessing files in >> different directories or `ls' with wildcards. I can put in minimal >> static busybox which is more than sufficient for rescue, problem >> analysis or even data recovery. >> >> I like the idea of Bournish but I'd rather have an alternative >> until it is more capable. > >I agree, but hopefully, you don=E2=80=99t run into Bournish too often? Of course I did until I used exactly this patch and was able to solve my problem. >I guess my main concern (again, as a lazy maintainer) is the cost of >turning =E2=80=98base-initrd=E2=80=99 into a kitchen sink, as discussed in= the other >thread about #:extra-modules. > >I would prefer to provide simple tools that people can build upon, like >=E2=80=98expression->initrd=E2=80=99 or the =E2=80=98raw-initrd=E2=80=99 p= rocedure I proposed, than >trying to come up with a one-size-fits-all procedure with many >parameters. I know that your approach is cleaner and nicer for any Guile programmer. On the other hand it can be harder to use for the rest of the world. Kitchen sink issue is matter of configuration and we're all adults here, we can make our decisions. I'm not ignoring your proposal but - I haven't seen a way how it could help me in previous thread - I'm afraid I can't deliver you such solution until I improve my Guile skills. I'm fine with keeping my patches out of tree (they can be found in devel mailing list if anyone is interested in it), I just don't think that I'm the only one facing this sort of problems. I'm sorry I didn't provide you more constructive answer. S_W --X+nYw8KZ/oNxZ8JS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXoOBdAAoJEEoj40+gM0NtVHcQAIbXpcVZR7+Y6GjHNZhuqRHq iI8cGHAlJV92IZhZ4h0IYUX4d3IqB88pFlPbN9BoyDrXehNB8mrHecu9SeSVadwi 1t5na+l6srrAOSOVvqbb9wUPRcvmucx1vSxRbFmwocmrDsZtM/Rcem6YgS/VRHP2 2nvgMFDev8t11EOwYJDl5GqS6euqL/N5yzqso4HPbmcatH5jA4D3RaFpKARDij4q SibvQIbNtfVYv/6ECvBnY/gCgbf4Hl9MjJWPWWw4xAlsbzQW21gGLaCnlN42EGdD D3eNtNVC8b/uAYRQfgXazhLLTjp4BLa6aQ7FQxou0zAMnOszDDWXrgqD1ZrK6pP5 HD2dYDCFZRvI7zeTnrh+wSqWHuBD5wTznM8TRR9RCCp0gWPZfYHhOSulUDuYqvwo oLXf4dP1K5vFwwB7ee2hPtKxSQ6WzVmxYXEAOz5/BoJqrF6GutKTJxZYezcYtASM ZW9f23cEsUWHQu53J8YT3HLOyEIEPuZn3c8DJzvuBoch2LteWPfb8vL44xS6JRNX ORUeicoK2W0800f+scbmB9U1SFMJ83BtD7x4WrJTBtaYDzDR4lJWQfEpUD+4HCSR 2x2ZicV/XRrZHDqZ+oWBfrwU11x36ZNFh27hk9sZP6Da/rK0g7MRHgnx+5/3xcO5 mkofLYZ+ViWjFFUS3TXD =Ft09 -----END PGP SIGNATURE----- --X+nYw8KZ/oNxZ8JS--