Add fs-squash.md
This commit is contained in:
23
docs/linux/fs-squash.md
Normal file
23
docs/linux/fs-squash.md
Normal 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
|
||||
```
|
Reference in New Issue
Block a user