Skip to content

Commit

Permalink
e2e_tests: Update guest kernel config and initramfs
Browse files Browse the repository at this point in the history
As I'm tinkering with the first real benchmark (pgbench), a few
kernel configs are found to be missing to support psql to run in
e2e test guests. Among with previously added but not uprev-ed
KConfig changes, an uprev is prepared.

Initramfs script is also updated to match distribution behavior.

TEST=locally can pass postgres e2e benchmark

BUG=b:257303497

Change-Id: I69b44e3156d3296cbef7fa41804e8b54e4aaf0ab
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4761848
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Zihan Chen <zihanchen@google.com>
  • Loading branch information
InternetOfTofu authored and crosvm LUCI committed Aug 11, 2023
1 parent 0de4fd2 commit 9151130
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion e2e_tests/guest_under_test/PREBUILT_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
r0007
r0008
1 change: 1 addition & 0 deletions e2e_tests/guest_under_test/initramfs/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mkdir -p /newroot/proc /newroot/sys /newroot/dev || true
mount --move /sys /newroot/sys
mount --move /proc /newroot/proc
mount --move /dev /newroot/dev
ln -sf /proc/self/fd /newroot/dev/fd

cp /bin/delegate /newroot/bin/delegate || true

Expand Down
2 changes: 2 additions & 0 deletions e2e_tests/guest_under_test/kernel/common.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ CONFIG_DEVTMPFS_MOUNT=y
CONFIG_CGROUPS=y
CONFIG_UNIX=y
CONFIG_UNIX_SCM=y
CONFIG_SHMEM=y
CONFIG_SYSVIPC=y

# Virtio devices
CONFIG_VIRTIO_VSOCKETS=y
Expand Down

0 comments on commit 9151130

Please sign in to comment.