blob: 48b94cdce453314f5796b9685e957de117719c68 [file] [log] [blame]
From 7be8614176dc79bc242a12b7669f330058e36df6 Mon Sep 17 00:00:00 2001
From: Sam Shih <sam.shih@mediatek.com>
Date: Fri, 2 Jun 2023 13:06:24 +0800
Subject: [PATCH] [adv-feature][999-2550-dual-image-mount-rootfs.patch]
---
init/do_mounts.c | 3 ++-
kernel/boot_param.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/init/do_mounts.c b/init/do_mounts.c
index cd5fca8aa..2dfc0dac7 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -576,7 +576,8 @@ void __init mount_root(void)
}
#endif
#ifdef CONFIG_MTD_ROOTFS_ROOT_DEV
- if (!mount_ubi_rootfs())
+ extern bool dual_boot;
+ if (!dual_boot && !mount_ubi_rootfs())
return;
#endif
#ifdef CONFIG_BLOCK
--
2.34.1