summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 09:17:40 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-16 09:49:55 (EST)
commit3ca948088791131e23b7bc8df819e1fd55fa2aec (patch)
tree6ecfb7824b11119dee3fff8d2534a9f716e81274
parent1833c31d3148ab3b43c4833733fe9fefd73d22b2 (diff)
profile_make_initramfs(): Remove all but /boot
-rw-r--r--src/profile/proteanos.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index 761f9b5..f322adf 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -436,10 +436,16 @@ prof_proteanos_make_initramfs()
fi
;;
esac
+
# Hack to rerun install-lilo:
session_begin . . true
session_exec run-parts /etc/kernel/postinst.d
session_end
+
+ find . -xdev -a \! -path './boot/*' -a \
+ \! -path './prokit/*' -a \! -type d | \
+ xargs rm -f
+
return 0
}