ref: 4a17e1047dc06977dd63efa984b0692ff54329ea
parent: 6ad3bada9a460f52cb208f4855d805a79e3062d2
author: Natanael Copa <ncopa@alpinelinux.org>
date: Tue Jan 10 09:24:21 CST 2017
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.
--- a/nlplug-findfs.c
+++ b/nlplug-findfs.c
@@ -984,7 +984,7 @@
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);