|
Bogdan Timofte
authored
3 months ago
|
1
|
# Instalare
|
|
|
2
|
|
|
|
3
|
Acest proiect are acum doua fluxuri distincte:
|
|
|
4
|
|
|
|
5
|
1. `deploy/attempt1/deploy_tb.sh`
|
|
|
6
|
- bootstrap complet
|
|
|
7
|
- poate actualiza si fisierele de retea per-host
|
|
|
8
|
2. `scripts/install.sh` sau `setup.sh`
|
|
|
9
|
- reinstalare/upgrade pentru shared runtime
|
|
|
10
|
- NU atinge `/etc/network/interfaces` si `interfaces.d/10-thunderbolt`
|
|
|
11
|
|
|
|
12
|
## Reinstalare standardizata
|
|
|
13
|
|
|
|
14
|
### Local
|
|
|
15
|
|
|
|
16
|
```bash
|
|
|
17
|
sudo ./setup.sh --local
|
|
|
18
|
```
|
|
|
19
|
|
|
|
20
|
### Remote
|
|
|
21
|
|
|
|
22
|
```bash
|
|
|
23
|
sudo ./setup.sh baobab
|
|
|
24
|
sudo ./setup.sh ebony tapia
|
|
|
25
|
```
|
|
|
26
|
|
|
|
27
|
Ce instaleaza:
|
|
|
28
|
- `/usr/local/lib/xdev/thunderbolts/tb-recover.sh`
|
|
|
29
|
- `/usr/local/lib/xdev/thunderbolts/uninstall.sh`
|
|
|
30
|
- `/usr/local/sbin/tb-recover.sh`
|
|
|
31
|
- `/usr/local/sbin/xdev-thunderbolts-uninstall`
|
|
|
32
|
- `/etc/systemd/system/tb-bridge.service`
|
|
|
33
|
- `/etc/systemd/system/tb-enlist@.service`
|
|
|
34
|
- `/etc/systemd/system/tb-recover.service`
|
|
|
35
|
- `/etc/systemd/system/tb-recover.timer`
|
|
|
36
|
- `/etc/udev/rules.d/90-thunderbolt-net-systemd.rules`
|
|
|
37
|
- `/usr/local/share/doc/xdev/thunderbolts/*`
|
|
|
38
|
|
|
|
39
|
Ce NU atinge:
|
|
|
40
|
- `/etc/network/interfaces`
|
|
|
41
|
- `/etc/network/interfaces.d/10-thunderbolt`
|
|
|
42
|
|
|
|
43
|
## Uninstall standardizat
|
|
|
44
|
|
|
|
45
|
```bash
|
|
|
46
|
sudo ./setup.sh --local --uninstall
|
|
|
47
|
sudo ./setup.sh --uninstall baobab
|
|
|
48
|
```
|
|
|
49
|
|
|
|
50
|
Sau direct pe host:
|
|
|
51
|
|
|
|
52
|
```bash
|
|
|
53
|
sudo /usr/local/lib/xdev/thunderbolts/uninstall.sh
|
|
|
54
|
```
|
|
|
55
|
|
|
|
56
|
Uninstall-ul elimina doar shared runtime:
|
|
|
57
|
- unit-urile systemd
|
|
|
58
|
- regula udev
|
|
|
59
|
- `tb-recover.sh`
|
|
|
60
|
- documentatia instalata
|
|
|
61
|
|
|
|
62
|
Nu restaureaza si nu sterge fisierele de retea.
|