mirror of
https://github.com/kevin-leptons/lfs-auto.git
synced 2026-01-12 15:39:47 +00:00
62 lines
1.8 KiB
Bash
Executable File
62 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# using : this script contains variable use in linux from scratch auto-build
|
|
# author : kevin.leptons@gmail.com
|
|
|
|
# specifications about user will use to build lfs
|
|
build_user="lfs"
|
|
build_user_group="lfs"
|
|
build_user_password="lfs"
|
|
build_user_home="/home/$build_user"
|
|
build_user_profile_file="build_user_profile"
|
|
build_user_bashrc_file="build_user_bashrc"
|
|
docker_lfs_auto="/mnt/lfs-auto"
|
|
docker_script_dir="/lfs-script"
|
|
lfs_script_dir="/lfs-script"
|
|
kernel_version="4.2.0"
|
|
kernel_name="vmlinuz-4.2-lfs-7.8"
|
|
|
|
# disk device where lfs partition locate
|
|
# must chose new partition without any important data
|
|
# then lfs auto-build will format it to use
|
|
partition_dev="/dev/sdb1"
|
|
|
|
# mount point of disk device
|
|
# do not use mount point in other disk device mount point
|
|
# it is easy to mistake when build or work with file system
|
|
# use directory in standard mount point as /mnt or /media
|
|
# this directory to know as root of lfs system
|
|
root="/mnt/lfs"
|
|
dist_dir="$root/dist"
|
|
dist_src_dir="$dist_dir/src"
|
|
dist_dest_dir="$dist_dir/dest"
|
|
dist_build_dir="$dist_dir/build"
|
|
|
|
# directory store source code
|
|
# source code will download from internet by wget program and wget-list file
|
|
# wget-list file contains list of source code file to download
|
|
root_sources="$root/sources"
|
|
root_tmp_sources="$root_sources/tmp-build"
|
|
root_system_sources="/sources/system-build"
|
|
|
|
# directory store tools to build some packages
|
|
root_tools="$root/tools"
|
|
|
|
# hard disk will install lfs system to boot
|
|
boot_disk="/dev/sdb"
|
|
boot_grub_disk="hd1"
|
|
boot_root="/dev/sdb1"
|
|
|
|
# lfs virtual disk
|
|
lfs_disk_file="lfs-disk.img"
|
|
lfs_disk_size="32G"
|
|
|
|
# log files
|
|
log_host_package_file="log/host-package.log"
|
|
log_build_file="/lfs-script/log/build.log"
|
|
index_step_file="/lfs-script/tmp/step-index.txt"
|
|
|
|
# dist
|
|
dist_ghost_fs_boot="$dist_dir/dest/lfs.ghost.amd64.iso"
|
|
dist_ghost_fs_boot_mnt="/mnt/lfs-ghost"
|