summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/profile/proteanos.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index fbfce2d..7c053c9 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -458,6 +458,10 @@ prof_proteanos_make_initramfs()
find . -xdev -a \! -path './boot/*' -a \
\! -path './prokit/*' -a \! -type d | \
xargs rm -f
+ find . -xdev -depth -type d -a \! -name '.' \
+ -a \! -name 'boot' -a \! -path './boot/*' \
+ -a \! -name 'prokit' -a \! -path './prokit/*' \
+ | xargs rmdir
return 0
}