Add fs-squash.md

This commit is contained in:
Super User
2024-06-28 12:03:30 +03:00
parent 87a1175a3e
commit 1b5f2bbd87

23
docs/linux/fs-squash.md Normal file
View File

@@ -0,0 +1,23 @@
# Squash
## Gensquashfs
```bash
gensquashfs -f -F ./list-file -c xz -X dictsize=1048576 level=9 -b 1048576 /tmp/output.sqfs
```
### Where in list-file
```
# comment
dir sqfs/path 0755 999 999
file sqfs/path/file 0644 uid git /real/path/to/file
```
## Mksquashfs
```bash
mksquashfs ./ ../output.sqfs -comp xz -Xdict-size 100% -b 1048576 -force-uid 0 -force-gid 0
```