From: Yu Watanabe Date: Mon, 10 Nov 2025 02:16:13 +0000 (+0900) Subject: dissect: getenv_fstype() is unused when LIBBLKID support is disabled X-Git-Tag: v259-rc1~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f50f785737a0bc810c0721ea84b5dbd973cc0e57;p=thirdparty%2Fsystemd.git dissect: getenv_fstype() is unused when LIBBLKID support is disabled Follow-up for aad0d11e7c6f1f7dcc7b00173140c74b8abf88cc. --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 9843510faf1..5a27620244a 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -118,6 +118,7 @@ int dissect_fstype_ok(const char *fstype) { return false; } +#if HAVE_BLKID static const char *getenv_fstype(PartitionDesignator d) { if (d < 0 || @@ -128,6 +129,7 @@ static const char *getenv_fstype(PartitionDesignator d) { char *v = strjoina("SYSTEMD_DISSECT_FSTYPE_", partition_designator_to_string(d)); return secure_getenv(ascii_strupper(v)); } +#endif int probe_sector_size(int fd, uint32_t *ret) {