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

Commit 3245e5a1 authored by TheMalachite's avatar TheMalachite
Browse files

bismuth: Bind mount fstab.enableswap instead

parent b7febc37
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -39,7 +39,6 @@ PRODUCT_PACKAGES += \
    
# Init
PRODUCT_PACKAGES += \
    init.ago.rc \
    init.mt6771.rc \
    fstab.enableswap \
    fstab.mt6771
+0 −8
Original line number Diff line number Diff line
@@ -5,14 +5,6 @@

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE       := init.ago.rc
LOCAL_MODULE_TAGS  := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES    := etc/init.ago.rc
LOCAL_MODULE_PATH  := $(TARGET_OUT_ETC)/init
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE       := init.mt6771.rc
LOCAL_MODULE_TAGS  := optional

rootdir/etc/init.ago.rc

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
# ago_default is the init flow for the project > 1G

on init
    write /sys/block/zram0/comp_algorithm lz4

on post-fs-data
    write /proc/sys/vm/page-cluster 0
    swapon_all /system/etc/fstab.enableswap
    write /dev/memcg/memory.swappiness 150
    write /dev/memcg/apps/memory.swappiness 150
    write /dev/memcg/system/memory.swappiness 150
    write /proc/sys/vm/swappiness 150
+1 −2
Original line number Diff line number Diff line
import /system/etc/init/init.ago.rc

on init
    setprop sys.usb.ffs.aio_compat 1
    
@@ -7,6 +5,7 @@ on init
    # Override vendor fstab
    # We only need it to be overridden before things are mounted
    mount none /system/etc/fstab.mt6771 /vendor/etc/fstab.mt6771 bind
    mount none /system/etc/fstab.enableswap /vendor/etc/fstab.enableswap bind

on post-fs
    # Unmount the overridden fstab because the SELinux label is incorrect