#554683 grub-pc: Build list of kernels at boot time

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Stefan Monnier
Date:
2010-10-18 13:30:10 UTC
Severity:
wishlist
#554683#5
Date:
2009-11-05 22:19:45 UTC
From:
To:
I find that GRUB2's install is more fragile than GRUB1: I've had my disk
become unbootable (not even booting into GRUB2) with GRUB2 twice already
(still not sure how/why it happened), whereas it never happened with
GRUB1.  So I think we should aim for GRUB2's install to be something you
do once and never touch again.

A really nice way to reach this goal is to use GRUB2's advanced scripting
functionality, which would allow us to search&list all kernels at
boot time, making "update-grub" completely unnecessary.


	Stefan

#554683#10
Date:
2010-10-17 21:17:00 UTC
From:
To:
GRUB2 scripting is able to do this (see e.g. Super GRUB2 disk) but doing
so by default will only slowdown boot process

#554683#15
Date:
2010-10-18 13:15:29 UTC
From:
To:
reopen 554683
thanks

Of course, you can make it go slow by being thorough, but that's not the
only choice.  You could also statically specify which disk/partition to
search, so all it needs to do to find the list of kernels is "ls /boot".
My request is to try and make running grup-update unnecessary, and in
many cases grug-update doesn't do much more than "ls /boot".
Admittedly, I don't have os-prober installed, so maybe reproducing the
behavior of os-prober would make it slower, in which case this part
could still be performed during grub-update rather than during boot.


        Stefan