config.txt overwritten on each system update

If something seems really buggy, report it here!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

config.txt overwritten on each system update

Postby BZH44 » Sun Sep 09 2018 16:22

Hi,
The system updates overwrite the boot/config.txt file.
So the settings of my hdmi 7 inch screen (waveshare) are lost and I have to change config.txt again.

Could the update procedure be changed to solve this?

Thank you
Random avatar
BZH44
Sunday DIYer
Sunday DIYer
 
Posts: 24
Joined: Sun Dec 18 2016 11:07

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


config.txt overwritten on each system update

Postby hetbeest » Sun Sep 09 2018 18:15

I second this
Volumio 2, RaspberryPI 3, Hifiberry Digi+ transformer, Rotel RA-1570, B&W CM10S2
Random avatar
hetbeest
Sunday DIYer
Sunday DIYer
 
Posts: 13
Joined: Fri Sep 15 2017 21:58


config.txt overwritten on each system update

Postby gkkpch » Sun Sep 09 2018 23:13

There is no simple way to retain the changes in a customized config.txt to allow a safe reboot after an update as Volumio uses it to store its own runtime changes.
The only reasonable thing we could do (not omplemented yet and still needs approval) is to copy to original config.txt away to something like config.saved or config.backup, so tinkers could redo their changes more easily.
Volumio OS Developer

You like my work? Then what about buying me a beer :)
User avatar
gkkpch
Moderator
 
Posts: 1630
Joined: Mon Dec 29 2014 22:38
Location: Bodensee, Switzerland


config.txt overwritten on each system update

Postby AndrewHeard » Mon Sep 10 2018 07:00

or config.txt is used only by standard Volumio system, and any additional user configuration is read from an optional 2nd file say user_config.txt? Volumio is free to overwrite config.txt but will preserve user_config.txt.
Random avatar
AndrewHeard
Serious Listener
Serious Listener
 
Posts: 72
Joined: Tue Dec 19 2017 05:15


config.txt overwritten on each system update

Postby gvolt » Mon Sep 10 2018 17:24

There is already an "include" option for the config.txt (https://www.raspberrypi.org/documentation/configuration/config-txt/misc.md). The content of the file specified will then be inserted into the config.txt. This of course would require Volumio incorporating the "include" option into the default config.txt file.

In order to ensure a safe reboot after an update the include option could be commented out at the first boot. On the dev page of the webinterface a switch could be added to activate (uncomment) the include option in the config.txt file.
Random avatar
gvolt
Objectivist
Objectivist
 
Posts: 214
Joined: Fri Mar 02 2018 16:47


config.txt overwritten on each system update

Postby AndrewHeard » Mon Sep 10 2018 22:16

perfect!
Random avatar
AndrewHeard
Serious Listener
Serious Listener
 
Posts: 72
Joined: Tue Dec 19 2017 05:15


config.txt overwritten on each system update

Postby gvolt » Mon Sep 10 2018 23:02

Thanks :)

Yeah, I think it would be a win-win situation: Safe reboot after update for Volumio. And the user does not have to put his additions back into config.txt after every update. As a side effect the user has to decide consciously to reactivate the additional config options. ;)

Edit: Just commented on the issue on github: https://github.com/volumio/Build/issues/347.
Random avatar
gvolt
Objectivist
Objectivist
 
Posts: 214
Joined: Fri Mar 02 2018 16:47


config.txt overwritten on each system update

Postby gvolt » Mon Nov 04 2019 21:34

Pull request #368 https://github.com/volumio/Build/pull/368 has been merged with the changes Volumio had suggested. So with the next version the problem should be solved by using /boot/userconfig.txt. :)
Random avatar
gvolt
Objectivist
Objectivist
 
Posts: 214
Joined: Fri Mar 02 2018 16:47


config.txt overwritten on each system update

Postby michelangelo » Tue Nov 05 2019 07:37

Thanks gvolt for that !
Now comes the boring part: documenting it ;) Would you like to add it to documentation? Just do a pr to:
https://github.com/volumio/docs/tree/master/docs

If you can't, just feel free to send me the text and I'll add it.

;)
User avatar
michelangelo
Founder
 
Posts: 4377
Joined: Sun Dec 15 2013 23:18


config.txt overwritten on each system update

Postby gvolt » Tue Nov 05 2019 10:03

Done: https://github.com/volumio/docs/pull/71 :)

Let me know if it should be extended by more technical details.
Random avatar
gvolt
Objectivist
Objectivist
 
Posts: 214
Joined: Fri Mar 02 2018 16:47


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 0 guests