Re: Is grub perfect? (was Re: Does LXDE really require lightdm?)
On 6/28/14, Brian <ad44@cityscape.co.uk> wrote:
> On Fri 27 Jun 2014 at 23:14:26 -0400, slitt wrote:
>> that's simple: Boot the damn computer with a menu to choose predefined
>> kernel/initrd/disk combinations, and nothing else. And for gosh sakes,
>> keep it in one file. If a config option is about "pretty", leave that
>> feature out.
>
> The simplest possible grub.cfg would contain
>
> menuentry "DescriptiveMenuItem {
> linux (hd0,msdos1)/vmlinuz root=/dev/sda1
> initrd (hd0,msdos1)/initrd.gz
> }
>
> This assumes a machine with a single disk and the root file system
> (essentially where /sbin/init resides) on the first partition of the
> same disk.
>
> There we are, a predefined kernel/initrd/disk combination. Four lines in
> a single file. Problem solved.
>
> "No it's not!" will be the cry, "update-grub will overwite my grub.cfg."
> Correct; so use dpkg-divert on /usr/sbin/update-grub and those nasty,
> prettifying files in /etc/default/grub and /etc/grub.d will languish
> unused. The problem is now well and truly solved.
That was _awesome_!
Thank you so much Brian!
Zenaan
Reply to: