~elementary-os/ubuntu-package-imports/ubiquity-bionic

« back to all changes in this revision

Viewing changes to d-i/source/partman-uboot/valid_filesystems/uboot

  • Committer: RabbitBot
  • Date: 2018-02-05 14:44:42 UTC
  • Revision ID: rabbitbot@elementary.io-20180205144442-vt0fvth7zus90wjh
Initial import, version 17.10.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
ARCH="$(archdetect)"
 
4
case $ARCH in
 
5
    arm*/dove)
 
6
        ;;
 
7
    *)
 
8
        exit 0
 
9
        ;;
 
10
esac
 
11
 
 
12
dev=$1
 
13
id=$2
 
14
property=$3
 
15
 
 
16
[ -f /var/lib/partman/uboot ] || exit 0
 
17
 
 
18
case $property in
 
19
    formatable)
 
20
        echo uboot
 
21
        ;;
 
22
    existing)
 
23
        if \
 
24
                [ -f $id/detected_filesystem -a -f $id/detected_uboot ] && \
 
25
                [ "$(cat $id/detected_filesystem)" = ext2 ]
 
26
        then
 
27
                echo uboot
 
28
        fi
 
29
        ;;
 
30
esac
 
31
 
 
32