[PATCH isar-cip-core] start-qemu: Mark rootfs read-write


Jan Kiszka
 

From: Jan Kiszka <jan.kiszka@...>

This ensures that early systemd work such as machine ID generation finds
a writable rootfs.

Signed-off-by: Jan Kiszka <jan.kiszka@...>
---
start-qemu.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/start-qemu.sh b/start-qemu.sh
index f066209..2350612 100755
--- a/start-qemu.sh
+++ b/start-qemu.sh
@@ -67,7 +67,7 @@ case "${arch}" in
${QEMU_EXTRA_ARGS} -device ide-hd,drive=disk"
fi
KERNEL_CMDLINE=" \
- root=/dev/sda"
+ root=/dev/sda rw"
;;
arm64|aarch64)
QEMU_ARCH=arm64
@@ -81,7 +81,7 @@ case "${arch}" in
-device virtio-blk-device,drive=disk \
-device virtio-net-device,netdev=net"
KERNEL_CMDLINE=" \
- root=/dev/vda"
+ root=/dev/vda rw"
;;
arm|armhf)
QEMU_ARCH=arm
@@ -95,7 +95,7 @@ case "${arch}" in
-device virtio-blk-device,drive=disk \
-device virtio-net-device,netdev=net"
KERNEL_CMDLINE=" \
- root=/dev/vda"
+ root=/dev/vda rw"
;;
""|--help)
usage
--
2.35.3