From mboxrd@z Thu Jan 1 00:00:00 1970 From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Subject: bug#36876: guix system delete-generations removes custom boot menu entries Date: Tue, 06 Aug 2019 14:27:47 -0400 Message-ID: <87k1bqdu8s.fsf@sdf.lonestar.org> References: <20190731094857.28829b11@gmail.com> <8736ifzjfe.fsf@sdf.lonestar.org> <20190806183234.5e7714c2@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36557) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hv4Bn-0007BT-Oo for bug-guix@gnu.org; Tue, 06 Aug 2019 14:28:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hv4Bm-0006DE-Mh for bug-guix@gnu.org; Tue, 06 Aug 2019 14:28:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57170) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hv4Bm-0006D4-Il for bug-guix@gnu.org; Tue, 06 Aug 2019 14:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hv4Bm-0004LG-EW for bug-guix@gnu.org; Tue, 06 Aug 2019 14:28:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20190806183234.5e7714c2@scratchpost.org> (Danny Milosavljevic's message of "Tue, 6 Aug 2019 18:32:34 +0200") 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: 36876@debbugs.gnu.org, Jesse Gibbons --=-=-= Content-Type: text/plain Hi Danny, Danny Milosavljevic writes: > Hi Jakob, > > keep in mind that switching back to a previous generation could also entail a > switch of bootloader projects. It does you no good to parse the grub config to > find menu entries and then append them to u-boot. > > Fundamentally, it would be best if either the bootloader is part of the state > that guix manages (and each time uses), or it isn't; not both. > > Current situation: > > * If you select a previous generation in the boot menu, then the state that is > selected does NOT include the bootloader (i.e. it doesn't change the bootloader > or the bootloader config). > > * If you do "guix system reconfigure", the state that is saved includes only > the bootloader in the boot sector (simplified) but not the bootloader installer > or the bootloader derivation. > > * If you do "guix system delete-generations", the state that is restored does > not include the bootloader installer and previous bootloader configuration. > > Clearly, it's not nice to have these different things happen. > > It would be better if we retained the generation's bootloader installer > and bootloader config and reinstalled it on each of those. > > So, I would suggest to retain the following for each system generation: > > * The bootloader package derivation > * The bootloader config derivation > * The bootloader installer derivation > > And to install the bootloader each time using the latter. > > This introduces cycles--not sure whether that's a problem or not. > For the GC I think it's not a problem. Thank you for your comments -- after reading this and Jesse's suggestion, I'm quite confident that this is the way to go about it. Regards, Jakob --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1JxqMACgkQ9Qb9Fp2P 2Vqb8g//ZObyAhO6cNTFAHob4iC/ygNuKL3qVKKpe5fGOrsZaAgQFxRON+1pgUem RFMLdXaAqVbd26nthZSGZWTA1QYbEAEhwlapFv+1ZDIm9BAk0r+hz1TJ5Awz8AZW v4BM4MrzG6iZMJ8MBZ6t2II29H60J6hPk29DIYU67FW8NlsqKUdQOfl5jOAh99lq LDwjByhuCWzn02gZkfv7Sp8CRcYRxB67jy4byN2oH6VGpCqAr0MPOkP3vUIg7j5p onvmT3Pt5MSa60wwSo92EiNmmZYd/QyV/B1Rg7ug7+nIu3Mbu9r/MgpcJUFMMWRU /MPbZ8LU8D+YnI5D4y8tfQnGjw9qb1o/GtCDklu5CKNxJOV7115UyCMAy62/oXXI N5NfkygfM4KRbPk5FAV1RSVncwVaxPIb3xe+EY1717HJavA38MdB++cVMF+Mzb2k fAt/NL/5NYrAbi00Y1STZDvOjmQOndGemoeb8g0H3OC9X0yQH1zX9bf8oc/3Qcd2 4TSso5mBC06/rZAkTYkpaMyWVfwV5fpBop4fTdI4q5tn8hcB1dHAayfKItmbwBOk iCC97LsJUjGH8fDxz/yrq+qrk90nTunZdK0Bg9iCJJvKDAYrRQ8rw2j98Jv4TdTX gJ+anlbTc9e9IdN+xVI4foLNCRhAw2JLB/Jbdk8qWt79ezOOsJc= =wCog -----END PGP SIGNATURE----- --=-=-=--