Conversation
- Added new method to log messages into a file during the F/W Update process. This replaces the previous method that was causing some issues when trying to unmount the USB-attached drive just before the F/W was updated. - Added code to show the F/W Update notification date on the menu. - Moved a few functions to the top.
|
So thank you for refactoring the logging solution. @Martinski4GitHub However as I was concerned, I just tested updating to the latest firmware and post reboot my USB was still: "SDA(1)" as seen below: Interestingly, if I unmount "SDA(1)" in the WebUI, I am only left with the SDA folder in my mnt location as seen below: Why does the unmount when flashing not do the same? Either something is still holding on to the logging/the zip file on the USB, or this is some kinda firmware bug we would be working around. |
|
So far there are 2 ways I can re-create this issue for me.
However, if I go to the webUI, and simply click "Safely remove" it successfully unmounts AND deletes the mnt point. Then I can unplug and replug the USB live without issue, it remounts as "SDA" correctly. |
|
And have the same bug doing from 388.5 --> Down to 388.4... And also 388.5 --> To the newest Alpha 388.6 The only way it works is for me correctly to click "Safety Remove Disk" from the WebUI, and then unplug and just replug the USB.. (Not preforming an upgrade or a reboot) and it comes back up normal. The only difference I can see so far is ASUS seem to remove the mount point with the unmount from the WebUI, while a regular unmount command alone doesn't remove the mnt point also. I tried setting my USB mode to USB 2 in the WebUI and it made no difference to the tests. |
|
I tried implementing this code from yesterday again: Sadly the same result, upon reboot I had SDA and SDA(1). |
|
Whoa. So I reformatted and renamed the USB. It's now NTFS format instead of FAT and it's name is SDE instead of SDA. I then reboot and SDA comes back!!!! Along with SDE. So I have both SDA and SDE post reboot when before the reboot everything was only working alone with SDE. So seems something is stuck "remembering" to create SDA on bootup. |
|
Completely removed our script, and now all of a sudden the problem is gone. Upon reboot I only have SDE now and no SDA. So it is the logging from our script, and not a firmware bug. As i suspected up here:
Something in the restart addconjob hook is creating the directory for the mnt point on reboot. |
|
Problem is at line 858: This runs everytime, and tries to create the log directory on every reboot, in this case my log directory was on on the USB so on every reboot, it tries to create "MerlinAU/logs" under /tmp/mnt/SDA |
|
Opened a new Pull request to solve these bugs once and for all: Auto-merge should be enabled for when you approve I believe :) Thanks again for your help and happy holidays! |
Yep, that would do it. Excellent troubleshooting!! |
Thank you!!! I kept the log rotation in the same location but just changed to the logic to if the directory exists, do the log rotations, and removed the make directory command. And then moved the original function which does make the directory in the set log directory function, it seemed to work but if you know a better place to move it feel free! |
Yeah, I saw that. Only checking for log rotation is fine where it was so it's done every time the script runs. |




Added new method to log messages into a file during the F/W Update process. This replaces the previous method that was causing some issues when trying to unmount the USB-attached drive just before the F/W was updated.
Added code to show the F/W Update notification date on the menu.
Moved some functions near the top.