unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: guixuser6392 via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 44898@debbugs.gnu.org
Subject: bug#44898: [wishlist] Make the GRUB installation procedure smarter
Date: Thu, 26 Nov 2020 23:15:58 +0000	[thread overview]
Message-ID: <8xxH7oMlchpQqTKfkQXnJPhhoetZDQbFldlVKSNNlELUWA_WMMr3PLEjlUhsjrDQkWPwAinml4aAgLDArwcjehjdt0WrWOh9mPej2TxLgAE=@protonmail.com> (raw)

Every time the operating system is instantiated the GRUB boot-loader is inexplicitly re-installed. This behaviour leads to unsolicited changes to the user's boot configuration on UEFI systems; and leads to unnecessary write operations on the ESP, and/or the MBR, which, in case they are abruptly aborted during the building of the install-bootloader derivation, can leave the system in an unbootable state. Futhermore, frequent writes to the platform's NV-RAM may negatively impact its lifespan.

NixOS stores the GRUB derivation as well as boot parameters in a state file, and only re-installs the boot-loader if the computed state is different from the stored state: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/boot/loader/grub/install-grub.pl#L626. However, unless I am mistaken, that alone will not prevent GRUB from altering the user's boot configuration in a scenario, in which we want GRUB to be re-installed because it has received an update.

To summarize, I think that consecutive grub-install invocations should not be allowed to modify the user's boot configuration on UEFI systems, and that we should teach Guix to only re-install the boot-loader if the boot parameters has been changed and/or the GRUB package has been upgraded.

Although other boot-loaders are not in the scope of this wish, brining their installation procedures to the same high standard would be beneficial, too.




             reply	other threads:[~2020-11-27 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-26 23:15 guixuser6392 via Bug reports for GNU Guix [this message]
2020-11-27 20:00 ` bug#44898: (No Subject) guixuser6392 via Bug reports for GNU Guix
2021-09-05  1:27 ` bug#44898: [wishlist] Make the GRUB installation procedure smarter muradm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='8xxH7oMlchpQqTKfkQXnJPhhoetZDQbFldlVKSNNlELUWA_WMMr3PLEjlUhsjrDQkWPwAinml4aAgLDArwcjehjdt0WrWOh9mPej2TxLgAE=@protonmail.com' \
    --to=bug-guix@gnu.org \
    --cc=44898@debbugs.gnu.org \
    --cc=guixuser6392@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).