Update fs-squash.md
This commit is contained in:
@@ -1,7 +1,22 @@
|
||||
|
||||
# Squash
|
||||
|
||||
## Gensquashfs
|
||||
## Gensquashfs from dir .
|
||||
|
||||
```bash
|
||||
gensquashfs -f -D . -A ../xattr.txt -c zstd -X level=15 ../output.sqfs
|
||||
```
|
||||
|
||||
### Where in xattr.txt
|
||||
```
|
||||
# file: img/
|
||||
security.selinux="unconfined_u:object_r:virt_image_t:s0"
|
||||
|
||||
# file: img/virtual-img.raw
|
||||
security.selinux="unconfined_u:object_r:virt_image_t:s0"
|
||||
```
|
||||
|
||||
## Gensquashfs from list-file
|
||||
|
||||
```bash
|
||||
gensquashfs -f -F ./list-file -c xz -X "dictsize=1048576,level=9" -b 1048576 /tmp/output.sqfs
|
||||
|
Reference in New Issue
Block a user