File: 10-lvm-check-distro

package info (click to toggle)
python-diskimage-builder 3.39.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,704 kB
  • sloc: sh: 7,474; python: 6,454; makefile: 37
file content (17 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
    set -x
fi
set -eu
set -o pipefail

if [ 'ubuntu' != $DISTRO_NAME ]; then
    echo "Only ubuntu is supported for LVM support. The DISTRO is set to $DISTRO_NAME"
    exit 1
fi

if [[ $DIB_RELEASE =~ trusty ]]; then
    echo "Trusty release does not have LVM support. The DIB_RELEASE is set to $DIB_RELEASE"
    exit 1
fi