Skip to content

Commit

Permalink
Enable journal feature during install rom
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarx2k committed Oct 30, 2013
1 parent 846f169 commit 553f0e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions releasetools/common_edify_generator.py
Expand Up @@ -270,6 +270,9 @@ def UnmountAll(self):
self.script.append('unmount("%s");' % (p,))
self.mounts = set()

def RunProgramm(self, programm, command):
self.script.append('run_program("%s", "%s");' % (programm, command))

def AddToZip(self, input_zip, output_zip, input_path=None):
"""Write the accumulated script to the output_zip file. input_zip
is used as the source for the 'updater' binary needed to run
Expand Down
15 changes: 9 additions & 6 deletions releasetools/common_ota_from_target_files
Expand Up @@ -401,6 +401,9 @@ def WriteFullOTAPackage(input_zip, output_zip):
device_specific.FullOTA_Assertions()
device_specific.FullOTA_InstallBegin()

script.RunProgramm("/sbin/tune2fs", "-O has_journal /dev/block/mmcblk1p24")
script.RunProgramm("/sbin/tune2fs", "-O has_journal /dev/block/mmcblk1p25")

if OPTIONS.backuptool:
script.Mount("/system")
script.RunBackup("backup")
Expand All @@ -411,12 +414,12 @@ def WriteFullOTAPackage(input_zip, output_zip):
if OPTIONS.wipe_user_data:
script.FormatPartition("/data")

# script.Print("Wiping cache...");
# script.Mount("/cache");
# script.DeleteRecursive("/cache");
# script.Print("Wiping dalvik-cache...")
# script.Mount("/data")
# script.DeleteRecursive("/data/dalvik-cache")
script.Print("Wiping cache...")
script.Mount("/cache")
script.DeleteRecursive("/cache")
script.Print("Wiping dalvik-cache...")
script.Mount("/data")
script.DeleteRecursive("/data/dalvik-cache")

script.Print("Mounting your system...")
script.Mount("/system")
Expand Down

0 comments on commit 553f0e8

Please sign in to comment.