This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9944 - RBUtils gets into a configuration loop when it fails to write config files.
Attached to Project:
Rockbox
Opened by Hawson (hawson) - Monday, 23 February 2009, 02:33 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 25 February 2009, 21:56 GMT+2
Opened by Hawson (hawson) - Monday, 23 February 2009, 02:33 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Wednesday, 25 February 2009, 21:56 GMT+2
|
DetailsRBUtils should return a error message when failing to write a configuration file due to file permissions issues.
Currently, when rbutils lacks write permissions to the mount point, an error message that reads "The configuration is invalid... Starting the configuration dialog." Upon closing the configuration dialog (with correct information), the message about "The configuration is invalid..." appears again immediately. There is no delay, nor chance to chose other menu options. Obviously, rbutils has failed to write the configuration file correctly, and is trying to do so again. Instead, rbutil should return an error message that indicates writing the configuration file has failed (and perhaps a hint to check the permissions on the mount point). |
This task depends upon
Closed by Dominik Riebeling (bluebrother)
Wednesday, 25 February 2009, 21:56 GMT+2
Reason for closing: Fixed
Additional comments about closing: r20100 adds configuration checks to the configuration dialog, pointing out errors earlier and more detailed.
Wednesday, 25 February 2009, 21:56 GMT+2
Reason for closing: Fixed
Additional comments about closing: r20100 adds configuration checks to the configuration dialog, pointing out errors earlier and more detailed.
You can leave the described loop by exiting the configuration dialog using the Abort button instead of Ok.
Please don't claim things done by rbutil unless you know it or have checked it. "Obviously, rbutils has failed to write the configuration file correctly" is completely wrong. It discovered that the mountpoint you chose won't work for installation which is intentional.
I agree that a read-only mount point is a user problem; not something to be fixed by rbutils. The issue is with the error message being somewhat unhelpful. The impression I got from the error message was that there was an issue saving the configuration due to mount point permissions. This was wrong, of course, but still confusing.
As I see it, there are two minor rbutil issues:
1) The error message being slightly misleading.
2) The configuration "loop", with no obvious fix, or help for a solution, from *within* the program.
I didn't check running rbutils under sudo, as is not reason to do so. Just set the 'user' option in /etc/fstab for the mount point in question, and it should be good to go.
/dev/sda1 /mnt/sandisk vfat user,sync,noauto 0 0