-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·41 lines (32 loc) · 751 Bytes
/
build.sh
File metadata and controls
executable file
·41 lines (32 loc) · 751 Bytes
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
#!/bin/bash
set -o errexit
set -o nounset
set +h
source config.inc
source function.inc
_red="\\033[1;31m"
_green="\\033[1;32m"
_normal="\\033[1;39m"
# Build the LFS System
msg_section "Building LFS 8.2-systemd"
msg_success
msg_success "Message"
msg_warning
msg_warning "Message"
msg_failure
exit 0
msg_line "Checking for ${LFS}/tools: "
if [[ -d ${LFS} ]]; then
msg_success "FOUND"
else
msg_warning "NOT FOUND"
build "Creating ${LFS}/tools: " "mkdir -pv ${LFS}/tools" ${LOGFILE}
fi
msg_line "Creating symlink for /tools: "
if [[ -h "${LFS}/tools" ]]; then
build "ln -sv $LFS/tools /" "ln -sv $LFS/tools /" ${LOGFILE}
else
msg_warning "SKIPPING"
fi
msg_line "Creating user '${LFS_USER}': "
build "groupadd lfs" "groupadd lfs" ${LOGFILE}