Hi boys,
With the lastest dispute about NAND wear, I was thinking : on the Caanoo the rootfs is RO even $HOME is RO. Maybe we can copy this idea : - set the rootFS RO at boot time (use mount -oremount,rw for upgrades) - put /mnt and /media in a tmpfs (like a symlink to /var/tmp/) - offer the ability to have an overlay for $HOME on the SDcard
What do you think ?
Cheers, sebt3
On Thu, 25 Aug 2011, Sébastien Huss wrote:
# Hi boys, # With the lastest dispute about NAND wear, I was thinking : on the Caanoo the rootfs is RO even $HOME is RO. # Maybe we can copy this idea : # - set the rootFS RO at boot time (use mount -oremount,rw for upgrades) # - put /mnt and /media in a tmpfs (like a symlink to /var/tmp/) # - offer the ability to have an overlay for $HOME on the SDcard # # What do you think ?
Some config changes need to be doable when authorized (/etc type changes), or EDs many config script changes or that drop little files to indicate somethign has happened.
Could flag home as read-only as you propose, but I bet that'd freak out the DE's (like xfce or others.)
Its probably best the developers 'port' and not just 'compile' things.
Could add a warning .. after pnd_run.sh exits, check for home dir changes that occurred since the pnd was run (ie: file change time is >pnd start and <pnd-stop), and report 'A pnd has touched your homedir', with option to not warn again.
--> ie: notify the user of apps with 'side effects', but dont' break things?
jeff
-- If everyone would put barbecue sauce on their food, there would be no war.
On Thu, Aug 25, 2011 at 10:23 PM, Sébastien Huss sebastien.huss@gmail.com wrote:
Hi boys, With the lastest dispute about NAND wear, I was thinking : on the Caanoo the rootfs is RO even $HOME is RO. Maybe we can copy this idea :
- set the rootFS RO at boot time (use mount -oremount,rw for upgrades)
- put /mnt and /media in a tmpfs (like a symlink to /var/tmp/)
- offer the ability to have an overlay for $HOME on the SDcard
That would be painful for those that use pandora more like a Linux PC. Things like ssh keys, editor and xfce configs would go away when you change cards.
Whatever happened to the idea to set HOME to appdata by pnd_run? That would take care of many cases. pnd_run could also export some variable like REAL_HOME for those apps that need it (they could restore HOME from that).