Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #236417 > unrolled thread
| Started by | Felix Miata <mrmazda@earthlink.net> |
|---|---|
| First post | 2021-06-24 16:40 +0200 |
| Last post | 2021-06-24 16:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.user
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: grub2 boot menu Felix Miata <mrmazda@earthlink.net> - 2021-06-24 16:40 +0200
Re: grub2 boot menu The Wanderer <wanderer@fastmail.fm> - 2021-06-24 16:50 +0200
| From | Felix Miata <mrmazda@earthlink.net> |
|---|---|
| Date | 2021-06-24 16:40 +0200 |
| Subject | Re: grub2 boot menu |
| Message-ID | <CtyGm-4bP-5@gated-at.bofh.it> |
mick crane composed on 2021-06-24 14:51 (UTC+0100):
> I was dual booting but got another PC so I can have windows and debain
> at the same time. Just for tidiness of booting I'd have liked to comment
> out the submenu entry in /boot/grub/grub.cfg for windows just in case I
> wanted to put it back but not allowed.
> Physically removing the windows disk and "grub-mkconfig" and/or
> "update-grub" sorts itself out but is there any way to do this manually
> as used to be the case ?
You can use any of:
/etc/grub.d/40_custom
/etc/grub.d/41_custom
/boot/grub/custom.cfg
or 40_custom and/or 41_custom copied e.g. to
/etc/grub.d/06_custom or /etc/grub.d/07_custom.
The actual names in /etc/grub.d/ do not seem to be carved in stone, but
/boot/grub/custom.cfg does seem to be. Within the /etc/grub.d/ hierarchy,
the names affect where the custom entries appear in the boot menu. Before
10 entries are first listed, the 4x entries are shown after the auto-generated
entries. I use custom.cfg, which I populate with the kernel & initrd symlinks
so that need to maintain custom.cfg is minimal.
The custom.cfg entries can be seriously simplified compared to the auto-generated
ones. e.g.:
menuentry "Debian 11 Bullseye defkernel" {
search --no-floppy --set=root --hint-baremetal=ahci0,gpt9 --label tg1p09deb11
linuxefi /vmlinuz root=LABEL=tg1p09deb11 noresume ipv6.disable=1 net.ifnames=0 mitigations=auto consoleblank=0
initrdefi /initrd.img
}
Note omission of UUIDs and inclusion of volume labels in their place.
--
Evolution as taught in public schools is, like religion,
based on faith, not based on science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata
[toc] | [next] | [standalone]
| From | The Wanderer <wanderer@fastmail.fm> |
|---|---|
| Date | 2021-06-24 16:50 +0200 |
| Message-ID | <CtyQ2-4f9-3@gated-at.bofh.it> |
| In reply to | #236417 |
[Multipart message — attachments visible in raw view] — view raw
On 2021-06-24 at 10:32, Felix Miata wrote: > mick crane composed on 2021-06-24 14:51 (UTC+0100): > >> I was dual booting but got another PC so I can have windows and debain >> at the same time. Just for tidiness of booting I'd have liked to comment >> out the submenu entry in /boot/grub/grub.cfg for windows just in case I >> wanted to put it back but not allowed. >> Physically removing the windows disk and "grub-mkconfig" and/or >> "update-grub" sorts itself out but is there any way to do this manually >> as used to be the case ? > > You can use any of: > /etc/grub.d/40_custom > /etc/grub.d/41_custom > /boot/grub/custom.cfg > or 40_custom and/or 41_custom copied e.g. to > /etc/grub.d/06_custom or /etc/grub.d/07_custom. From looking at those files, it seems as if they can be used to *add* entries manually, and your example matches up with doing that - but can they be used to modify (or remove) entries which would otherwise appear, as seems to be the desire in this instance? I'm not seeing an obvious way how, if so. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web