mirror of
https://github.com/kevin-leptons/lfs-auto.git
synced 2026-01-12 15:39:47 +00:00
49 lines
765 B
Bash
49 lines
765 B
Bash
#!/bin/bash
|
|
|
|
# using : setup inside of system
|
|
# author : kevin.leptons@gmail.com
|
|
|
|
# bash options
|
|
set -e
|
|
|
|
# locate location of this script
|
|
cd /lfs-script
|
|
|
|
# libs
|
|
source configuration.sh
|
|
source util.sh
|
|
|
|
# variables
|
|
task_name="sys.inside.setup"
|
|
build_system_dir="sys.pack.setup"
|
|
|
|
# unset hash
|
|
set +h
|
|
|
|
# start
|
|
log "$task_name.start" 0
|
|
|
|
packages=( \
|
|
lfs-bootscripts \
|
|
config-network \
|
|
config-systemv \
|
|
config-profile \
|
|
config-inputrc \
|
|
config-shells \
|
|
config-file-system \
|
|
kernel \
|
|
initramfs \
|
|
create-build-status \
|
|
)
|
|
|
|
# build each package
|
|
# log is generate by internal build script
|
|
result=done
|
|
for package in ${packages[@]}; do
|
|
$build_system_dir/$package.sh
|
|
done
|
|
|
|
# successfull
|
|
log "$task_name.setup.finish" $?
|
|
exit 0
|