[PATCH·s6-linux-init] Remove error message when rc.shutdown.final script is not found

From: Sertonix <sertonix_at_posteo.net>
Date: Sun, 09 Jun 2024 12:01:56 +0000

Signed-off-by: Sertonix <sertonix_at_posteo.net>
---
 src/shutdown/s6-linux-init-shutdownd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/shutdown/s6-linux-init-shutdownd.c b/src/shutdown/s6-linux-init-shutdownd.c
index 5a17625..dc0503e 100644
--- a/src/shutdown/s6-linux-init-shutdownd.c
+++ b/src/shutdown/s6-linux-init-shutdownd.c
_at__at_ -191,10 +191,10 _at__at_ static inline void prepare_stage4 (char const *basedir, char what)
       EXECLINE_SHEBANGPREFIX "execlineb -P\n\n"
       EXECLINE_EXTBINPREFIX "foreground { "
       S6_LINUX_INIT_BINPREFIX "s6-linux-init-umountall }\n"
-      EXECLINE_EXTBINPREFIX "foreground { ") < 0
+      EXECLINE_EXTBINPREFIX "foreground { tryexec {") < 0
      || !string_quote(&satmp, basedir, strlen(basedir))
      || buffer_put(&b, satmp.s + sabase, satmp.len - sabase) < 0
-     || buffer_puts(&b, "/scripts/" STAGE4 " }\n"
+     || buffer_puts(&b, "/scripts/" STAGE4 " } }\n"
       S6_LINUX_INIT_BINPREFIX "s6-linux-init-hpr -f -") < 0
      || buffer_put(&b, &what, 1) < 0
      || buffer_putsflush(&b, "\n") < 0)
-- 
2.45.2
Received on Sun Jun 09 2024 - 14:01:56 CEST

This archive was generated by hypermail 2.4.0 : Sun Jun 09 2024 - 14:02:30 CEST