move /data/tombstone creation to system/core

move /data/tombstones creation to system/core. In addition,
move the creation of /data/tombstones/mdm to the "on post-fs-data"
section of init.hammerhead.rc. /data isn't guaranteed to be
mounted during "on boot", only after "on post-fs-data"

Bug: https://code.google.com/p/android/issues/detail?id=93207
Change-Id: If397deb56074b7b4b04ae084da372a04c55a7e72
diff --git a/init.hammerhead.rc b/init.hammerhead.rc
index 0411c02..6966517 100644
--- a/init.hammerhead.rc
+++ b/init.hammerhead.rc
@@ -122,12 +122,6 @@
     #venus
     write /sys/bus/msm_subsys/devices/subsys2/restart_level "related"
 
-    # Subsytem Ramdump collection
-    mkdir /data/tombstones 0777 system system
-    mkdir /data/tombstones/ramdump 0777 system system
-    restorecon_recursive /data/tombstones
-    write /sys/module/subsystem_restart/parameters/enable_ramdumps 1
-
     # leds
     chown system system /sys/class/leds/red/on_off_ms
     chown system system /sys/class/leds/green/on_off_ms
@@ -140,6 +134,10 @@
 
     mkdir /data/media 0770 media_rw media_rw
 
+    # Subsytem Ramdump collection
+    mkdir /data/tombstones/ramdump 0777 system system
+    write /sys/module/subsystem_restart/parameters/enable_ramdumps 1
+
     # NFC: create data/nfc for nv storage
     mkdir /data/nfc 0770 nfc nfc
     mkdir /data/nfc/param 0770 nfc nfc