From df652464f919ccee6054c3841ac52ce4152e2aba Mon Sep 17 00:00:00 2001 From: yangpan Date: Thu, 14 Sep 2023 19:53:38 +0800 Subject: [PATCH] change the mode of bash.rto to fix the error during sysboost startup --- bin/aot.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/aot.rs b/bin/aot.rs index 33fe3f0..829d75c 100644 --- a/bin/aot.rs +++ b/bin/aot.rs @@ -161,6 +161,13 @@ pub fn gen_app_rto(conf: &RtoConfig) -> i32 { if ret != 0 { return ret; } + let mut set_mod: Vec = Vec::new(); + set_mod.push("755".to_string()); + set_mod.push(format!("{}.rto", conf.elf_path)); + ret = run_child("/usr/bin/chmod", &set_mod); + if ret != 0 { + return ret; + } let mut set_bash: Vec = Vec::new(); set_bash.push("--set".to_string()); set_bash.push(format!("{}", conf.elf_path)); -- Gitee