mirror of
https://github.com/kevin-leptons/lfs-auto.git
synced 2026-01-12 15:39:47 +00:00
39 lines
559 B
Bash
Executable File
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
|