diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-04-27 12:41:24 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-04-27 12:41:24 +0200 |
commit | 20143cd6b0edf4756c556ed6626d6a6c6f22fb41 (patch) | |
tree | bcb6b8c800d55ea51179f67b19e46db5931401bf /doc | |
parent | 5630c5fa818a38c180ee4b859539cd37a9c2b93a (diff) |
gensquashfs: Add options to globally override UID/GID values
A common use case for mksquashfs is to simply pack a directory and set
a magic option to force all user/group IDs to root.
This commit adds similar options to gensquashfs to maek it better
suited as a direct replacement for packing an input directory.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gensquashfs.1 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/gensquashfs.1 b/doc/gensquashfs.1 index 0de39bf..6214741 100644 --- a/doc/gensquashfs.1 +++ b/doc/gensquashfs.1 @@ -76,6 +76,17 @@ mtime=<value>;\fB$SOURCE\_DATE\_EPOCH\fR if set, 0 otherwise .TE .TP .TP +\fB\-\-set\-uid\fR, \fB\-u\fR <number> +Force the owners user ID for ALL inodes to this value, no matter what the pack +file or directory entries actually specify. +.TP +\fB\-\-set\-gid\fR, \fB\-g\fR <number> +Force the owners group ID for ALL inodes to this value, no matter what the pack +file or directory entries actually specify. +.TP +\fB\-\-all\-root\fR +A short hand for `\-\-set\-uid 0 \-\-set\-gid 0`. +.TP \fB\-\-selinux\fR, \fB\-s\fR <file> If built with SELinux support, use the given SELinux label file to add context labels to the elements packed into the SquashFS image. |