918-git-images-111dconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacion
Rev | Line | |
---|
[2cd8344] | 1 | #!/bin/sh |
---|
| 2 | # Detects utility (hw vendor recovery) partitions. |
---|
| 3 | |
---|
| 4 | . /usr/share/os-prober/common.sh |
---|
| 5 | |
---|
| 6 | partition="$1" |
---|
| 7 | mpoint="$2" |
---|
| 8 | type="$3" |
---|
| 9 | |
---|
| 10 | # Weed out stuff that doesn't apply to us |
---|
| 11 | case "$type" in |
---|
| 12 | vfat) debug "$1 is a FAT32 partition" ;; |
---|
| 13 | msdos) debug "$1 is a FAT16 partition" ;; |
---|
| 14 | fat) debug "$1 is a FAT partition (mounted by GRUB)" ;; |
---|
| 15 | *) debug "$1 is not a FAT partition: exiting"; exit 1 ;; |
---|
| 16 | esac |
---|
| 17 | |
---|
| 18 | # Dell Utility partitions have partition type 0xde, but no idea how to |
---|
| 19 | # cleanly detect that from shell |
---|
| 20 | if item_in_dir -q dellbio.bin "$2" && \ |
---|
| 21 | (item_in_dir -q delldiag.exe "$2" || item_in_dir -q delldiag.com "$2"); then |
---|
| 22 | long="Dell Utility Partition" |
---|
| 23 | short=DellUtility |
---|
| 24 | elif item_in_dir -q f11.sys "$2"; then |
---|
| 25 | long="Acronis Secure Zone" |
---|
| 26 | short=AcroneZone |
---|
| 27 | else |
---|
| 28 | exit 1 |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | label="$(count_next_label "$short")" |
---|
| 32 | result "${partition}:${long}:${label}:chain" |
---|
| 33 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.