diff mbox series

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

Message ID 395a150d-058f-d629-3b5c-6524fbb1b5f6@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series [isar-cip-core] start-qemu: Mark rootfs read-write | expand

Commit Message

Jan Kiszka July 6, 2022, 9:28 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

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

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

Patch

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