diff options
author | Yifan Hong <elsk@google.com> | 2019-01-04 18:20:28 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-01-04 18:20:28 +0000 |
commit | e3ee735617969aef7c29a544e512b26591252ef0 (patch) | |
tree | 9c279058f4a5c62c067aa4fce117c26d4a45b1f2 | |
parent | 8873b8f86596522c7e40570dfb1c317816b1267d (diff) | |
parent | 7605f8923c19aed45f4f449a478019cb1245c77a (diff) | |
download | extras-e3ee735617969aef7c29a544e512b26591252ef0.tar.gz |
Merge "Mount fstab.postinstall"android-o-mr1-iot-release-1.0.8
-rw-r--r-- | cppreopts/Android.bp | 6 | ||||
-rw-r--r-- | cppreopts/cppreopts.rc | 12 | ||||
-rw-r--r-- | cppreopts/fstab.postinstall | 21 |
3 files changed, 29 insertions, 10 deletions
diff --git a/cppreopts/Android.bp b/cppreopts/Android.bp index 30028f61..e9d19145 100644 --- a/cppreopts/Android.bp +++ b/cppreopts/Android.bp @@ -28,5 +28,11 @@ cc_prebuilt_binary { required: [ "preopt2cachename", "preloads_copy.sh", + "fstab.postinstall", ], } + +prebuilt_etc { + name: "fstab.postinstall", + src: "fstab.postinstall", +} diff --git a/cppreopts/cppreopts.rc b/cppreopts/cppreopts.rc index 9892d023..e29a73ab 100644 --- a/cppreopts/cppreopts.rc +++ b/cppreopts/cppreopts.rc @@ -12,16 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -on property:sys.cppreopt=requested && property:ro.boot.slot_suffix=_a - mount ext4 /dev/block/by-name/system_b /postinstall ro nosuid nodev noexec - exec - root -- /system/bin/cppreopts.sh /postinstall - # Optional script to copy additional preloaded content to data directory - exec - system system -- /system/bin/preloads_copy.sh /postinstall - umount /postinstall - setprop sys.cppreopt finished - -on property:sys.cppreopt=requested && property:ro.boot.slot_suffix=_b - mount ext4 /dev/block/by-name/system_a /postinstall ro nosuid nodev noexec +on property:sys.cppreopt=requested + mount_all /system/etc/fstab.postinstall exec - root -- /system/bin/cppreopts.sh /postinstall # Optional script to copy additional preloaded content to data directory exec - system system -- /system/bin/preloads_copy.sh /postinstall diff --git a/cppreopts/fstab.postinstall b/cppreopts/fstab.postinstall new file mode 100644 index 00000000..81272ebb --- /dev/null +++ b/cppreopts/fstab.postinstall @@ -0,0 +1,21 @@ +# +# Copyright (C) 2018 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Tries to mount system_other as a logical partition. If that fails, then +# mount as a physical partition. + +#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> +system /postinstall ext4 ro,nosuid,nodev,noexec slotselect_other,logical +/dev/block/by-name/system /postinstall ext4 ro,nosuid,nodev,noexec slotselect_other |