From 4a17e1047dc06977dd63efa984b0692ff54329ea Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 10 Jan 2017 15:24:21 +0100 Subject: nlplug-findfs: only mount and search a device if needed we dont need mount and scan the tree if not explicitly told to look for apkovls or bootrepos. --- nlplug-findfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nlplug-findfs.c b/nlplug-findfs.c index f4fed71..f283d17 100644 --- a/nlplug-findfs.c +++ b/nlplug-findfs.c @@ -984,7 +984,7 @@ static void uevent_handle(struct uevent *ev) snprintf(ev->devnode, sizeof(ev->devnode), "/dev/%s", ev->devname); pthread_mutex_lock(&conf->cryptsetup_mutex); - found = searchdev(ev, conf->search_device, 1); + found = searchdev(ev, conf->search_device, (conf->apkovls || conf->bootrepos)); pthread_mutex_unlock(&conf->cryptsetup_mutex); if (found) { founddev(conf, found); -- cgit v1.2.3