os-prober fails to identify bootable MS-DOS partition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-prober (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: os-prober
Karmic development branch (9.10), freshly updated as of Fri Oct 16 22:00 UTC.
os-prober package version is 1.35
os-prober did not detect my MS-DOS partition during the grub to grub2 update process. This is caused by a bug in a script.
The following in /usr/lib/
elif [ -d "$(item_in_dir dos $2)" ]; then
This can't work as the process is not in the right working directory for the -d test to succeed (except by accident when there is another directory of that name in the working directory).
The following line fixes the bug:
elif item_in_dir -q dos "$2" && [ -d "$2/$(item_in_dir dos $2)" ]; then
Note that we can't have just the second test since otherwise it will always succeed. Reason: "$(item...)" is then the empty string, so it just tests for the existence of the mount point "$2".
ProblemType: Bug
Architecture: amd64
Date: Sat Oct 17 00:51:40 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: os-prober 1.35
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: os-prober
Uname: Linux 2.6.31-14-generic x86_64
XsessionErrors:
(gnome-
(polkit-
(nautilus:2310): Eel-CRITICAL **: eel_preferences
(gnome-
seems this bug still exists in os-prober 1.37.