-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck-build-status.sh
More file actions
executable file
·74 lines (61 loc) · 1.46 KB
/
check-build-status.sh
File metadata and controls
executable file
·74 lines (61 loc) · 1.46 KB
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
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
LFS="/mnt/lfs"
echo "BlazeNeuro Build Status Check"
echo "=============================="
echo
# Check if build started
if [[ ! -d "$LFS" ]]; then
echo "Status: Not started"
echo "Run: sudo ./build.sh all"
exit 0
fi
echo "Build Location: $LFS"
echo
# Check stages
echo "Stage Status:"
echo "-------------"
# Stage 1
if [[ -d "$LFS/tools" && -d "$LFS/sources" ]]; then
echo " ✓ Stage 1: Environment prepared"
else
echo " ✗ Stage 1: Not completed"
fi
# Stage 2
if [[ -f "$LFS/tools/bin/x86_64-lfs-linux-gnu-gcc" ]]; then
echo " ✓ Stage 2: Toolchain built"
else
echo " ✗ Stage 2: Not completed"
fi
# Stage 3
if [[ -f "$LFS/usr/bin/bash" ]]; then
echo " ✓ Stage 3: Temporary system built"
else
echo " ✗ Stage 3: Not completed"
fi
# Stage 4
if [[ -f "$LFS/usr/bin/mount" ]]; then
echo " ✓ Stage 4: Final system built"
else
echo " ✗ Stage 4: Not completed"
fi
# Stage 5
if [[ -f "$LFS/boot/vmlinuz-6.7.4-blazeneuro" ]]; then
echo " ✓ Stage 5: Kernel compiled"
else
echo " ✗ Stage 5: Not completed"
fi
echo
# Disk usage
if [[ -d "$LFS" ]]; then
echo "Disk Usage:"
echo "-----------"
du -sh "$LFS" 2>/dev/null || echo " Unable to calculate"
echo
fi
# Recent logs
if [[ -f "$SCRIPT_DIR/logs/build.log" ]]; then
echo "Recent Log Entries:"
echo "-------------------"
tail -5 "$SCRIPT_DIR/logs/build.log"
fi