]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mkswap: tolerate ENOTSUP when failing to relabel
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 18 Apr 2016 07:01:23 +0000 (09:01 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Apr 2016 08:51:28 +0000 (10:51 +0200)
commitd97dc0ee2505e80c8e9fca89aa2001b2ec2c3695
tree6ff57fec42149212068cce7123b8012c5cbf33e3
parenta772281dff903b9e761c4d8a6c2ecad7d5f944ba
mkswap: tolerate ENOTSUP when failing to relabel

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@v3.sk>
disk-utils/mkswap.c