How to ensure dalvik-cache and lib are linked to SD on boot? Recently, I upgraded my htc-desire with a bigger SD Card with a partition of 512Mo on it.

I installed link2sd to place apps on SD card ext4 partition.

Then I had to create by hand, the mount script to have my partition used by link2sd. (certainly due to write access on /system mountage)

What I wander is if there is a way to ensure that on reboot, linked apps create their dalvik-cache directly on SD. What is happening on startup is that I need to open link2sd, select all my apps, and relink everything.

Is it a feature included in the mount script?

Or is it simply the way link2sd works?

PS: what is anoying is that the dalvik-cache takes too much place and can prevent some application from starting correctly.
Unlikely to be possible in this context, as Dalvik cache has a fixed system-wide location (/data/dalvik-cache). So you cannot have "linked apps place their dalvik cache directly on SD". Either all or nothing. Take a look at the app2sd tag-wiki for alternative approaches which might allow to move the entire dalvik cache to your SDCard. But a selective move IMHO is impossible.

Remark: An exception to this general rule are odexed ROMs, where the .odex files sit in the same place as the app, at least for system apps. So there might be a way to do the same for "user apps" which I have missed.)