From ea0040efc164efb58b102da546be9db9bf51869c Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Fri, 19 Oct 2018 18:10:32 +0200 Subject: [PATCH] pmos-android-recovery-install: copy mtk symlinks Copy Mediatek /emmc@partitionname symlinks to the chroot. This is needed on Mediatek devices because the fstab file references the partitions using those symlinks (which the kernel creates - for whatever reason - in the root directory) and otherwise we don't know which partition is which. --- main/postmarketos-android-recovery-installer/APKBUILD | 4 ++-- main/postmarketos-android-recovery-installer/pmos_chroot | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/main/postmarketos-android-recovery-installer/APKBUILD b/main/postmarketos-android-recovery-installer/APKBUILD index e15f96f2b..d76e85599 100644 --- a/main/postmarketos-android-recovery-installer/APKBUILD +++ b/main/postmarketos-android-recovery-installer/APKBUILD @@ -1,6 +1,6 @@ pkgname=postmarketos-android-recovery-installer pkgver=0.1.8 -pkgrel=2 +pkgrel=3 pkgdesc="TWRP compatible postmarketOS installer script" url="https://postmarketos.org" # multipath-tools: kpartx @@ -28,7 +28,7 @@ package() { } sha512sums="924f961e1a488134d265f43724d2b06a908ac1522706dc3f7118f0dec16453aa0a928fef6d9a31a6a747910df665e64f25c94c47a9e3f1d57db19abb0fd8210d build_zip.sh 6390fc1b1c7dc8e917bb675d2e59e479782ac7754e97c4781866360ff704afe2d04f173a0ac74e3129db45328fab4b6b77a8717ee2e17c6ff79febadaa8ea034 update-binary -2260c5c7bf069a9fa57af5fe343aa8a9da1e258faf9be1900abce0c5768abbec178ac51d3fc48648e9f2fe3bd8d1f4e71f6d4beea07b524aeb94fd054a6def46 pmos_chroot +2400d18734d08b3d2f5ec2fe4e802cdcacddea851644b47505eff1aac47302699c171b880bca55dd1704cc9cef9ac26082ac89cee802b6bf57ff8cf649373328 pmos_chroot ef6377f6c062b9a86eb9dfb2aa2c0049fda20f24ec75865a682a50e4655710a18bd7a470deab527e1dd4c273f9ea6a003ec03fc5748d44b1c4fbfc91baa9e358 pmos_install 4ba66b336372b23252673f0929ea4f706ec287b5a902c8cb392a9cafb832db445bb7aecc9a7fac34f855babba057c56e3b10c015a1d055a66f0bfd42fef5828e pmos_install_functions c6355b6d823dac883e1a352f59a9a2199e2934d78a73df72dc3c4fc14ef93765a15179203d4a8a2ca0d841b63cd4c25c4689b63c8cf4d4da2bcec1f8ff76bff5 pmos_setpw" diff --git a/main/postmarketos-android-recovery-installer/pmos_chroot b/main/postmarketos-android-recovery-installer/pmos_chroot index 938272218..d4c7dbcc5 100644 --- a/main/postmarketos-android-recovery-installer/pmos_chroot +++ b/main/postmarketos-android-recovery-installer/pmos_chroot @@ -48,6 +48,9 @@ do mount --bind "$mountpoint" "$CHROOT""$mountpoint" done +# Copy Mediatek /emmc@partitionname symlinks to the chroot +cp -d /emmc@* "$CHROOT" || true + # Set permissions and start the installation script chmod 755 "$CHROOT"/bin/* chmod 755 "$CHROOT"/lib/*