]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: disable bootctl without libblkid
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 12 Apr 2017 16:36:20 +0000 (12:36 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2017 01:47:27 +0000 (21:47 -0400)
bootctl uses blkid probe functions to find the ESP, hence it's useless without
it. Don't even try to build it if libblkid is unavailable.

meson.build
meson_options.txt

index 116325fb7d7535add4a4d2645faeebefbdf5ba96..7eac7b48fefb38b45bae392138ad329b921030ff 100644 (file)
@@ -1306,7 +1306,7 @@ if conf.get('HAVE_PAM', 0) == 1
              install_dir : rootlibexecdir)
 endif
 
-if conf.get('ENABLE_EFI', 0) == 1
+if conf.get('ENABLE_EFI', 0) == 1 and conf.get('HAVE_BLKID', 0) == 1
   executable('bootctl',
              'src/boot/bootctl.c',
              include_directories : includes,
index 5b3d37ce9e0a167991f2cfa0ec4c401d4fd6ab07..653a3a6ec737de90ad640e79aab2618ebabc0ffc 100644 (file)
@@ -36,7 +36,7 @@ option('ldconfig', type : 'boolean',
 option('resolve', type : 'boolean',
        description : 'systemd-resolved stack')
 option('efi', type : 'boolean',
-       description : 'support for EFI')
+       description : 'enable systemd-boot and bootctl')
 option('environment-d', type : 'boolean',
        description : 'support for environment.d')
 option('binfmt', type : 'boolean',