summaryrefslogtreecommitdiff
path: root/lib/util.sh
blob: 115bbd674d78af8731648cb9741b7f72b98b565c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

. "$ktest_dir/lib/common.sh"

checkdep_arch()
{
    if [[ -z $ktest_root_image ]]; then
	if [[ -f $HOME/.ktest/root.$DEBIAN_ARCH ]]; then
	    ktest_root_image="$HOME/.ktest/root.$DEBIAN_ARCH"
	elif [[ -f /var/lib/ktest/root.$DEBIAN_ARCH ]]; then
	    ktest_root_image=/var/lib/ktest/root.$DEBIAN_ARCH
	else
	    echo "Root image not found in $HOME/.ktest/root.$DEBIAN_ARCH or /var/lib/ktest/root.$DEBIAN_ARCH"
	    echo "Use $ktest_dir/root_image create"
	    exit 1
	fi
    fi
}