-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
78 lines (55 loc) · 1.32 KB
/
Copy pathnotes.txt
File metadata and controls
78 lines (55 loc) · 1.32 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
1 toolcheck.sh
2 variable_settings.sh
3 packandpat.sh
4 setup-lfs-root.sh
5 --- su - lfs ---
6 toolchain-lfs.sh
7 --- exit (root) ---
8 linux_headers.sh
9 --- su - lfs ---
10 glibc.sh
11 --- exit (root) ---
12 glibc_install.sh
13 toolchain_test.sh
bootstrap_tools.sh
toolchain_test.sh
kernel_setup.sh
filesystem_setup.sh
packages_install.sh
system_config.sh
init_setup.sh
bootloader.sh
final_check.sh
sudo apt install build-essential dkms linux-headers-$(uname -r)
sudo apt install -y bison gawk m4 python3 texinfo bash g++ make
sudo update-alternatives --set awk /usr/bin/gawk
sudo ln -sf /usr/bin/bison /usr/bin/yacc
sudo ln -sf /bin/bash /bin/sh
fdisk -l /dev/sda
echo $LFS
sudo mount /dev/sda3 /mnt/lfs
df -h | grep lfs
ls $LFS/sources | wc -l
stop:
exit
cd ~
tar -czf ~/lfs-tools-backup.tar.gz -C /mnt/lfs tools
umount -v $LFS/run
umount -v $LFS/sys
umount -v $LFS/proc
umount -v $LFS/dev/pts
umount -v $LFS/dev
sync
poweroff
start:
export LFS=/mnt/lfs
mount -v /dev/sdXn $LFS # remplace sdXn par ta partition LFS (ex: /dev/sdb1)
mount -v --bind /dev $LFS/dev
mount -v --bind /dev/pts $LFS/dev/pts
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run
export LFS=/mnt/lfs
export LFS_TGT=$(uname -m)-lfs-linux-gnu
export PATH=$LFS/tools/bin:$PATH
ls -l $LFS/tools/bin/{ld,as}