mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 16:09:58 -07:00
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:
committed by
Markus Unterwaditzer
parent
81a193959c
commit
dd70a2a15d
@@ -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"
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user