[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#611670: os-prober didnt detect a new gentoo installation



Package: os-prober
Version: 1.42
Severity: normal

os-prober didnt detect a new gentoo-installation because the kernel was callled
differend than os-prober did expect.



-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-020637rc8-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages os-prober depends on:
ii  libc6                         2.11.2-9   Embedded GNU C Library: Shared lib

os-prober recommends no packages.

os-prober suggests no packages.

-- no debconf information

*** /home/wibke/os-prober-gentoo-detection.patch
diff -ru os-prober-1.42/linux-boot-probes/mounted/common/90fallback os-
prober-1.42kanotix1/linux-boot-probes/mounted/common/90fallback
--- os-prober-1.42/linux-boot-probes/mounted/common/90fallback  2010-12-01
18:45:05.000000000 +0100
+++ os-prober-1.42kanotix1/linux-boot-probes/mounted/common/90fallback
2011-01-31 15:08:51.968608486 +0100
@@ -13,7 +13,8 @@

 exitcode=1
 for kernpat in /vmlinuz /vmlinux /boot/vmlinuz /boot/vmlinux "/boot/vmlinuz*"
\
-               "/boot/vmlinux*" "/vmlinuz*" "/vmlinux*"; do
+               "/boot/vmlinux*" "/vmlinuz*" "/vmlinux*" \
+       "/kernel-*"  "/boot/kernel-*"; do
        if echo "$kernpat" | grep -q boot/; then
                kernbootpart="$bootpart"
        else
@@ -32,8 +33,10 @@
                        initrdname2=$(echo "$kernfile" | sed -n
's/vmlinu[zx]\([0-9][0-9]*\)/kernel\1/p' | sed 's/$/.img/')
                        # Dracut initramfses are named differently again.
                        initrdname3=$(echo "$kernfile" | sed
"s/vmlinu[zx]/initramfs\*/" | sed 's/$/.img/')
+                       # Gentoo
+                       initrdname4=$(echo "$kernfile" | sed
"s/kernel/initramfs\*/")
                        foundinitrd=0
-                       for initrd in $(eval ls "$initrdname" "$initrdname1"
"$initrdname2" "$initrdname3" 2>/dev/null); do
+                       for initrd in $(eval ls "$initrdname" "$initrdname1"
"$initrdname2" "$initrdname3" "$initrdname4" 2>/dev/null); do
                                if [ -f "$initrd" ] && [ ! -L "$initrd" ]; then



Reply to: