[10/10] Config: Remove /root/.cargo

Message ID 20220201135246.4096955-10-michael.tremer@ipfire.org
State Accepted
Commit 06fd5cdd8c79eed2f88aa4b9588f39c9c546a903
Headers
Series [01/10] make.sh: Set a good default for rustc flags |

Commit Message

Michael Tremer Feb. 1, 2022, 1:52 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 lfs/Config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/lfs/Config b/lfs/Config
index 663410677..3e4de3b3f 100644
--- a/lfs/Config
+++ b/lfs/Config
@@ -276,7 +276,7 @@  define POSTBUILD
 	@echo "Updating linker cache..."
 	@type -p ldconfig >/dev/null && ldconfig || :
 	@echo "Install done; saving file list to $(TARGET) ..."
-	@rm -rf $(GOPATH)
+	@rm -rf $(GOPATH) /root/.cargo
 	@$(FIND_FILES) > $(DIR_SRC)/lsalrnew
 	@diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' > $(TARGET)_diff
 	@cp -f $(DIR_SRC)/lsalrnew $(DIR_SRC)/lsalr