diff options
author | zhang sanshan <b51434@freescale.com> | 2015-09-22 22:11:03 +0800 |
---|---|---|
committer | zhang sanshan <b51434@freescale.com> | 2015-11-06 18:17:39 +0800 |
commit | 24356fe059abbc9eae1b192f7af8a46f204a36f4 (patch) | |
tree | 5b89c23725af0953f187b20aefb6d2153ed243f2 /include/android_image.h | |
parent | f78cbee0375dcb81b10bac2e0dcd254d0551baa9 (diff) | |
download | u-boot-imx-24356fe059abbc9eae1b192f7af8a46f204a36f4.zip u-boot-imx-24356fe059abbc9eae1b192f7af8a46f204a36f4.tar.gz u-boot-imx-24356fe059abbc9eae1b192f7af8a46f204a36f4.tar.bz2 |
MA-7053 when I add selinux=disable in the cmdline, the board do OTA update will fail
The ota update script will set selinux label with set_metadata when do nand ota update.
The root cause is set_metadata will fail if disable selinux in recovery mode.
This patch is a workaround which will enable selinux in recovery mode,
even if have disable selinux in commandline.
Signed-off-by: zhang sanshan <b51434@freescale.com>
Diffstat (limited to 'include/android_image.h')
-rw-r--r-- | include/android_image.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/android_image.h b/include/android_image.h index 094d60a..07dfd94 100644 --- a/include/android_image.h +++ b/include/android_image.h @@ -66,4 +66,7 @@ struct andr_img_hdr { * 6. if second_size != 0: jump to second_addr * else: jump to kernel_addr */ + +void del_sub_str(const char *str, const char *sub_str, char *cmdline); + #endif |