From e072ddcb07cc38aa473901b6800712a7a23a556e Mon Sep 17 00:00:00 2001
From: Qiumiao Zhang <zhangqiumiao1@huawei.com>
Date: Thu, 10 Oct 2024 06:55:24 +0000
Subject: [PATCH] 10_linux: fix missing "ro" in kernel boot parameters

Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
---
 util/grub.d/10_linux.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index af09e65..eca52ff 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -423,7 +423,7 @@ linux_entry ()
   message="$(gettext_printf "Loading Linux %s ..." ${version})"
   sed "s/^/$submenu_indentation/" << EOF
 	echo	'$(echo "$message" | grub_quote)'
-	linux	${rel_dirname}/${basename} ${root_device} ${args}
+	linux	${rel_dirname}/${basename} ${root_device} ro ${args}
 EOF
   if test -n "${initrd}" ; then
     # TRANSLATORS: ramdisk isn't identifier. Should be translated.
-- 
2.33.0

