Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian QA
jenkins.debian.net
Commits
80e6baae
Commit
80e6baae
authored
Aug 29, 2015
by
Holger Levsen
Browse files
reproducible: only use disorderfs if it's available
parent
5b094256
Changes
3
Hide whitespace changes
Inline
Side-by-side
hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup
View file @
80e6baae
...
...
@@ -6,5 +6,7 @@ set -e
[
"
$(
readlink
/proc/1/ns/uts
)
"
=
"
$(
readlink
/proc/self/ns/uts
)
"
]
&&
exit
0
# cease using disorderfs
sudo
-u
pbuilder2 fusermount
-u
/tmp/buildd
mv
/tmp/disorderfs /tmp/buildd
if
[
-d
/tmp/disorderfs
]
;
then
sudo
-u
pbuilder2 fusermount
-u
/tmp/buildd
mv
/tmp/disorderfs /tmp/buildd
fi
hosts/jenkins/etc/pbuilder/rebuild-hooks/C01_cleanup
View file @
80e6baae
...
...
@@ -6,5 +6,7 @@ set -e
[
"
$(
readlink
/proc/1/ns/uts
)
"
=
"
$(
readlink
/proc/self/ns/uts
)
"
]
&&
exit
0
# cease using disorderfs
sudo
-u
pbuilder2 fusermount
-u
/tmp/buildd
mv
/tmp/disorderfs /tmp/buildd
if
[
-d
/tmp/disorderfs
]
;
then
sudo
-u
pbuilder2 fusermount
-u
/tmp/buildd
mv
/tmp/disorderfs /tmp/buildd
fi
hosts/jenkins/etc/pbuilder/rebuild-hooks/D01_modify_environment
View file @
80e6baae
...
...
@@ -13,5 +13,9 @@ echo "I: Adding a custom variable just for the fun of it..." >&2
export
CAPTURE_ENVIRONMENT
=
"I capture the environment"
# use disorderfs, mount it as user
mv
/tmp/buildd /tmp/disorderfs
sudo
-u
pbuilder2 disorderfs /tmp/disorderfs /tmp/buildd
if
[
-x
/usr/bin/disorderfs
]
;
then
mv
/tmp/buildd /tmp/disorderfs
sudo
-u
pbuilder2 disorderfs /tmp/disorderfs /tmp/buildd
else
echo
"Warning: disorderfs not available."
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment