Map bootmode ramdisk to normal for cloning partitions 11/300711/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20231102.181242
authorSangYoun Kwak <sy.kwak@samsung.com>
Thu, 6 Oct 2022 05:29:34 +0000 (14:29 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Wed, 1 Nov 2023 05:48:22 +0000 (14:48 +0900)
The service "clone_partitions" performs cloning partitions only when the
bootmode is "normal".
"ramdisk" was mapped to "normal" because cloning partitions should be
performed on both modes.

Change-Id: Idc265bc1c6b96683bd619372ba0d327971ddc616
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
hw/board/board.c

index 743a8238ead38cf16c21af039a36adc915f4ad07..d7e6dbfe3178dabd42563eed470f06a6eea0ca17 100644 (file)
@@ -87,6 +87,10 @@ static int get_boot_mode(char *buffer, const int max_len)
                return -ENOENT;
        }
 
+       if (!strncmp(buffer, "ramdisk", max_len)) {
+               snprintf(buffer, max_len, "normal");
+       }
+
        return 0;
 }