summaryrefslogtreecommitdiff
path: root/start-unshare-impl.sh
blob: 06c7d802343e4b71216303bfc9ff3b4b5bca6a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

if [[ -z $IN_CONTAINER ]]; then
    echo "Please use start-container.sh script"
    exit
fi

function cleanup {
    rm -rf _xorg_integration_test_empty
}

trap cleanup EXIT

mkdir -p _xorg_integration_test_empty

mount --bind _xorg_integration_test_empty /dev
mount --bind _xorg_integration_test_empty /sys

# Hide any custom configuration on the test box
mount --bind _xorg_integration_test_empty /usr/share/X11/xorg.conf.d

/bin/bash