summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 101f615178..b3e19c48a1 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -465,7 +465,7 @@ python populate_packages_prepend () {
465 # avoid warnings. removedirs only raises an OSError if an empty 465 # avoid warnings. removedirs only raises an OSError if an empty
466 # directory cannot be removed. 466 # directory cannot be removed.
467 dvar = d.getVar('PKGD', True) 467 dvar = d.getVar('PKGD', True)
468 for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar)]: 468 for dir in ["%s/etc/modprobe.d" % (dvar), "%s/etc/modules-load.d" % (dvar), "%s/etc" % (dvar)]:
469 if len(os.listdir(dir)) == 0: 469 if len(os.listdir(dir)) == 0:
470 os.rmdir(dir) 470 os.rmdir(dir)
471 471