Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com> (cherry picked from commit 6d2e2f52e74ebe3700fe7da76c59414ea2a97b1b)
27 lines
940 B
Diff
27 lines
940 B
Diff
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
|
|
|