~ubuntu-branches/ubuntu/trusty/os-prober/trusty

« back to all changes in this revision

Viewing changes to os-probes/mounted/x86/10freedos

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Joey Hess, Colin Watson
  • Date: 2010-06-28 18:01:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100628180100-a2vbxsxq2nahsdqf
Tags: 1.39
[ Joey Hess ]
* Fix FreeDOS test to use case-insensative filename lookup
  as was already done for all other DOS/Windows tests. Closes: #582257
  (Thanks, Harald Dunkel)

[ Colin Watson ]
* Handle Dracut-generated initramfs names in linux-boot-prober fallback
  test (thanks, Piscium; LP: #420900).

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
# Weed out stuff that doesn't apply to us
10
10
case "$type" in
11
 
  vfat) debug "$1 is a FAT32 partition" ;;
12
 
  msdos) debug "$1 is a FAT16 partition" ;;
13
 
  *) debug "$1 is not a FAT partition: exiting"; exit 1 ;;
 
11
        vfat) debug "$1 is a FAT32 partition" ;;
 
12
        msdos) debug "$1 is a FAT16 partition" ;;
 
13
        *) debug "$1 is not a FAT partition: exiting"; exit 1 ;;
14
14
esac
15
15
 
16
 
if [ -e "$2/kernel.sys" -a -e "$2/command.com" ]; then
17
 
  label="$(count_next_label FreeDOS)"
18
 
  result "$1:FreeDOS:$label:chain"
19
 
  exit 0
 
16
if item_in_dir -q kernel.sys "$2" && item_in_dir -q command.com "$2"; then
 
17
        label="$(count_next_label FreeDOS)"
 
18
        result "$1:FreeDOS:$label:chain"
 
19
        exit 0
20
20
else
21
 
  exit 1
 
21
        exit 1
22
22
fi