diff options
author | SangYoun Kwak <sy.kwak@samsung.com> | 2022-10-06 14:29:34 +0900 |
---|---|---|
committer | SangYoun Kwak <sy.kwak@samsung.com> | 2022-10-06 14:29:34 +0900 |
commit | 67bc9d74cb5d2763a89983ea8e0cc993fab45cb0 (patch) | |
tree | 3800a4013c60cf499a3c0f968b8986e380f460c6 | |
parent | d30bc71df8c92b42e24d5f237f607345425ebf2d (diff) | |
download | device-rpi-67bc9d74cb5d2763a89983ea8e0cc993fab45cb0.tar.gz device-rpi-67bc9d74cb5d2763a89983ea8e0cc993fab45cb0.tar.bz2 device-rpi-67bc9d74cb5d2763a89983ea8e0cc993fab45cb0.zip |
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 <sy.kwak@samsung.com>
-rw-r--r-- | hw/board/board.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |