endif
libmount = dependency('mount',
- version : fuzzer_build ? '>= 0' : '>= 2.30')
+ version : fuzzer_build ? '>= 0' : '>= 2.30',
+ disabler : true,
+ required : get_option('libmount'))
libfdisk = dependency('fdisk',
version : '>= 2.32',
description : 'libdbus support (for tests only)')
option('libarchive', type : 'feature',
description : 'libarchive support')
+option('libmount', type : 'feature',
+ description : 'libmount support')
option('bootloader', type : 'feature', deprecated : { 'true' : 'enabled', 'false' : 'disabled' },
description : 'sd-boot/stub and userspace tools')
# statically linking isn't viable for us for various reasons, we do a build with most features disabled
# to link against as few libraries as possible. The libraries we do end up linking against happen (by
# chance) to be installed in the oss-fuzz execution environment.
- meson_args+=("-Doss-fuzz=true" "--auto-features=disabled" "-Dnspawn=enabled" "-Dresolve=true")
+ meson_args+=("-Doss-fuzz=true" "--auto-features=disabled" "-Dlibmount=enabled" "-Dnspawn=enabled" "-Dresolve=true")
apt-get update
apt-get install -y gperf m4 gettext python3-pip \