View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#2656
Originally Posted by sulu View Post
If that means what I think it means I might have missed an important development. Can I have a link to that discussion please?
sulu, if you are building a new image, please start with the one at qole.org. I have added the script that unmounts the Maemo /home/user directory (but keeps the MyDocs directory mounted), so that it uses the configuration files from within the image instead of the Maemo ones. This means that all of your settings will be maintained on all installations.

This is the method I used:

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.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

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