Bug#560415: grub-common: /etc/grub.d/30_os-prober detects and creates entries for an external backup disk!

2009-12-11 Thread Felix Zielcke
Am Freitag, den 11.12.2009, 00:34 +0100 schrieb Francesco Poli (t1000):

 Well, IMHO /etc/grub.d/30_os-prober is being overzealous here: it even
 wants to create entries for a backup disk...
 
 I don't know if it can become smart enough to distinguish between
 backup
 partitions and other actual OSes.

Colin Watson already said some sort of blacklists would be good. But I
don't know now if he meant for os-prober or for our 30_os-prober.
So for now I keep that report with us instead of reassigning to
os-prober

 Anyway, is it possible to disable one device or, at least, to disable
 30_os-prober entirely?
 I cannot find the Right Way™ to do so.

You can just purge os-prober. We only recommend it and don't depend on
it.
As alternative or maybe just do both if you don't need os-prober at all,
set GRUB_DISABLE_OS_PROBER=true in /etc/default/grub
We already have somewhere a report to document all /etc/default/grub
variables.

-- 
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#560415: grub-common: /etc/grub.d/30_os-prober detects and creates entries for an external backup disk!

2009-12-11 Thread Francesco Poli
On Fri, 11 Dec 2009 10:28:06 +0100 Felix Zielcke wrote:

 Am Freitag, den 11.12.2009, 00:34 +0100 schrieb Francesco Poli (t1000):
[...]
  Anyway, is it possible to disable one device or, at least, to disable
  30_os-prober entirely?
  I cannot find the Right Way™ to do so.
 
 You can just purge os-prober. We only recommend it and don't depend on
 it.

I've just tried and it seems to do the trick.

After

  # aptitude --purge-unused purge os-prober
  # update-grub

the new /boot/grub/grub.cfg does not include anything added by
30_os-prober:

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

After all, since the box has one OS only, I don't think I'll ever need
os-prober...

 As alternative or maybe just do both if you don't need os-prober at all,
 set GRUB_DISABLE_OS_PROBER=true in /etc/default/grub

I will try to keep this option in mind, should I need to disable
30_os-prober without removing os-prober...


Thanks a lot for your quick and helpful reply!   ;-)


-- 
 New location for my website! Update your bookmarks!
 http://www.inventati.org/frx
. Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4


pgp6MJY9XqnMk.pgp
Description: PGP signature


Bug#560415: grub-common: /etc/grub.d/30_os-prober detects and creates entries for an external backup disk!

2009-12-10 Thread Francesco Poli (t1000)
Package: grub-common
Version: 1.97~beta3-1
Severity: normal

Hello and thanks for maintaining GRUB in Debian.

On a recently installed Debian testing box, I had the first Linux kernel
upgrade the other day, due to the testing-security update
(linux-image-2.6.30-2-amd64/2.6.30-8squeeze1).

During the upgrade, upgrade-grub was apparently invoked, as it should.

After the reboot I found two additional spurious entries in the GRUB menu.
By inspecting /boot/grub/grub.cfg , I see that the two entries were
added by 30_os-prober:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry Debian GNU/Linux, Linux 2.6.30-2-amd64 (on /dev/sdc1) {
linux /boot/vmlinuz-2.6.30-2-amd64 root=/dev/md0 ro quiet
initrd /boot/initrd.img-2.6.30-2-amd64
}
menuentry Debian GNU/Linux, Linux 2.6.30-2-amd64 (recovery mode) (on 
/dev/sdc1) {
linux /boot/vmlinuz-2.6.30-2-amd64 root=/dev/md0 ro single
initrd /boot/initrd.img-2.6.30-2-amd64
}
### END /etc/grub.d/30_os-prober ###

The problem is that /dev/sdc1 is a partition on an external USB hard drive,
where I complete backup of the system is performed nightly with rsync.

It seems that os-prober inspected this external USB disk (that was not
mounted during the package upgrades) and found the backup of the Linux kernel
image:

  # os-prober 
  /dev/sdc1:Debian GNU/Linux (squeeze/sid):Debian:linux

I seem to remember that grub even complained about not finding /dev/sdc
in the device.map...

Well, IMHO /etc/grub.d/30_os-prober is being overzealous here: it even
wants to create entries for a backup disk...

I don't know if it can become smart enough to distinguish between backup
partitions and other actual OSes.

Anyway, is it possible to disable one device or, at least, to disable
30_os-prober entirely?
I cannot find the Right Way™ to do so.




-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  base-files 5.0.0 Debian base system miscellaneous f
ii  libc6  2.10.2-2  GNU C Library: Shared libraries
ii  libfreetype6   2.3.11-1  FreeType 2 font engine, shared lib
ii  libncurses55.7+20090803-2shared libraries for terminal hand
ii  zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime

Versions of packages grub-common recommends:
ii  os-prober 1.35   utility to detect other OSes on a 

Versions of packages grub-common suggests:
pn  multiboot-doc none (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org