• spiiroin's avatar
    [settings] Do not write dynamic data to /etc. Fixes JB#38241 · 0e9f72cb
    spiiroin authored
    While combining all configuration data into /etc/usb-moded/usb-moded.ini
    works as expected when new configuration files are installed to the device,
    it also means that 1) uninstalling / updating configuration files has no
    effect and 2) /etc can't reside on a read-only file-system.
    
    Maintain "delta to static configuration" and store it outside /etc - in
    /var/lib/usb-moded/usb-moded.ini, so that also changes in / removal of
    existing configuration files are handled in deterministic manner.
    
    If /etc/usb-moded/usb-moded.ini exists, migrate data from it and then remove
    the now unnecessary file.
    
    Streamline handling of non-existing configuration and remove functions made
    redundant in the process.
    
    Note: The "read from filesystem on each setting access" is retained for now
    to avoid regression is situations where such behavior might be expected.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    0e9f72cb
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.depend Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
Makefile.custom Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
config-static.h Loading commit data...
configure.ac Loading commit data...
depend_filter.py Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...