Update fs-squash.md

This commit is contained in:
Super User
2024-12-19 15:27:18 +03:00
parent 2ec594f584
commit 4834ba5748

View File

@@ -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