It might be that the underlying filesystem just doesn't support SELinux labeling. This fixes creating swap on vfat live media: # livecd-iso-to-disk.sh --msdos --swap-size-mb 666 ... Signed-off-by: Lubomir Rintel <lkundrak@xxxxx> --- disk-utils/mkswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c index a7c6a70..e44d039 100644 --- a/disk-utils/mkswap.c +++ b/disk-utils/mkswap.c @@ -522,7 +522,7 @@ int main(int argc, char **argv) context_string = context_str(newcontext); if (strcmp(context_string, oldcontext)!=0) { - if (fsetfilecon(ctl.fd, context_string)) + if (fsetfilecon(ctl.fd, context_string) && errno != ENOTSUP) err(EXIT_FAILURE, _("unable to relabel %s to %s"), ctl.devname, context_string); } -- 2.7.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html