grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub2-common: grub.cfg gains wrong root settings for multi-OS system


From: Bruce Dubbs
Subject: Re: grub2-common: grub.cfg gains wrong root settings for multi-OS system
Date: Sun, 23 Apr 2017 12:10:15 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39

Andrei Borzenkov wrote:
23.04.2017 08:43, Ralph Ronnquist пишет:
For all installs, I made it mount /dev/sda1 at /boot but only the
first install formatted it.

Shared /boot never worked reliably. With or without grub. Sorry.

It works perfectly if you don't use grub-mkconfig. For those using multiple kernels/partitions, grub.config can be quite simple to maintain with an editor.

http://www.linuxfromscratch.org/lfs/view/stable/chapter08/grub.html

That page shows a 7 line grub.cfg.  For a new system you only need to add:

menuentry "New title" {
        linux   /<kernel-name> root=/dev/<partition> ro
}

An initrd line is only needed if you need an initial ram disk.

You do need to keep a backup as distros always want to overwrite grub.cfg by running grub-mkconfig.

  -- Bruce



reply via email to

[Prev in Thread] Current Thread [Next in Thread]