Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
58c5d911
Verified
Commit
58c5d911
authored
May 06, 2020
by
Jan Alexander Steffens (heftig)
Browse files
clean-chroots: Recurse, like devtools' subvolume_delete_recursive does
Needed to get rid of subvolumes created by tmpfiles.
parent
f0e7aa33
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/archbuild/files/clean-chroots
View file @
58c5d911
...
...
@@ -13,6 +13,14 @@ echo "<6>Deleting ${#chroots} chroots"
if
btrfs filesystem
df
.
&>/dev/null
;
then
remove
()
{
local
subvol
test
-d
$1
find
$1
-mindepth
1
-xdev
-depth
-inum
256
-print0
|
while
IFS
=
read
-d
$'
\0
'
-r
subvol
;
do
remove
$subvol
done
btrfs sub del
--
$1
&>/dev/null
}
else
...
...
@@ -41,3 +49,5 @@ done
df
-HT
.
exit
$ret
# vim:set sw=2 et:
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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