path: root/rootdir/init.rc
diff options
authorAlex Deymo <>2016-02-29 17:23:36 -0800
committerAlex Deymo <>2016-03-04 15:45:52 -0800
commite120b471acbe136e27e257fdf493590e1cc4ba73 (patch)
tree1bae9ee0fe490149a5c0651a07ad45ce0e6a3e75 /rootdir/init.rc
parenta996c2963a9c1fa9d2339e560c7d6dad2be4a2f8 (diff)
Add /postinstall partition when using the A/B updater.
The new top level directory /postinstall is used by the A/B updater to mount the new partition and run a post-install program before rebooting into that new system. init.rc was extended to label this new directory since the initrd has no extended attributes. Bug: 27177071 TEST=`ls -laZ /` shows the /postinstall directory on edison-eng (cherry picked from commit bb968fb04db3ec5227e84571e1c6bfd265836085) Change-Id: Iff993135c7ce3a1a0f6450892ef7382da408fd5e
Diffstat (limited to 'rootdir/init.rc')
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index b26e6fc1b..194b41baf 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -23,6 +23,9 @@ on early-init
# Shouldn't be necessary, but sdcard won't start without it. http://b/22568628.
mkdir /mnt 0775 root system
+ # Set the security context of /postinstall if present.
+ restorecon /postinstall
start ueventd
on init