From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#30916: Request: add a short description field for os-configuration Date: Sat, 24 Mar 2018 17:00:46 +0000 Message-ID: <20180324170046.sl4hpkmblp5tzpzz@abyayala> References: <20180323141537.64xtvlgalhlzlz3z@abyayala> <06f52ff5-4019-e449-1f56-a585c759abb1@uni-bremen.de> <20180324124556.7x36ap6mfeugc7pa@abyayala> <017b6770-3168-5d63-3dd5-e6c3b590f527@uni-bremen.de> <20180324175438.2ff4e55e@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qays2pepb6zp63xw" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezpOr-0004Va-90 for bug-guix@gnu.org; Sat, 24 Mar 2018 16:05:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezpNn-0004aM-90 for bug-guix@gnu.org; Sat, 24 Mar 2018 16:04:25 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43759) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezmXO-0001C1-JU for bug-guix@gnu.org; Sat, 24 Mar 2018 13:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ezmXO-0003vB-7q for bug-guix@gnu.org; Sat, 24 Mar 2018 13:01:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <20180324175438.2ff4e55e@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 30916@debbugs.gnu.org, ng0 --qays2pepb6zp63xw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Danny Milosavljevic transcribed 2.9K bytes: > Hi Martin, >=20 > On Sat, 24 Mar 2018 14:56:03 +0100 > Martin Castillo wrote: >=20 > > ng0 wrote: > > > So basically you want a field in the operating-system declaration whe= re you > > > can _manually_ set a description of a certain maximum length which wi= ll be > > > added to the GRUB entry of the generated system generation? =20 > > yes >=20 > I wonder whether this description can be generated instead - we have all > the information we need - the packages, the users that are there etc. But how much space do we have in the GRUB descriptions? I have computers wi= th 800x600 or what it was resolution for the screen, and while this would be a nice feature I = wonder if there's some implications in GRUB menu readability. I'm not an expert in GRUB, I can boot without a menu, but GRUB is a small o= perating system on its own :) > Or a description could be generated only if a custom description is not s= pecified. >=20 > In fact it's easy to add this and would be a nice intro project for a > person interested in Guix development. I can mentor. >=20 > The thing used to fill the Guix bootloader entries is . >=20 > There's a procedure "operating-system-boot-parameters" which is used > to generate instances from an > declaration. >=20 > (operating-system-bootcfg calls operating-system-boot-parameters) > (perform-action calls operating-system-bootcfg) > (perform-action is in the top-level guix script) >=20 > are serialized to disk into: >=20 > /var/guix/profiles/system-704-link$ cat parameters=20 > (boot-parameters (version 0) (label "GNU with Linux-Libre 4.14.14 (beta)"= ) (root-device "dayas:/") (kernel "/gnu/store/fnk2xhicbrjsvbq082p6x0ch6npkr= g0z-linux-libre-4.14.14/bzImage") (kernel-arguments ("crashkernel=3D256M" "= modprobe.blacklist=3Dpcspkr,snd_pcsp" "quiet" "acpi_osi=3DLinux" "clocksour= ce=3Dacpi_pm" "allow-discards" "root_trim=3Dyes")) (initrd "/gnu/store/nvhk= dssz1m1p8xrggi78y8pd7jz4p3ng-raw-initrd/initrd") (bootloader-name grub) (st= ore (device "dayas:/") (mount-point "/"))) >=20 > But I wouldn't change the serialization format or what fields contain. >=20 > Just change operating-system-bootcfg to take a "description" parameter. > And change operating-system-boot-parameters to take a "description" param= eter and > use it to calculate the label. >=20 > And change perform-action to calculate the value for to "description" par= ameter in this way: > - Taking it from (or the command line?)=20 > - Falling back to an automatic value (comparing it to the previous genera= tion) otherwise. >=20 > That's it. --=20 A88C8ADD129828D7EAC02E52E22F9BBFEE348588 https://n0.is --qays2pepb6zp63xw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlq2hD0ACgkQ4i+bv+40 hYgVWBAArZpmWR2Ve24lj2wzSYV/evR1ry4b+2+Zdjxp1WNKiweTuHm/EsN4KyC8 hMyiVGDNGK3SZ7kGKZ7g0ERpfhDUllHggonYP8wzw4ExdUDytMon210htjyYilsD +GUEpseqUlw9CWJVvb2FkIfTxDwRZ3LOzaOuDxzaJD50fmICsJRkge+8h69+BOKs XuckfcV2ZgizoQsvdjwmYjlJTTKDQDZQXT1o7GBol7Hdxl+seDWQcsgPr2ySxoPe KsFgywGykAu4KyiMq2begI0xJ0snQXrYSs92+vfIjheGNrj1P0/754hA/2KK3WrZ 1jiBTfqyihH0a+NwZ+5wIhI6aV4CZy/DUl6cS7itLGaEb4ZfQ8clEmjOv7IVmv7n gGZouUGXoL8lyyYymt4Lvhug968LWWIxvlAGh1ukqIojiuqY6HgMU4Iji6TxSUdk a6lhKaYLogoW1+32fXtDRIg/dymKEbQOUc11EqUcIXizcAl/jJ4/c7Uqh27rjCKS ZfSHqErPgkkd8hzznVb5LGC9oDFERn2l6bs8ai5CREVPpiFsMGKRfVTgtl/hMW8y Acqk7Phh2MoRNLBvHRGNNJIQ8ww/IA8R6EFZ2axrS13vW8tg8KbYlyUWNawNj9BO 59jg1NoYKruW/cBCKqa5IMa02nKOs3vOzmW+NMYSjBFArQcWIio= =qCWm -----END PGP SIGNATURE----- --qays2pepb6zp63xw--