-
Notifications
You must be signed in to change notification settings - Fork 0
/
.config
154 lines (134 loc) · 4.02 KB
/
.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# CONFIG
## DIRECTORY
declare -x DIR_SRC="${DIR_BASE}/src"
declare -x DIR_RSC="${DIR_BASE}/rsc"
declare -x DIR_SCRIPT="${DIR_RSC}/script"
declare -x DIR_FILE="${DIR_RSC}/file"
declare -x DIR_LFS="${DIR_SRC}/01_lfs"
declare -x DIR_BLFS="${DIR_SRC}/02_blfs"
declare -x DIR_LOG="${DIR_BASE}/log"
declare -x DIR_DOWNLOAD_CACHE="${DIR_BASE}/.sources"
declare -x DIR_BAK="${DIR_BASE}/backup/"
## LFS
### BASE
declare -x LFS_HOSTNAME="dot"
declare -x LFS_ROOT_PASS="pass"
declare -x LFS_USER_NAME="pix"
declare -x LFS_USER_PASS="pass"
declare -x LFS="/mnt/lfs"
declare -x TARGET_DISK="/dev/sdb"
declare -x TARGET_DISK_MAP="${TARGET_DISK_MAP:-${DIR_RSC}/default_disk_map}"
declare -x LFS_ARCH
LFS_ARCH="$(uname -m)"
declare -x LFS_CORES
LFS_CORES="$(nproc)"
declare -x LFS_TGT="${LFS_ARCH}-dot-linux-gnu"
declare -x LFS_SOURCES_DIR="${LFS}/sources"
declare -x GIT_VERSION
GIT_VERSION="$(git rev-parse HEAD 2>/dev/null | head -c7)"
### FLAGS
# Stip all binaries
declare -x LFS_STRIP_BINARIES=
# Do all check and test when compiling
declare -x LFS_DO_CHECK=1
# Do partitioning and formating of target disk
declare -x LFS_DO_PARTITION=1
# Choose between systemd and sysvinit
declare -x LFS_SYSTEMD=1
# Use DHCP or static IP
declare -x LFS_NET_USE_DHCP=1
# Save get_pack meta
declare -x GET_PACK_SAVE=1
# Check new package tarball link
declare -x GET_PACK_CHECK_REPO=1
# Download and copy package tarball
declare -x GET_PACK_DOWNLOAD=1
# Don't remove log file
declare -x LOG_FILE_KEEP=1
### DISTRO
declare -x LFS_DISTRO="Dot Linux"
declare -x LFS_DISTRO_MINI="dot"
declare -x LFS_DISTRO_CONTACT="[email protected]"
declare -x LFS_DISTRO_DESC="${LFS_DISTRO}"
declare -x LFS_DISTRO_CODENAME="dot"
declare -x LFS_DISTRO_VERSION="0.0.3"
declare -x LFS_DISTRO_HOME="https://github.com/Pixailz/dot_mngr"
### NETWORK
declare -x LFS_NET_INTERFACE="enp0s3"
declare -x LFS_NET_STATIC_IP="192.168.1.190"
declare -x LFS_NET_STATIC_GATE="192.168.1.254"
declare -x LFS_NET_STATIC_BROA="192.168.1.255"
declare -x LFS_NET_STATIC_PREF="24"
declare -x LFS_NET_DNS_PRI="8.8.8.8"
declare -x LFS_NET_DNS_SEC="8.8.4.4"
### TIME
declare -x LFS_CLOCK_UTC=0
declare -x LFS_CLOCKPARAMS=
declare -x LFS_TZ="Europe/Paris"
declare -x LFS_LOCALE_LANG="en_US.utf8"
### CONSOLE
declare -x LFS_CONSOLE_UNICODE=1
declare -x LFS_CONSOLE_FONT="ter-v16b"
declare -x LFS_CONSOLE_KEYMAP="us"
declare -x LFS_CONSOLE_LOGLVL="7"
### ROOT
declare -x LFS_ROOT_GROUP="wheel"
## LOG
declare -x LOG_TITLE_SIZE="30"
declare -x LOG_FILE_EXEC="${DIR_BASE}/exec.log"
declare -x LFS_BAK_ID="${GIT_VERSION:+-${GIT_VERSION}}"
declare -x LFS_BAK_PREFIX="kernel-improved"
declare -x DIR_BAK+="${LFS_DISTRO_MINI}-${LFS_DISTRO_VERSION}${LFS_BAK_ID}"
declare -x LFS_BAK_META="${DIR_BAK}/${LFS_BAK_PREFIX}.snar"
declare -x LFS_BAK_EXT=".tar.gz"
## OTHER
declare -x TARGET_SWAP_SIZE="2G"
declare -x DAEMON_REFRESH_RATE=0.05
### LIFOVAR
declare -xa LIFOVAR_LOG_LVL=(0)
declare -xa LIFOVAR_STEP_ID=(0)
declare -xa LIFOVAR_STEP_ID_MAX=(0)
# AUTO
## OTHER
declare -xgA STEP
declare -x STEP_FILE="${DIR_BASE}/step"
declare -x SBU_FILE="${DIR_BASE}/SBU"
declare -x DAEMON_OUT
DAEMON_OUT="$(mktemp /tmp/.daemon_out.XXXXXXXXXX)"
declare -x DAEMON_WAIT_FILE
DAEMON_WAIT_FILE="$(mktemp -u /tmp/.daemon_wait.XXXXXXXXXX)"
declare -x SCREEN_SIZE
SCREEN_SIZE="$(mktemp /tmp/.screen_size.XXXXXXXXXX)"
# source needed files
source "${DIR_BASE}/src/include"
declare -x MAKEFLAGS="-j${LFS_CORES}"
declare -x LFS_VMLINUZ="vmlinuz"
declare -x LFS_VMLINUZ_SUFFIX="${LFS_DISTRO_CODENAME}"
set +h
umask 022
declare -xA BLFS_TODO=(
# SECURITY
["make-ca"]=1
["cracklib"]=1
["cryptsetup"]=1
["cyrus-sasl"]=1
["gnupg"]=1
["gpgme"]=1
["iptables"]=1
["linux-pam"]=1
["liboauth"]=1
["libpwquality"]=1
["mit-kerberos5"]=1
["nettle"]=1
["nss"]=1
["openssh"]=1
["p11-kit"]=1
["sudo"]=1
)
# KERBEROS CONFIG
declare -x KERB_FQND="example.org"
declare -x KERB_FQND_UPPER="${KERB_FQND^^}"
declare -x KERB_FQND_ADMIN="belgarath.example.org"
if [ "${LOG_FILE_KEEP:-0}" == "0" ]; then
: > "${LOG_FILE_EXEC}"
fi