View Single Post
Posts: 915 | Thanked: 3,209 times | Joined on Jan 2011 @ Germany
#2658
Originally Posted by qole View Post
Ok, here's how to disconnect the image's /home/user directory from the Maemo version, allowing for per-image user settings.

Create a script in the image's /var/run directory called "onfirstchroot-ext.rc", or add the following lines to the existing script:

Code:
umount -f "$CHROOT/home/user/MyDocs"
umount -f "$CHROOT/home"
mount -o bind /home/user/MyDocs "$CHROOT/home/user/MyDocs"
If there are some settings directories you wish to share between the two environments, you can use the syntax of the last line (the "mount -o bind" line) to bind other home/user directories from Maemo to their corresponding directories in Debian.

Now you can copy all of your Debian application settings into the image's /home/user dir, and things will be the same on everybody's N900.
That seems strange to me! First you mount Maemo's $HOME from the Easy Debian scripts in Maemo and then you unmount it again from within Easy Debian.
I see the advantage of not having to update the Easy Debian package, but it seems like a bad idea as a permanent solution to me.

I see three possible permanent solutions:
1. We stick with the old mixed $HOME (i.e. Maemo's $HOME mounted).
2. We go for two separated $HOME's by removing the mount command from the package's script.
3. We make this mount line optional, either via a comand line switch, a config file or some other method.

I'll vote for 3. but since I can't fully foresee the consequences (different settings leading to different side effects making support harder) I'd prefer 2. over 1. as a fallback.
 

The Following User Says Thank You to sulu For This Useful Post: