From: SangYoun Kwak Date: Thu, 6 Oct 2022 05:29:34 +0000 (+0900) Subject: Map bootmode ramdisk to normal for cloning partitions X-Git-Tag: accepted/tizen/7.0/unified/20231102.181242^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_7.0;p=platform%2Fhal%2Fbackend%2Frpi%2Fdevice-rpi.git Map bootmode ramdisk to normal for cloning partitions 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 --- diff --git a/hw/board/board.c b/hw/board/board.c index 743a823..d7e6dbf 100644 --- a/hw/board/board.c +++ b/hw/board/board.c @@ -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; }