Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
415075d6
Commit
415075d6
authored
Dec 20, 2016
by
intrigeri
Browse files
build-tails: kill processes that block the tmpfs umount operation (refs:
#12009
).
parent
897fd754
Changes
1
Hide whitespace changes
Inline
Side-by-side
vagrant/provision/assets/build-tails
View file @
415075d6
...
...
@@ -29,8 +29,13 @@ cleanup() {
remove_build_dirs
()
{
for
mountpoint
in
$(
old_build_dirs |
tac
)
;
do
tries
=
0
sudo
lsof |
grep
--fixed-strings
"
$mountpoint
"
||
true
sudo
umount
-f
--verbose
"
$mountpoint
"
while
!
sudo
umount
-f
--verbose
"
$mountpoint
"
&&
[
$tries
-lt
12
]
;
do
sudo
fuser
--ismountpoint
--mount
"
$mountpoint
"
--kill
sleep
5
tries
=
$(
expr
$tries
+ 1
)
done
sudo rm
-rf
"
$mountpoint
"
done
}
...
...
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