Description of problem: 'virt-sysprep --selinux' flag should: loadpolicy (for guests which support this) so that SELinux labelling works properly. When this flag is specified, DON'T set autorelabel. The autorelabel step takes too long! (Requested by Mark @ catn.com)
Since libguestfs 1.26 virt-sysprep has --selinux-relabel which should do the job (either relabel files if possible, or touch /.autorelabel if not), modulo bugs (#1089100). Should this be closed at this point, leaving #1089100 (and eventually others) to deal with bugs of --selinux-relabel?
Even better, let's make it a dependency ...
These patches comprehensively fix the --selinux-relabel option, so let's close this. https://github.com/libguestfs/libguestfs/commit/9d205f1c284a69390907120ca44f5c723fecc244 https://github.com/libguestfs/libguestfs/commit/6ec75f8cfe455493b46f1a3a5a00282359e588a5 https://github.com/libguestfs/libguestfs/commit/f3c69fe60bc29ebfcef0ea9d86d407e1a88686b0 https://github.com/libguestfs/libguestfs/commit/b6e92b1100b4ca462a35549bd36322f0510739bc https://github.com/libguestfs/libguestfs/commit/35bac3a6501354e4a3805877d950e741429f169b https://github.com/libguestfs/libguestfs/commit/fc114904848559e02d8f4e4a8bfb57277c349f0f