cwm: Add liblog dependency

Change-Id: Ic5716e5f2c311406bc6384e63fb0f217113e6eeb
Add a recovery version variable

the releasetools want this now

Change-Id: Ibc3cdbc8f5f8022bf51479a4702d1d0d043f70a9
Use fstab v1 as a default.

v1 is the old recovery.fstab format that everybody is still
using.
Devices using v2 should set RECOVERY_FSTAB_VERSION=2 in
their board files

Change-Id: Ie7221f110ecc594f6f92973d2c27da10f62b6431
Remove "fix permissions" option

Original discussion here: http://review.cyanogenmod.org/45559

Patchset 2: really remove the option
Patchset 3: fix options that I broke on ps2

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I54877a24444c24a296c8c044efd977f30cc66de4
Add power off & reboot to bootloader mode in advanced menu

Also:
Cleanup leftovers from previous poweroff option
Always ensure a clean reboot (Thanks to PhilZ for his implementation)

Bootloader option defaults to "bootloader" (fastboot mode), it can be overriden
by defining "ro.bootloader.mode=download" prop for samsung download mode
We leave reboot to bootloader option always enabled, that way we can
override the get_filtered_menu_selection bug that breaks the order
of the options when NULLifying menu options.

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I6d674b37ab41ab342b105993719277360b4707e4
Fixes for Superuser

Change-Id: I86a280088ee8767e02ba51b72f4d011cf4658f6f
Merge remote-tracking branch 'github/cm-10.1' into cm-10.2
Merge remote-tracking branch 'github/cm-10.1' into cm-10.2
unset immutable bit on install-recovery.sh

Change-Id: Ie7e8bfea57bed207c3c2d57bf3cd23daf6cd4c20
Don't treat link-time warnings as errors when linking with libbusybox

See http://review.cyanogenmod.org/#/c/46642/ for why this is necessary.

Change-Id: Ib97484755569fcafc062d3c39b2841581987ca72
Fix roots.c to use fs_mgr

Change-Id: Ie68daba5e014dff0c4998da85576f35abe8ad270
move key loading to verifier code

Add an option to verifier_test to load keys from a file, the way the
recovery does.

Conflicts:
	verifier_test.c

Change-Id: Icba0e391164f2c1a9fefeab4b0bcb878e91d17b4
recovery: save logs from the last few invocations of recovery

Extends the last_log mechanism to save logs from the last six
invocations of recovery, so that we're more likely to have useful logs
even if the device has repeatedly booted into recovery.

Conflicts:
	recovery.c

Change-Id: I08ae7a09553ada45f9e0733fe1e55e5a22efd9f9
Revert "Use fstab v1 as a default."

This reverts commit 1a6c91fcbc16f90b3dcbc9cef3e1052c84a40ffb.

Change-Id: I5fb1105bfb640f0552ddcc4a99b6f98487a1c946
recovery: ignore voldmanaged volumes

Voldmanaged volumes use sysfs path instead of device
path which is not supported by recovery, so a separate
entries for /sdcard and /external_sd are required.

We ignore these volume so we don't show the menu for
"mount /storage/sdcard0", etc.

Change-Id: I6bf26e0ad3fb59579c986cf5537f9e70448891e9
Update wipe data option confirmation

This commit allows the wipe data/factory reset option to recognize the
.one_confirm or .no_confirm files in the clockworkmod folder.

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Ib0f82b4448e3b9df95a5e59a49428f3e9da58578
Add sdparted option to partition in ext4 fstype

Taken from PhilZ Touch recovery

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I079617fc32f8ad0aea754a60898cd4f9cc482524
Merge "Revert "Use fstab v1 as a default."" into cm-10.2
Merge "Add sdparted option to partition in ext4 fstype" into cm-10.2
unlink() equals remove() in this situation can cause data loss and filesystem corruption if some data is not sync when mount sdcard

Change-Id: Ib3ad32842fcbf3b058c986df6901c7744bd5cf1f