diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-11-19 20:09:12 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2022-11-19 20:09:12 +0100 |
commit | 7bf4cc03d379bdd71c61982abde2355c578e4ef2 (patch) | |
tree | 4b0070f157349c003efdf3aa6563d9e26ea1bb62 /bin | |
parent | 296b2d082469200673f16595f3983ff4a7b4655f (diff) |
gensquashfs: Add example for the xattr filemap to the help text
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/gensquashfs/options.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/gensquashfs/options.c b/bin/gensquashfs/options.c index c0bdb00..f263bce 100644 --- a/bin/gensquashfs/options.c +++ b/bin/gensquashfs/options.c @@ -178,6 +178,20 @@ const char *sort_details = " 1337 \"usr/share/my \\\"special\\\" file \"\n" "\n\n"; +static const char *xattr_details = +"The format of xattr files tries to immitate the format generated\n" +"by `getfattr --dump`.\n" +"\n" +"Example:\n" +" # file: dev/\n" +" security.selinux=\"system_u:object_r:device_t:s0\"\n" +" user.beverage_preference=0xCAFECAFEDECAFBAD\n" +"\n" +" # file: dev/rfkill\n" +" security.selinux=\"system_u:object_r:wireless_device_t:s0\"\n" +" system.posix_acl_access=0sSGVsbG8gdGhlcmUgOi0pCg==\n" +"\n\n"; + void process_command_line(options_t *opt, int argc, char **argv) { bool have_compressor; @@ -307,6 +321,7 @@ void process_command_line(options_t *opt, int argc, char **argv) fputs(extra_options, stdout); fputs(pack_details, stdout); fputs(sort_details, stdout); + fputs(xattr_details, stdout); compressor_print_available(); exit(EXIT_SUCCESS); case 'V': |