Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8576c8fb authored by Bowgo Tsai's avatar Bowgo Tsai Committed by android-build-merger
Browse files

Merge "Moving skip_mount.cfg to system_ext partition" am: 95773aa4 am: 038c884b am: 1b5ba8d3

am: 200e04fe

Change-Id: Ie26361c8151b515db0ed810821f49a43d90b9e6c
parents ed47bcac 200e04fe
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -706,10 +706,12 @@ bool ReadFstabFromDt(Fstab* fstab, bool log) {

// For GSI to skip mounting /product and /system_ext, until there are well-defined interfaces
// between them and /system. Otherwise, the GSI flashed on /system might not be able to work with
// /product and /system_ext. When they're skipped here, /system/product and /system/system_ext in
// GSI will be used.
// device-specific /product and /system_ext. skip_mount.cfg belongs to system_ext partition because
// only common files for all targets can be put into system partition. It is under
// /system/system_ext because GSI is a single system.img that includes the contents of system_ext
// partition and product partition under /system/system_ext and /system/product, respectively.
bool SkipMountingPartitions(Fstab* fstab) {
    constexpr const char kSkipMountConfig[] = "/system/etc/init/config/skip_mount.cfg";
    constexpr const char kSkipMountConfig[] = "/system/system_ext/etc/init/config/skip_mount.cfg";

    std::string skip_config;
    auto save_errno = errno;