aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/workflow/triage-step/README.md
blob: 9d4b517255a1f90b911e48891847e222f4797d2a (plain)
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
## Ephemeral disk size usage estimations for Linux

```
$ git fetch origin +refs/tags/torvalds-head:refs/tags/torvalds-head --depth=1
$ du -h .
260M    .
$ git checkout torvalds-head
$ du -h .
2G      .
$ git fetch origin 2dde18cd1d8fac735875f2e4987f11817cc0bc2c --depth=1
$ du -h .
2.1G    .
$ git checkout 2dde18cd1d8fac735875f2e4987f11817cc0bc2c
$ du -h .
2G      .
```

## Without cloning the repository

```
mkdir ~/shallow-repo ~/shallow-repo/.git ~/shallow-repo/workdir ~/overlayfs
mount -t tmpfs -o size=128M tmpfs /root/overlayfs
mkdir ~/overlayfs/upper ~/overlayfs/work
mount -t overlay overlay -o lowerdir=/kernel-repo,upperdir=/root/overlayfs/upper,workdir=/root/overlayfs/work /root/shallow-repo/.git
git --git-dir=/root/shallow-repo/.git --work-tree=/root/shallow-repo/workdir checkout master
```

Needs:

```
        securityContext:
          capabilities:
            add: ["SYS_ADMIN"]
```