https://bugzilla.novell.com/show_bug.cgi?id=846003
https://bugzilla.novell.com/show_bug.cgi?id=846003#c21
--- Comment #21 from Michael Chang 2013-12-17 06:59:53 UTC ---
Hi Elmar,
Thanks for confirmation.
I checked os-prober upstream (debian) git and no signs of any eComstation/OS2
support yet so We're on our own now.
The MBR doesn't matter here for detecting eComstation, instead we need to know
some unique file (for eg, detecting SUSE by existence of /etc/SuSE-release) in
root file system and you can refer to file /usr/lib/os-probes/mounted/10freedos
and add support for eComstation. (you have to replace vfat/msdos with jfs/hpfs
checks and the file existence check) and run os-prober to see if it returns
anything.
If you're reluctant to do that, just let me know what's the file test we can do
for detecting eComstation and I'd like to do that.
#!/bin/sh
/usr/share/os-prober/common.sh
partition="$1"
mpoint="$2"
type="$3"
# Weed out stuff that doesn't apply to us
case "$type" in
vfat) debug "$1 is a FAT32 partition" ;;
msdos) debug "$1 is a FAT16 partition" ;;
fat) debug "$1 is a FAT partition (mounted by GRUB)" ;;
*) debug "$1 is not a FAT partition: exiting"; exit 1 ;;
esac
if item_in_dir -q kernel.sys "$2" && item_in_dir -q command.com "$2"; then
label="$(count_next_label FreeDOS)"
result "$1:FreeDOS:$label:chain"
exit 0
else
exit 1
fi
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.