Add 8.79 - Clean up extra files

This commit is contained in:
Aditya 2023-01-14 21:31:44 +05:30
parent 72416330e8
commit f8a9a306dc
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#!/bin/bash
rm -rf /tmp/*
find /usr/lib /usr/libexec -name \*.la -delete
find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf
userdel -r tester

View file

@ -1474,3 +1474,15 @@ then
stop_script "chapter8/8.78-stripping.sh"
fi
# Chapter 8.79
# ============
echo "Cleaning up extra files"
su -c "bash $SCRIPT/chapter8/8.79-cleanup.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.79-cleanup.sh"
fi