bugGNU GRUB - Bugs: bug #46738, GRUB_DISABLE_RECOVERY in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #46738: GRUB_DISABLE_RECOVERY in /etc/default/grub doesn't disable all recoveries

Submitted by:  -Deleted Account- <redfast00>
Submitted on:  Mon 21 Dec 2015 03:58:24 PM UTC  
Votes:  100  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: redfast00
Open/Closed: ClosedRelease: 
Release: 2.02~beta1Reproducibility: Every Time
Planned Release: None

Wed 30 Dec 2015 09:05:13 PM UTC, comment #3:

Nevermind. The command "linux-boot-prober /dev/mapper/ROOT--VG-DEBIAN--DEV" returned multiple boot options.

-Deleted Account- <redfast00>
Thu 24 Dec 2015 03:37:45 PM UTC, comment #2:

os-prober returns:

/dev/mapper/ROOT--VG-DEBIAN--DEV:Debian GNU/Linux (8.2):Debian:linux
/dev/mapper/ROOT--VG-GAME--ROOT:Debian GNU/Linux (8.2):Debian1:linux

So I think grub is responsible for the generation of these entries.

-Deleted Account- <redfast00>
Mon 21 Dec 2015 05:21:06 PM UTC, comment #1:

These entries are returned by os-prober; local grub-mkconfig has no idea what is inside and treats them as opaque string.

os-prober is not part of grub, so closing it here.

In principle, it may be possible to modify os-prober to conditionally skip recovery entries based on menu id; this needs to be discussed with os-prober maintainers.

Andrei Borzenkov <arvidjaar>
Project Member
Mon 21 Dec 2015 03:58:24 PM UTC, original submission:

The following bug is also on http://unix.stackexchange.com/questions/250587/grub-disable-recovery-not-working-on-detected-os

I have a laptop with a tripleboot of three Linux installs: Kali Linux 2.0 and two times Debian 8.2 (one for gaming and one for development). I wanted to disable the recovery options, so I uncommented `#GRUB_DISABLE_RECOVERY="true"` in `/etc/default/grub`.

This succesfully removed the recovery options from Kali Linux (the system where update-grub was run). However, this didn't disable the recovery options for the two Debian installs. How can I disable the recovery options for the two Debian installs without manually editing `/boot/grub/grub.cfg`?

Result of `cat /boot/grub/grub.cfg | grep 'recovery'` before uncommenting:

menuentry 'Kali GNU/Linux, with Linux 4.0.0-kali1-amd64 (recovery mode)' --class kali --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-kali1-amd64-recovery-1a2ddb7f-7fc3-40b5-b226-ed5cf940205e' {
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode) (on /dev/mapper/ROOT--VG-DEBIAN--DEV)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64-root=/dev/mapper/ROOT--VG-DEBIAN--DEV ro single-60442acd-d36a-4d7d-90c8-515281fe68d8' {
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode) (on /dev/mapper/ROOT--VG-GAME--ROOT)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64-root=/dev/mapper/ROOT--VG-GAME--ROOT ro single-1b27071e-4fcb-41c2-b9c8-01bccf90a10c' {
And after:

menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode) (on /dev/mapper/ROOT--VG-DEBIAN--DEV)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64-root=/dev/mapper/ROOT--VG-DEBIAN--DEV ro single-60442acd-d36a-4d7d-90c8-515281fe68d8' {
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode) (on /dev/mapper/ROOT--VG-GAME--ROOT)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.16.0-4-amd64-root=/dev/mapper/ROOT--VG-GAME--ROOT ro single-1b27071e-4fcb-41c2-b9c8-01bccf90a10c' {

If it matters, here is my disklayout:

- /dev/sda1 mounted to /boot
- /dev/sda2 extended partition
- /dev/sda5 lvm volume with ROOT-VG volume groum
- /dev/ROOT-VG/GAME-ROOT
- ext4 partition mounted to / in gaming machine
- /dev/ROOT-VG/DEBIAN-DEV
- ext4 partition mounted to / in development machine
- /dev/sda6 luks-encrypted volume
- ext4 partition mounted to / in Kali Linux

Grub version: 2.02~beta2-22+deb8u1

-Deleted Account- <redfast00>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by arvidjaar (Posted a comment)
  • -unavailable- added by redfast00 (Voted in favor of this item)
  • -unavailable- added by redfast00 (Submitted the item)
  • -unavailable- added by redfast00
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 100 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Dec 2015 05:21:06 PM UTCarvidjaarStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Mon 21 Dec 2015 04:02:10 PM UTCredfast00Carbon-Copy-=>Added redfast00
    Mon 21 Dec 2015 03:58:24 PM UTCredfast00Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1