blob: 48b94cdce453314f5796b9685e957de117719c68 [file] [log] [blame]
developer77beb692023-06-08 11:08:46 +08001From 7be8614176dc79bc242a12b7669f330058e36df6 Mon Sep 17 00:00:00 2001
2From: Sam Shih <sam.shih@mediatek.com>
3Date: Fri, 2 Jun 2023 13:06:24 +0800
4Subject: [PATCH] [adv-feature][999-2550-dual-image-mount-rootfs.patch]
5
6---
7 init/do_mounts.c | 3 ++-
8 kernel/boot_param.c | 2 +-
9 2 files changed, 3 insertions(+), 2 deletions(-)
10
11diff --git a/init/do_mounts.c b/init/do_mounts.c
12index cd5fca8aa..2dfc0dac7 100644
13--- a/init/do_mounts.c
14+++ b/init/do_mounts.c
15@@ -576,7 +576,8 @@ void __init mount_root(void)
16 }
17 #endif
18 #ifdef CONFIG_MTD_ROOTFS_ROOT_DEV
19- if (!mount_ubi_rootfs())
20+ extern bool dual_boot;
21+ if (!dual_boot && !mount_ubi_rootfs())
22 return;
23 #endif
24 #ifdef CONFIG_BLOCK
developer77beb692023-06-08 11:08:46 +080025--
262.34.1
27