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


Groups > linux.debian.user > #274063

Re: Grub menu entry for a system on a second drive.

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Grub menu entry for a system on a second drive.
Date 2024-10-26 07:10 +0200
Message-ID <JBHdL-4hlj-5@gated-at.bofh.it> (permalink)
References (1 earlier) <JBd61-3YE2-1@gated-at.bofh.it> <JBvvX-49ZN-7@gated-at.bofh.it> <JBwLn-4aEm-1@gated-at.bofh.it> <JBxR7-4bwF-9@gated-at.bofh.it> <JBG81-4goe-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri 25 Oct 2024 at 23:50:05 (-0400), Felix Miata wrote:
> David Wright composed on 2024-10-25 14:08 (UTC-0500):
> > On Fri 25 Oct 2024 at 13:51:06 (-0400), Felix Miata wrote:
> 
> >> Manual editing of /boot/grub/grub.cfg does not persist. Every kernel addition or
> >> removal causes its regeneration anew based upon the content of /etc/default/grub
> >> and the regeneration script(s), same as running grub-mkconfig.
> 
> > FTR, editing the Grub menu itself is, of course, totally ephemeral.
> > Type whatever you like, boot from it, and the edits are gone for good.
> 
> > But editing /boot/grub/grub.cfg does persist as long as
> 
> Therein lies the difference between my word collection and yours - as long as. It
> persists, but only until some _inevitable_ event occurs, as we both described:
> 
> > that particular grub.cfg is not reconfigured with
> > grub-mkconfig/update-grub, which is done by kernel upgrades,
> > and, of course, the very occasional Grub upgrades.
> 
> Just a little editing of my text produces an equivalent result. Change
> 
> 	does not persist. Every kernel addition or removal…
> to
> 	persists only until kernel addition or removal…
> 
> and what I wrote is equivalent to what you wrote.

I felt "does not persist" was too emphatic. Although kernel upgrades
etc. are kind of inevitable, they are (or should be) active events,
which take place when the sysadmin decides¹, and I felt that your
words made it sound more passively driven by "external" events.

> > I postprocess my grub.cfg files as a matter of routine, mainly
> > to convert UUIDs to LABELs, but also to uniquify them, if I may
> > use that word.
> 
> Such postprocess is pointless here. The bulk of my custom.cfg entries use LABELS.
> None use UUIDs. And, grub.cfg entries are ignored, displayed onscreen as available
> selections only after scrolling past 20-30 or more custom.cfg entries:

Sure, I would expect you to write custom.cfg entries exactly as you
want them to appear. OTOH my postprocessing operates on the entries
generated by Grub's scripts. Many years ago, I looked at the scripts
to see whether I could make them produce LABELs instead of UUIDs, but
it didn't appear to be trivial, so I just generate a little lookup
array from the E:ID_FS_UUID and E:ID_FS_LABEL values in /run/udev/data/b*.

¹ Obviously I'm assuming no unattended upgrades and other such horrors.

Cheers,
David.

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


Thread

Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-10-24 22:50 +0200
  Re: Grub menu entry for a system on a second drive. Felix Miata <mrmazda@earthlink.net> - 2024-10-24 23:00 +0200
  Re: Grub menu entry for a system on a second drive. David Wright <deblis@lionunicorn.co.uk> - 2024-10-25 05:30 +0200
    Re: Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-10-25 17:50 +0200
      Re: Grub menu entry for a system on a second drive. Joe <joe@jretrading.com> - 2024-10-25 18:10 +0200
        Re: Grub menu entry for a system on a second drive. Max Nikulin <manikulin@gmail.com> - 2024-10-25 18:40 +0200
        Re: Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-10-25 21:00 +0200
          Re: Grub menu entry for a system on a second drive. David Wright <deblis@lionunicorn.co.uk> - 2024-10-25 21:20 +0200
            Re: Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-10-25 22:50 +0200
              Re: Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-11-10 02:30 +0100
                Re: Grub menu entry for a system on a second drive. David Wright <deblis@lionunicorn.co.uk> - 2024-11-12 05:00 +0100
      Re: Grub menu entry for a system on a second drive. Greg Wooledge <greg@wooledge.org> - 2024-10-25 18:50 +0200
      Re: Grub menu entry for a system on a second drive. David Wright <deblis@lionunicorn.co.uk> - 2024-10-25 20:20 +0200
  Re (2): Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-10-25 18:40 +0200
    Re: Grub menu entry for a system on a second drive. Felix Miata <mrmazda@stanis.net> - 2024-10-25 20:00 +0200
      Re: Grub menu entry for a system on a second drive. David Wright <deblis@lionunicorn.co.uk> - 2024-10-25 21:10 +0200
        Re: Grub menu entry for a system on a second drive. Felix Miata <mrmazda@stanis.net> - 2024-10-25 22:50 +0200
        Re: Grub menu entry for a system on a second drive. Felix Miata <mrmazda@stanis.net> - 2024-10-26 06:00 +0200
          Re: Grub menu entry for a system on a second drive. David Wright <deblis@lionunicorn.co.uk> - 2024-10-26 07:10 +0200
    Re: Re (2): Grub menu entry for a system on a second drive. Tim Woodall <debianuser@woodall.me.uk> - 2024-10-25 23:40 +0200
      [solved, partly] Re: Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-10-27 05:20 +0100
        Re: [solved, partly] Re: Grub menu entry for a system on a second  drive. David Wright <deblis@lionunicorn.co.uk> - 2024-10-27 16:00 +0100
          Re: [solved, partly] Re: Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-10-27 19:50 +0100
            Re: [solved, partly] Re: Grub menu entry for a system on a second  drive. Greg Wooledge <greg@wooledge.org> - 2024-10-28 12:10 +0100
              Re: [solved, partly] Re: Grub menu entry for a system on a second  drive. Greg Wooledge <greg@wooledge.org> - 2024-11-01 12:10 +0100
            Re: [solved, partly] Re: Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-10-28 17:30 +0100
            Re: [solved, more] Re: Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-11-02 16:10 +0100
              Re: [solved, more] Re: Grub menu entry for a system on a second  drive. David Wright <deblis@lionunicorn.co.uk> - 2024-11-04 05:50 +0100
                Re: [solved, more] Re: Grub menu entry for a system on a second drive. peter@easthope.ca - 2024-11-10 04:00 +0100
              Re: [solved, more] Re: Grub menu entry for a system on a second  drive. Dan Purgert <dan@djph.net> - 2024-11-04 13:50 +0100
          Re: [solved, partly] Re: Grub menu entry for a system on a second  drive. Max Nikulin <manikulin@gmail.com> - 2024-11-03 03:50 +0100

csiph-web