summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-17 07:34:17 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-17 08:14:29 (EST)
commit35e9cf16090a3ffe7b6153e9e9d1bbe767b7dc3f (patch)
treee05679131649b2d210244b4450528f735da75df3
parentddfa78fcc8b6521f70513f3d9b0fefdb455e4840 (diff)
prof_proteanos_make_initramfs(): Also delete dirs
-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
}