diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-09-26 16:03:11 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-09-27 10:27:37 +0000 |
| commit | f1a5349d68885e574b486c34bd0e257663df6e55 (patch) | |
| tree | afa4a2effdbed1f662ef214fd31a18f2387d3971 /tools/create-buildroot-image.sh | |
| parent | 0c245ee318d7cb7257960c447754cfcbb3eec4f6 (diff) | |
tools: mount devtmpfs in Buildroot images explicitly
It will enable Buildroot image usage also for the kenrels that don't
enable CONFIG_DEVTMPFS_MOUNT.
Diffstat (limited to 'tools/create-buildroot-image.sh')
| -rwxr-xr-x | tools/create-buildroot-image.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 <<EOF debugfs /sys/kernel/debug debugfs defaults 0 0 |
