Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #264892

GRUB -- Debian overrides? Or maybe I just don't understand it well...

From Mark Fletcher <mark27q1@gmail.com>
Newsgroups linux.debian.user
Subject GRUB -- Debian overrides? Or maybe I just don't understand it well...
Date 2023-12-18 21:40 +0100
Message-ID <HMsz7-euji-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hello

I need help with a problem configuring grub. My main OS on the system
concerned is bookworm (was probably originally installed as bullseye,
might even have been earlier, and then has been upgraded over the
years, now at bookworm). That system is the system that has installed
grub and grub's configuration gets updated whenever a kernel update
happens in the Debian stable ecosystem.

I have now set up an LFS (Linux from Scratch) installation on the same
box, on a brand new SSD installed into the machine for the purpose. So
I want to be able to dual-boot. I have been able to get a grub.cfg
including the LFS system but the root of the LFS system is being
specified by device name and that is a problem.

There are also a couple of existing, older SSDs in the machine, one of
which contains an older installation of Debian which I don't use any
more but haven't quite brought myself to delete (although will
eventually), and one is mounted as /opt in my main system.

Because I want to dual-boot with the LFS system I turned on the
os-prober in /etc/default/grub. Running update-grub then duly finds
the LFS system and sets up configuration in grub for it (it also finds
the old Debian system, which I'd prefer to keep out of grub but that's
not a big deal for now).

Both old and current Debian installations use LVM and initrd. The LFS
instance uses neither.

I just don't seem to be able to persuade update-grub to put
root=UUID=<blah> or root=PARTUUID=<blah> into the linux command line
for the LFS system. Because update-grub is going to be run every time
there is a kernel update in Debian, I need it to work and just
overriding it by hand isn't a solution.

Instead it is using root=/dev/sdX2. The problem is over the last few
boots I have seen the SSD containing the LFS system come up as
/dev/sda, /dev/sdb and on this boot now, /dev/sdc.

According to the grub-mkconfig documentation[1], if I make sure
GRUB_DISABLE_LINUX_UUID and GRUB_DISABLE_LINUX_PARTUUID are both set
to false, in the absence of an initrd it should use "root=PARTUUID=<>"
in the linux command line, but when I run update-grub that is not
happening, and the device identifier is being used instead.

Can anyone explain why, and how I can fix this in a way that will
still work the next time the bookworm kernel gets an update?

Thanks

Mark

[1] https://www.gnu.org/software/grub/manual/grub/html_node/Root-Identifcation-Heuristics.html#Root-Identifcation-Heuristics

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

GRUB -- Debian overrides? Or maybe I just don't understand it well... Mark Fletcher <mark27q1@gmail.com> - 2023-12-18 21:40 +0100
  Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Richmond <dnomhcir@gmx.com> - 2023-12-18 22:00 +0100
  Re: GRUB -- Debian overrides? Or maybe I just don't understand it  well... Felix Miata <mrmazda@earthlink.net> - 2023-12-18 23:20 +0100
    Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Mark Fletcher <mark27q1@gmail.com> - 2023-12-20 01:30 +0100
      Re: GRUB -- Debian overrides? Or maybe I just don't understand it  well... Felix Miata <mrmazda@earthlink.net> - 2023-12-20 03:50 +0100
        Re: GRUB -- Debian overrides? Or maybe I just don't understand it  well... David Wright <deblis@lionunicorn.co.uk> - 2023-12-20 07:10 +0100
          Re: GRUB -- Debian overrides? Or maybe I just don't understand it  well... Felix Miata <mrmazda@earthlink.net> - 2023-12-20 08:00 +0100
          Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Mark Fletcher <mark27q1@gmail.com> - 2023-12-21 22:40 +0100
            Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Mark Fletcher <mark27q1@gmail.com> - 2023-12-21 23:00 +0100
            Re: GRUB -- Debian overrides? Or maybe I just don't understand it  well... David Wright <deblis@lionunicorn.co.uk> - 2023-12-22 02:30 +0100
              Re: GRUB -- Debian overrides? (but on original thread topic, not so  much) Felix Miata <mrmazda@earthlink.net> - 2023-12-22 04:30 +0100
                Re: GRUB -- Debian overrides? (but on original thread topic, not so  much) David Wright <deblis@lionunicorn.co.uk> - 2023-12-22 06:40 +0100
              Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Mark Fletcher <mark27q1@gmail.com> - 2023-12-22 12:30 +0100
                Re: GRUB -- Debian overrides? Or maybe I just don't understand it  well... David Wright <deblis@lionunicorn.co.uk> - 2023-12-27 06:00 +0100
        Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... "Roy J. Tellason, Sr." <roy@rtellason.com> - 2023-12-20 17:10 +0100
        Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Mark Fletcher <mark27q1@gmail.com> - 2023-12-21 22:40 +0100
          Re: GRUB -- Debian overrides? Or maybe I just don't understand it  well... Felix Miata <mrmazda@earthlink.net> - 2023-12-22 01:40 +0100
            Re: GRUB -- Debian overrides? Or maybe I just don't understand it  well... Greg Wooledge <greg@wooledge.org> - 2023-12-22 01:50 +0100
    Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Mark Fletcher <mark27q1@gmail.com> - 2023-12-21 23:50 +0100
      Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2023-12-22 08:50 +0100
        Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Mark Fletcher <mark27q1@gmail.com> - 2023-12-22 12:00 +0100
          Re: GRUB -- Debian overrides? Or maybe I just don't understand it well... Mark Fletcher <mark27q1@gmail.com> - 2023-12-22 12:50 +0100
            Re: GRUB -- Debian overrides? Or maybe I just don't understand it  well... Felix Miata <mrmazda@earthlink.net> - 2023-12-22 15:20 +0100

csiph-web