Skip to content

Commit f6cd8ef

Browse files
committed
Add created files to build file and custom handler for misc
- device.mk: Add init.fstab.sh to PRODUCT_COPY_FILES and PRODUCT_TAGS - init.fstab.sh: Add misc symlink handling Signed-off-by: shadichy <[email protected]>
1 parent 191940a commit f6cd8ef

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

device.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ PRODUCT_PROPERTY_OVERRIDES := \
6464
PRODUCT_COPY_FILES := \
6565
$(if $(wildcard $(PRODUCT_DIR)init.rc),$(PRODUCT_DIR)init.rc:root/init.rc) \
6666
$(if $(wildcard $(PRODUCT_DIR)init.sh),$(PRODUCT_DIR),$(LOCAL_PATH)/)init.sh:system/etc/init.sh \
67+
$(if $(wildcard $(PRODUCT_DIR)init.fstab.sh),$(PRODUCT_DIR),$(LOCAL_PATH)/)init.sh:system/etc/init.fstab.sh \
6768
$(if $(wildcard $(PRODUCT_DIR)init.zram.sh),$(PRODUCT_DIR),$(LOCAL_PATH)/)init.zram.sh:$(TARGET_COPY_OUT_VENDOR)/etc/init.zram.sh \
6869
$(if $(wildcard $(PRODUCT_DIR)modules.blocklist),$(PRODUCT_DIR),$(LOCAL_PATH)/)modules.blocklist:system/etc/modules.blocklist \
6970
$(if $(wildcard $(PRODUCT_DIR)modules.options),$(PRODUCT_DIR),$(LOCAL_PATH)/)modules.options:system/etc/modules.options \
@@ -152,6 +153,7 @@ endif
152153
PRODUCT_COPY_FILES += \
153154
$(if $(wildcard $(PRODUCT_DIR)init.recovery.$(TARGET_PRODUCT).rc),$(PRODUCT_DIR)init.recovery.$(TARGET_PRODUCT).rc,$(LOCAL_PATH)/init.recovery.x86.rc):recovery/root/init.recovery.$(TARGET_PRODUCT).rc \
154155
$(if $(wildcard $(PRODUCT_DIR)init.recovery.sh),$(PRODUCT_DIR),$(LOCAL_PATH)/)init.recovery.sh:recovery/root/system/etc/init.recovery.sh \
156+
$(if $(wildcard $(PRODUCT_DIR)init.fstab.sh),$(PRODUCT_DIR),$(LOCAL_PATH)/)init.fstab.sh:recovery/root/system/etc/init.fstab.sh \
155157

156158
PRODUCT_TAGS += dalvik.gc.type-precise
157159

init.fstab.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ function init_loop_links() {
2424

2525
ln -s /dev/block/by-name/recovery_a /dev/block/by-name/ramdisk-recovery_a
2626
ln -s /dev/block/by-name/recovery_b /dev/block/by-name/ramdisk-recovery_b
27+
28+
# Handle for misc symlink specifically
29+
mv /dev/block/by-name/misc /dev/block/by-name/misc-device
30+
ln -s misc-device /dev/block/by-name/misc
2731
}
2832

2933
init_loop_links

0 commit comments

Comments
 (0)