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.
This commit is contained in:
Markus Unterwaditzer
2025-12-16 13:16:39 +01:00
committed by Markus Unterwaditzer
parent 81a193959c
commit dd70a2a15d

View File

@@ -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"
),
)
}