Files
lfs-auto/script/sys.clear.sh
2016-04-22 13:35:05 +07:00

39 lines
559 B
Bash
Executable File

#!/bin/bash
# using : clean file system of new system
# warning : run this script in lfs user
# author : kevin.leptons@gmail.com
# locate location of this script
__dir__="$(dirname "$0")"
# use configuration
# use util
source configuration.sh
source util.sh
# remove file system of new system
cd $root &&
sudo rm -vrf bin \
boot \
dev \
etc \
home \
lib \
lib64 \
media \
opt \
proc \
root \
run \
sbin \
srv \
sys \
tmp \
usr \
var
log "system.clean" $?
# successfully
exit 0