From: Daan De Meyer Date: Thu, 30 Mar 2023 08:21:45 +0000 (+0200) Subject: find-esp: Drop explicit automount trigger X-Git-Tag: v254-rc1~837^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05c423adc944b571e1b068b84b55bd42fb3ca08f;p=thirdparty%2Fsystemd.git find-esp: Drop explicit automount trigger We call statx_fallback() which calls either statx() or fstatat(), both of which automount by default, so we don't need the explicit trigger. --- diff --git a/src/shared/find-esp.c b/src/shared/find-esp.c index c6ef4ec87aa..1dbd1e82174 100644 --- a/src/shared/find-esp.c +++ b/src/shared/find-esp.c @@ -261,11 +261,6 @@ static int verify_fsroot_dir( (unprivileged_mode && ERRNO_IS_PRIVILEGE(errno)) ? LOG_DEBUG : LOG_ERR, errno, "Failed to open directory \"%s\": %m", path); - /* So, the ESP and XBOOTLDR partition are commonly located on an autofs mount. stat() on the - * directory won't trigger it, if it is not mounted yet. Let's hence explicitly trigger it here, - * before stat()ing */ - (void) faccessat(fd, "trigger", F_OK, AT_SYMLINK_NOFOLLOW); /* Filename doesn't matter... */ - r = statx_fallback(fd, "", AT_EMPTY_PATH, STATX_TYPE|STATX_INO|STATX_MNT_ID, &sxa.sx); if (r < 0) return log_full_errno((unprivileged_mode && ERRNO_IS_PRIVILEGE(r)) ? LOG_DEBUG : LOG_ERR, r,