View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#2616
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.

ESTEL: Please either do this with your image and re-upload it, or give me the zip file of your home directory settings files, and I'll do it on my qole.org version.
__________________
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 8 Users Say Thank You to qole For This Useful Post: