From dd70a2a15d6512ace2c797faee3faf6368dc87e0 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 16 Dec 2025 13:16:39 +0100 Subject: [PATCH] Add mount logs to rayhunter installer We sometimes, but rarely, get bug reports where the sdcard fails mounting. Write a dedicated log file for the mounting action to /tmp, separately from the rayhunter logfile that is on the sdcard itself. That log file is probably going to be small so it can fit in /tmp. --- installer/src/tplink.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installer/src/tplink.rs b/installer/src/tplink.rs index 0702b7c..47c15e2 100644 --- a/installer/src/tplink.rs +++ b/installer/src/tplink.rs @@ -379,7 +379,9 @@ fn get_rayhunter_daemon(sdcard_path: &str) -> String { // specific to a particular hardware revision here. crate::RAYHUNTER_DAEMON_INIT.replace( "#RAYHUNTER-PRESTART", - &format!("mount /dev/mmcblk0p1 {sdcard_path} || true"), + &format!( + "(mount /dev/mmcblk0p1 {sdcard_path} || true) 2>&1 | tee /tmp/rayhunter-mount.log" + ), ) }