aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-01-10 15:24:21 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2017-01-10 15:24:21 +0100
commit4a17e1047dc06977dd63efa984b0692ff54329ea (patch)
treeb38574115297b47c50fab258ca4d8d537f70bfc2
parent6ad3bada9a460f52cb208f4855d805a79e3062d2 (diff)
downloadmkinitfs-4a17e1047dc06977dd63efa984b0692ff54329ea.tar.bz2
mkinitfs-4a17e1047dc06977dd63efa984b0692ff54329ea.tar.xz
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.
-rw-r--r--nlplug-findfs.c2
1 files changed, 1 insertions, 1 deletions
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);