From 6fb4409ee359baf11abe37b27dcbb23037e6033c Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Tue, 13 Jul 2021 12:35:52 +0100
Subject: [PATCH] x-qemux86-directdisk.wks.in: Use dynamic rootfstype and
 remove rw

The default configuration for the rootfs is now read-only. The ro
argument is injected through APPEND in read-only-rootfs hooks so all we
need to do is to drop `rw`.

We also let rootfstype be defined dynamically so we can support multiple
configuration in the future.

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-ohos-core/wic/x-qemux86-directdisk.wks.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-ohos-core/wic/x-qemux86-directdisk.wks.in b/meta-ohos-core/wic/x-qemux86-directdisk.wks.in
index eae4998e..8d30a44c 100644
--- a/meta-ohos-core/wic/x-qemux86-directdisk.wks.in
+++ b/meta-ohos-core/wic/x-qemux86-directdisk.wks.in
@@ -18,7 +18,7 @@
 # 0 |
 #   4096KiB
 
-bootloader --source bootimg-pcbios --timeout=0 --append="rw oprofile.timer=1 rootfstype=ext4"
+bootloader --source bootimg-pcbios --timeout=0 --append="oprofile.timer=1 rootfstype=${ROOT_FSTYPE}"
 
 part --source bootimg-pcbios --label x-boot --align 4096 --fixed-size ${BOOT_PARTITION_SIZE} --active --offset 4096
 ${WIC_ROOTA_PARTITION}
-- 
GitLab