From 6239e449d15e6f714714353bf10f100e0397d3fa Mon Sep 17 00:00:00 2001 From: Cherniaev Andrei Date: Thu, 31 Oct 2024 20:04:41 +0900 Subject: [PATCH] configs/pc: fix grub root device in help The rootfs partition is the first partition, not the second one: the Grub configuration file already contains root=/dev/sda1 by default, and it should be changed to root=/dev/vda1 if Qemu emulation is used. Signed-off-by: Cherniaev Andrei Signed-off-by: Thomas Petazzoni (cherry picked from commit 9e3d572ff532df945fbc282fed22d10098e5718b) Signed-off-by: Peter Korsgaard --- board/pc/readme.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/pc/readme.txt b/board/pc/readme.txt index 41aec50d36..99e8f442ea 100644 --- a/board/pc/readme.txt +++ b/board/pc/readme.txt @@ -42,8 +42,8 @@ Emulation in qemu (BIOS) 1. Edit grub-bios.cfg Since the driver will show up in the virtual machine as /dev/vda, - change board/pc/grub-bios.cfg to use root=/dev/vda2 instead of - root=/dev/sda2. Then rebuild grub2 and the image. + change board/pc/grub-bios.cfg to use root=/dev/vda1 instead of + root=/dev/sda1. Then rebuild grub2 and the image. 2. Run the emulation with: