[Nexus One Android Development] neatchee:
Hey MoDaCo,

I'm having A2SD issues as well. My partitions are 32mb linux-swap as part3, 512mb EXT4 as part2, and the rest as vfat for part1.

At first flash of your custom ROM, the only thing found in /system/sd is a directory called "placeholder". If i try running a2sd from shell i get the following:

--- Welcome to Android/CyanogenMod!
sysctl: /etc/sysctl.conf: No such file or directory
--- Checking ext filesystems
/system/bin/a2sd: e2fsck: permission denied
modprobe: chdir(2.6.29-mck-1.0-01111-g5ab936f): No such file or directory
/system/bin/a2sd: /system/bin/rzscontrol: not found
swapon: can't stat '/dev/block/ramzswap0': No such file or directory
+++ Apps-to-SD successfully enabled

At this point, all of my apps appear in both /data/app and /system/sd/app, however the phone itself doesn't recognize any installed apps. If I reboot the phone at this point, I get a boot-loop. adb logcat shows the following at the end of each loop:

D/PackageManager( 173): Scanning app dir /data/app
E/System ( 173): Failure starting core service
E/System ( 173): java.lang.NullPointerException
E/System ( 173): at com.android.server.PackageManagerService.scanDirLI(PackageManagerService.java:1960)
E/System ( 173): at com.android.server.PackageManagerService.<init>(PackageManagerService.java:590)
E/System ( 173): at com.android.server.PackageManagerService.main(PackageManagerService.java:335)
E/System ( 173): at com.android.server.ServerThread.run(SystemServer.java:116)
E/AndroidRuntime( 173): Crash logging skipped, no checkin service
I/SystemServer( 173): Status Bar
E/SystemServer( 173): Failure starting StatusBarService
E/SystemServer( 173): java.lang.NullPointerException
E/SystemServer( 173): at com.android.server.status.StatusBarIcon.getIcon(StatusBarIcon.java:143)
E/SystemServer( 173): at com.android.server.status.StatusBarIcon.<init>(StatusBarIcon.java:65)
E/SystemServer( 173): at com.android.server.status.StatusBarService.makeStatusBarView(StatusBarService.java:305)
E/SystemServer( 173): at com.android.server.status.StatusBarService.<init>(StatusBarService.java:236)
E/SystemServer( 173): at com.android.server.ServerThread.run(SystemServer.java:209)
E/AndroidRuntime( 173): Crash logging skipped, no checkin service
I/SystemServer( 173): Clipboard Service
I/SystemServer( 173): Input Method Service
E/SystemServer( 173): Failure starting Input Manager Service
E/SystemServer( 173): java.lang.NullPointerException
E/SystemServer( 173): at android.app.ApplicationContext.registerReceiverInternal(ApplicationContext.java:736)
E/SystemServer( 173): at android.app.ApplicationContext.registerReceiver(ApplicationContext.java:711)
E/SystemServer( 173): at android.app.ApplicationContext.registerReceiver(ApplicationContext.java:705)
E/SystemServer( 173): at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:426)
E/SystemServer( 173): at com.android.server.ServerThread.run(SystemServer.java:224)
E/AndroidRuntime( 173): Crash logging skipped, no checkin service
I/SystemServer( 173): NetStat Service
I/SystemServer( 173): Connectivity Service
V/ConnectivityService( 173): ConnectivityService starting up
W/dalvikvm( 173): threadid=25: thread exiting with uncaught exception (group=0x4001b190)
E/AndroidRuntime( 173): Uncaught handler: thread ConnectivityThread exiting due to uncaught exception
E/AndroidRuntime( 173): *** EXCEPTION IN SYSTEM PROCESS. System will crash.
E/AndroidRuntime( 173): java.lang.NullPointerException
E/AndroidRuntime( 173): at android.app.ActivityThread.getProvider(ActivityThread.java:4072)
E/AndroidRuntime( 173): at android.app.ActivityThread.acquireProvider(ActivityThread.java:4101)
E/AndroidRuntime( 173): at android.app.ApplicationContext$ApplicationContentResolver.acquireProvider(Application
Context.java:1463)
E/AndroidRuntime( 173): at android.content.ContentResolver.acquireProvider(ContentResolver.java:759)
E/AndroidRuntime( 173): at android.content.ContentResolver.query(ContentResolver.java:197)
E/AndroidRuntime( 173): at android.provider.Settings$NameValueCache.getString(Settings.java:498)
E/AndroidRuntime( 173): at android.provider.Settings$Secure.getString(Settings.java:1728)
E/AndroidRuntime( 173): at android.provider.Settings$Secure.getInt(Settings.java:1768)
E/AndroidRuntime( 173): at com.android.server.ConnectivityService.getPersistedNetworkPreference(ConnectivityServ
ice.java:334)
E/AndroidRuntime( 173): at com.android.server.ConnectivityService.<init>(ConnectivityService.java:210)
E/AndroidRuntime( 173): at com.android.server.ConnectivityService.<init>(ConnectivityService.java:54)
E/AndroidRuntime( 173): at com.android.server.ConnectivityService$ConnectivityThread.run(ConnectivityService.jav
a:172)
E/AndroidRuntime( 173): Crash logging skipped, no checkin service
I/Process ( 173): Sending signal. PID: 173 SIG: 9
I/ServiceManager( 52): service 'entropy' died
I/ServiceManager( 52): service 'power' died
I/ServiceManager( 52): service 'SurfaceFlinger' died
I/ServiceManager( 52): service 'batteryinfo' died
I/ServiceManager( 52): service 'usagestats' died
I/ServiceManager( 52): service 'telephony.registry' died
I/ServiceManager( 52): service 'clipboard' died
I/ServiceManager( 52): service 'netstat' died
D/BootAnimation( 185): SurfaceFlinger died, exiting...
E/installd( 59): eof
E/installd( 59): failed to read size
I/installd( 59): closing connection
I/Zygote ( 168): Exit zygote because system server (173) has terminated
I/ServiceManager( 52): service 'media.audio_flinger' died
I/ServiceManager( 52): service 'media.player' died
I/ServiceManager( 52): service 'media.camera' died
I/ServiceManager( 52): service 'media.audio_policy' died

Looks as though A2SD isn't being initialized properly during boot!

Hope this helps sort out the bugs! Would love to have my A2SD working :)

EDIT: Will flashing this over the Makin' Bacon Addon cause issues?