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