Comment 12 for bug 1437633

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

2 issues with the current RTM silo:

1)
+++ lxc-android-config-0.208rtm10/etc/system-image/writable-paths 2015-03-31 11:47:37.000000000 +0100
+# need to write to this file to toggle crash reporting
+/etc/default/whoopsie auto persistent none none

It should be 'persistent transition none' instead, otherwise the file will be empty (not respecting the previous content).

2) Even with the right writable path, it will still fail to save the configuration because whoopsie-preferences is using g_file_set_contents, which will first create a tmp file under the same path, and that will not work because /etc/default is not writable:
open("/etc/default/whoopsie.YJXSWX", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = -1 EROFS (Read-only file system)
write(1, "Could not write configuration: F"..., 107) = 107

So either we make /etc/default rw (or create a writable directory to save whoopsie config), or change whoopsie-preference to first create the new file under /tmp and then copy it over the previous one.