[maemo-developers] Howto correctly place data on the memory card?

From: Till Harbaum / Lists lists at harbaum.org
Date: Wed Jun 24 21:51:52 EEST 2009
Hi,

Am Montag 22 Juni 2009 schrieb Kimmo Hämäläinen:
> Use MMC_MOUNTPOINT and INTERNAL_MMC_MOUNTPOINT environment variables,
> available since Nokia 770 Internet Tablet.  I'm not sure about
> Scratchbox, since it does not have memory card emulation.
The scratchbox doesn't have this which is perfectly fine as i'll then just fall
back to using $HOME.

But i still have a major problem with this: It doesn't work in the
debian/postinst script when running the application installer.

I simply added a call to "env" to my postinst script to be able to see the
environment bein used in the application installers log. See below the
log i get on my n810. It seems that the worker thread of the app manager that
deals with this has been started before the environment was complete.
So there are no MMC related entries at all which makes this useless to 
install data on the memory card.

So please let me re-phrase my question: How does a postinst script know
where the memory card is?

Till



hildon-application-manager 2.1.19.1
/usr/bin/dpkg-deb -f '/media/mmc1/Maemo-deb/osm2go_0.7.6-maemo2_armel.deb'
/usr/bin/dpkg --install '/media/mmc1/Maemo-deb/osm2go_0.7.6-maemo2_armel.deb'
(Reading database ... 20388 files and directories currently installed.)
Preparing to replace osm2go 0.7.6-maemo2 (using .../osm2go_0.7.6-maemo2_armel.deb) ...
Unpacking replacement osm2go ...
Setting up osm2go (0.7.6-maemo2) ...
Cache file created successfully.
Environment:
SUDO_GID=29999
USER=root
HOME=/home/user
SUDO_UID=29999
LOGNAME=root
TERM=linux
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
DISPLAY=:0.0
LANG=de_DE
LC_MESSAGES=de_DE
SUDO_COMMAND=/usr/libexec/apt-worker backend /tmp/apt-worker.to /tmp/apt-worker.from /tmp/apt-worker.status /tmp/apt-worker.cancel B
SHELL=/bin/sh
SUDO_USER=user
PWD=/
More information about the maemo-developers mailing list