install.sh: improve Generic code path + Gentoo + tmpfs install (#304)

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
This commit is contained in:
Adel Kara Slimane
2021-09-18 16:00:05 +02:00
committed by GitHub
parent aa7ac97735
commit 00948fcff0
4 changed files with 249 additions and 147 deletions

View File

@@ -1385,6 +1385,9 @@ exit_cleanup() {
# Remove RPM temporary files left
rm -rf ${HOME}/.cache/linux-tkg-rpmbuild
if [ "$_use_tmpfs" = "true" ]; then
rm -rf "$_tmpfs_path/linux-tkg"
fi
# Community patches removal in case of failure
for _p in ${_community_patches[@]}; do