From e06e5391961563741a5242f7802c674e81d0e677 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 16 Jan 2011 02:33:04 -0800 Subject: [PATCH] fix sd-ext backup and restore. Change-Id: I346724f231bb29df2c0fa833df420620ab1be1b4 --- etc/init.rc | 2 ++ nandroid.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/init.rc b/etc/init.rc index e6b43e0..611f5b4 100644 --- a/etc/init.rc +++ b/etc/init.rc @@ -10,6 +10,8 @@ on init symlink /system/etc /etc mkdir /sdcard + mkdir /sd-ext + mkdir /datadata mkdir /emmc mkdir /system mkdir /data diff --git a/nandroid.c b/nandroid.c index df33cee..7afdc81 100644 --- a/nandroid.c +++ b/nandroid.c @@ -198,7 +198,7 @@ int nandroid_backup(const char* backup_path) { if (0 != ensure_path_mounted("/sd-ext")) ui_print("Could not mount sd-ext. sd-ext backup may not be supported on this device. Skipping backup of sd-ext.\n"); - else if (0 != (ret = nandroid_backup_partition(backup_path, "SDEXT:"))) + else if (0 != (ret = nandroid_backup_partition(backup_path, "/sd-ext"))) return ret; }