-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathother_old_logs
168 lines (98 loc) · 3.98 KB
/
other_old_logs
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
155
156
157
158
159
160
161
162
163
164
165
166
==================================================================================================
太陽がバスルームに忍び寄る
===================================================================================================
# update 2 packages
Expat
11.2 009 Expat Date: 2022-09-23 Severity: Critical
In expat-2.4.9, a critical security vulnerability was fixed in the doContent function that could
allow for arbitrary code execution or denial of service. Update to expat-2.4.9 immediately. 11.2-009
Python3
11.2 005 Python3 (LFS and BLFS) Date: 2022-09-14 Severity: High
In Python-3.10.7, a security vulnerability was fixed that could allow for a denial of service
(application crash) due to algorithmic complexity. Update to Python-3.10.7 or later. 11.2-005
===================================================================================================
mkdir -pv /boot/efi &&
mount -v -t vfat /dev/sda4 /boot/efi
cat >> /etc/fstab << EOF
/dev/sda4 /boot/efi vfat defaults 0 1
EOF
grub-install --bootloader-id=lfs --recheck
cat > /etc/fstab << "EOF"
# Begin /etc/fstab
# file system mount-point type options dump fsck
# order
/dev/sda5 / ext4 defaults 1 1
/dev/sda1 swap swap pri=1 0 0
proc /proc proc nosuid,noexec,nodev 0 0
sysfs /sys sysfs nosuid,noexec,nodev 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /run tmpfs defaults 0 0
devtmpfs /dev devtmpfs mode=0755,nosuid 0 0
# End /etc/fstab
EOF
==================================================================================================
cat > /etc/resolv.conf << "EOF"
# Begin /etc/resolv.conf
domain uranus
nameserver uranus
nameserver uranus
# End /etc/resolv.conf
EOF
cat > /etc/profile << "EOF"
# Begin /etc/profile
export LANG=en_US.utf-8 #<ll>_<CC>.<charmap><@modifiers>
# End /etc/profile
EOF
==================================================================================================
echo $LFS
mount -v -t ext4 /dev/sda5 $LFS
/sbin/swapon -v /dev/
https://www.linuxfromscratch.org/lfs/mirrors.html#files.
==================================================================================================
cd $LFS
tar -cJpf $HOME/bach/lfs-temp-tools-11.2.tar.xz .
ln -sfv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
==================================================================================================
ERROR: compilation of test program in jsynprog failed
ERROR: comparison of results in mttest failed
binutils bugs
FAIL: Run p_align-1b with PIE
FAIL: Run p_align-1d with -Wl,-z,max-page-size=0x1000 with PIE
==================================================================================================
udevadm hwdb --update
This command needs to be run each time the hardware information is updated.
==================================================================================================
cat > /etc/lsb-release << "EOF"
DISTRIB_ID="Linux From Scratch"
DISTRIB_RELEASE="11.2"
DISTRIB_CODENAME="labia"
DISTRIB_DESCRIPTION="Linux From Scratch"
EOF
cat > /etc/os-release << "EOF"
NAME="Linux From Scratch"
VERSION="11.2"
ID=lfs
PRETTY_NAME="Linux From Scratch 11.2"
VERSION_CODENAME="labia"
EOF
==================================================================================================
cat > /boot/grub/grub.cfg << EOF
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod part_gpt
insmod ext2
set root=(hd0,5)
if loadfont /boot/grub/fonts/unicode.pf2; then
set gfxmode=auto
insmod all_video
terminal_output gfxterm
fi
menuentry "GNU/Linux, Linux 5.19.2-lfs-11.2" {
linux /boot/vmlinuz-5.19.2-lfs-11.2 root=/dev/sda5 ro
}
menuentry "Firmware Setup" {
fwsetup
}
EOF
==================================================================================================