From f1a5349d68885e574b486c34bd0e257663df6e55 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 26 Sep 2024 16:03:11 +0200 Subject: tools: mount devtmpfs in Buildroot images explicitly It will enable Buildroot image usage also for the kenrels that don't enable CONFIG_DEVTMPFS_MOUNT. --- tools/create-buildroot-image.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/create-buildroot-image.sh') diff --git a/tools/create-buildroot-image.sh b/tools/create-buildroot-image.sh index 8e7c731b9..0bf0fd386 100755 --- a/tools/create-buildroot-image.sh +++ b/tools/create-buildroot-image.sh @@ -161,6 +161,9 @@ esac cat >rootfs_script.sh <<'EOFEOF' set -eux +# Mount /dev right after / is mounted. +sed -Ei '/\/dev\/pts/i ::sysinit:/bin/mount -t devtmpfs devtmpfs /dev' $1/etc/inittab + # Mount debugfs for KCOV and other filesystems. cat >>$1/etc/fstab <