[Buildroot] [PATCH 1/1] package/skeleton-init-common: Create /lib/modules directory

Norbert Lange nolange79 at gmail.com
Mon Mar 18 16:30:10 UTC 2019


For read-only root file systems, the kernel-modules
will be mounted over this directory.
This directory should always exist for this reason,
just as /mnt and /opt are in the skeleton.

Signed-off-by: Norbert Lange <norbert.lange at andritz.com>
---
 package/skeleton-init-common/skeleton-init-common.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/skeleton-init-common/skeleton-init-common.mk b/package/skeleton-init-common/skeleton-init-common.mk
index e429b13d78..b39794eddc 100644
--- a/package/skeleton-init-common/skeleton-init-common.mk
+++ b/package/skeleton-init-common/skeleton-init-common.mk
@@ -20,6 +20,7 @@ define SKELETON_INIT_COMMON_INSTALL_TARGET_CMDS
 	$(call SYSTEM_RSYNC,$(SKELETON_INIT_COMMON_PATH),$(TARGET_DIR))
 	$(call SYSTEM_USR_SYMLINKS_OR_DIRS,$(TARGET_DIR))
 	$(call SYSTEM_LIB_SYMLINK,$(TARGET_DIR))
+	$(INSTALL) -d -m 0755 $(TARGET_DIR)/lib/modules
 	$(SED) 's, at PATH@,$(BR2_SYSTEM_DEFAULT_PATH),' $(TARGET_DIR)/etc/profile
 	$(INSTALL) -m 0644 support/misc/target-dir-warning.txt \
 		$(TARGET_DIR_WARNING_FILE)
-- 
2.20.1



More information about the buildroot mailing list