blob: 40c8c432bc1bdd6b8d6d2d325dfdf51c3570bb79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
set -e
# exit if we are in the same UTS namespace as init ( != 2nd build )
[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0
# cease using disorderfs
if [ -d /tmp/disorderfs ] ; then
su pbuilder2 -c 'fusermount -u /tmp/buildd'
rmdir /tmp/buildd
mv /tmp/disorderfs /tmp/buildd
fi
|