github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/workflow/triage-step/README.md (about)

     1  ## Ephemeral disk size usage estimations for Linux
     2  
     3  ```
     4  $ git fetch origin +refs/tags/torvalds-head:refs/tags/torvalds-head --depth=1
     5  $ du -h .
     6  260M    .
     7  $ git checkout torvalds-head
     8  $ du -h .
     9  2G      .
    10  $ git fetch origin 2dde18cd1d8fac735875f2e4987f11817cc0bc2c --depth=1
    11  $ du -h .
    12  2.1G    .
    13  $ git checkout 2dde18cd1d8fac735875f2e4987f11817cc0bc2c
    14  $ du -h .
    15  2G      .
    16  ```
    17  
    18  ## Without cloning the repository
    19  
    20  ```
    21  mkdir ~/shallow-repo ~/shallow-repo/.git ~/shallow-repo/workdir ~/overlayfs
    22  mount -t tmpfs -o size=128M tmpfs /root/overlayfs
    23  mkdir ~/overlayfs/upper ~/overlayfs/work
    24  mount -t overlay overlay -o lowerdir=/kernel-repo,upperdir=/root/overlayfs/upper,workdir=/root/overlayfs/work /root/shallow-repo/.git
    25  git --git-dir=/root/shallow-repo/.git --work-tree=/root/shallow-repo/workdir checkout master
    26  ```
    27  
    28  Needs:
    29  
    30  ```
    31          securityContext:
    32            capabilities:
    33              add: ["SYS_ADMIN"]
    34  ```