-
-
Save Nokius/caff976b53c11d59a0372f94987c5050 to your computer and use it in GitHub Desktop.
[SFOS] r7plus fixups
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"r7plus") | |
sed -i \ | |
-e 's block/bootdevice/by-name/DDR mmcblk0p2 ' \ | |
-e 's block/bootdevice/by-name/DRIVER mmcblk0p32 ' \ | |
-e 's block/bootdevice/by-name/LOGO mmcblk0p21 ' \ | |
-e 's block/bootdevice/by-name/aboot mmcblk0p9 ' \ | |
-e 's block/bootdevice/by-name/abootbak mmcblk0p10 ' \ | |
-e 's block/bootdevice/by-name/boot mmcblk0p22 ' \ | |
-e 's block/bootdevice/by-name/cache mmcblk0p26 ' \ | |
-e 's block/bootdevice/by-name/config mmcblk0p30 ' \ | |
-e 's block/bootdevice/by-name/devinfo mmcblk0p25 ' \ | |
-e 's block/bootdevice/by-name/fsc mmcblk0p5 ' \ | |
-e 's block/bootdevice/by-name/fsg mmcblk0p3 ' \ | |
-e 's block/bootdevice/by-name/grow mmcblk0p38 ' \ | |
-e 's block/bootdevice/by-name/hyp mmcblk0p15 ' \ | |
-e 's block/bootdevice/by-name/hypbak mmcblk0p16 ' \ | |
-e 's block/bootdevice/by-name/keystore mmcblk0p29 ' \ | |
-e 's block/bootdevice/by-name/misc mmcblk0p28 ' \ | |
-e 's block/bootdevice/by-name/modem mmcblk0p1 ' \ | |
-e 's block/bootdevice/by-name/modemst1 mmcblk0p17 ' \ | |
-e 's block/bootdevice/by-name/modemst2 mmcblk0p18 ' \ | |
-e 's block/bootdevice/by-name/oem mmcblk0p31 ' \ | |
-e 's block/bootdevice/by-name/oppodycnvbk mmcblk0p19 ' \ | |
-e 's block/bootdevice/by-name/oppostanvbk mmcblk0p20 ' \ | |
-e 's block/bootdevice/by-name/persist mmcblk0p27 ' \ | |
-e 's block/bootdevice/by-name/recovery mmcblk0p23 ' \ | |
-e 's block/bootdevice/by-name/reserve1 mmcblk0p33 ' \ | |
-e 's block/bootdevice/by-name/reserve2 mmcblk0p34 ' \ | |
-e 's block/bootdevice/by-name/reserve3 mmcblk0p35 ' \ | |
-e 's block/bootdevice/by-name/reserve4 mmcblk0p36 ' \ | |
-e 's block/bootdevice/by-name/rpm mmcblk0p11 ' \ | |
-e 's block/bootdevice/by-name/rpmbak mmcblk0p12 ' \ | |
-e 's block/bootdevice/by-name/sbl1 mmcblk0p7 ' \ | |
-e 's block/bootdevice/by-name/sbl1bak mmcblk0p8 ' \ | |
-e 's block/bootdevice/by-name/sec mmcblk0p4 ' \ | |
-e 's block/bootdevice/by-name/ssd mmcblk0p6 ' \ | |
-e 's block/bootdevice/by-name/system mmcblk0p24 ' \ | |
-e 's block/bootdevice/by-name/tz mmcblk0p13 ' \ | |
-e 's block/bootdevice/by-name/tzbak mmcblk0p14 ' \ | |
-e 's block/bootdevice/by-name/userdata mmcblk0p37 ' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Droid mount for /dev/cpuctl | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=none | |
Where=/dev/cpuctl | |
Type=cgroup | |
Options=cpu | |
# Options had SELinux context option: | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/init.rc : | |
# mount cgroup none /dev/cpuctl cpu | |
[Unit] | |
Description=Droid mount for /dev/cpuset | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=none | |
Where=/dev/cpuset | |
Type=cpuset | |
Options= | |
# Options had SELinux context option: | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/init.rc : | |
# mount cpuset none /dev/cpuset | |
# This file is part of systemd. | |
# | |
# systemd is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
[Unit] | |
Description=Huge Pages File System | |
Documentation=https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt | |
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems | |
DefaultDependencies=no | |
Before=sysinit.target | |
ConditionPathExists=/sys/kernel/mm/hugepages | |
[Mount] | |
What=hugetlbfs | |
Where=/dev/hugepages | |
Type=hugetlbfs | |
# This file is part of systemd. | |
# | |
# systemd is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
[Unit] | |
Description=POSIX Message Queue File System | |
Documentation=man:mq_overview(7) | |
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems | |
DefaultDependencies=no | |
Before=sysinit.target | |
ConditionPathExists=/proc/sys/fs/mqueue | |
[Mount] | |
What=mqueue | |
Where=/dev/mqueue | |
Type=mqueue | |
[Unit] | |
Description=FFS mount | |
Documentation=man:hier(7) | |
Before=local-fs.target | |
[Mount] | |
What=mtp | |
Where=/dev/mtp | |
Type=functionfs | |
Options=mode=0770,gid=1024 | |
[Unit] | |
Description=Droid mount for /firmware | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=/dev/mmcblk0p1 | |
Where=/firmware | |
Type=vfat | |
Options=ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337 | |
# Options had SELinux context option: context=u:object_r:firmware_file:s0 | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/fstab.qcom : | |
# /dev/mmcblk0p1 /firmware vfat ro,shortname=lower,uid=1000,gid=1026,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait | |
[Unit] | |
Description=Droid mount for /mnt | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=tmpfs | |
Where=/mnt | |
Type=tmpfs | |
Options=mode=0755,uid=0,gid=1000 | |
# Options had SELinux context option: | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/init.rc : | |
# mount tmpfs tmpfs /mnt mode=0755,uid=0,gid=1000 | |
[Unit] | |
Description=Droid mount for none | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=/dev/block/zram0 | |
Where=none | |
Type=swap | |
Options=defaults | |
# Options had SELinux context option: | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/fstab.qcom : | |
# /dev/block/zram0 none swap defaults zramsize=536870912 | |
[Unit] | |
Description=Droid mount for /persist | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=/dev/mmcblk0p27 | |
Where=/persist | |
Type=ext4 | |
Options=noatime,nosuid,nodev,barrier=1,noauto_da_alloc | |
# Options had SELinux context option: | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/fstab.qcom : | |
# /dev/mmcblk0p27 /persist ext4 noatime,nosuid,nodev,barrier=1,noauto_da_alloc wait | |
# This file is part of systemd. | |
# | |
# systemd is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
[Unit] | |
Description=Arbitrary Executable File Formats File System | |
Documentation=https://www.kernel.org/doc/Documentation/binfmt_misc.txt | |
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems | |
DefaultDependencies=no | |
[Mount] | |
What=binfmt_misc | |
Where=/proc/sys/fs/binfmt_misc | |
Type=binfmt_misc | |
[Unit] | |
Description=Droid mount for /sys/fs/cgroup/bfqio | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=none | |
Where=/sys/fs/cgroup/bfqio | |
Type=cgroup | |
Options=bfqio | |
# Options had SELinux context option: | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/init.cm.rc : | |
# mount cgroup none /sys/fs/cgroup/bfqio bfqio | |
# This file is part of systemd. | |
# | |
# systemd is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
[Unit] | |
Description=FUSE Control File System | |
Documentation=https://www.kernel.org/doc/Documentation/filesystems/fuse.txt | |
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems | |
DefaultDependencies=no | |
ConditionPathExists=/sys/fs/fuse/connections | |
After=systemd-modules-load.service | |
Before=sysinit.target | |
[Mount] | |
What=fusectl | |
Where=/sys/fs/fuse/connections | |
Type=fusectl | |
[Unit] | |
Description=Droid mount for /sys/fs/pstore | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=pstore | |
Where=/sys/fs/pstore | |
Type=pstore | |
Options= | |
# Options had SELinux context option: | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/init.rc : | |
# mount pstore pstore /sys/fs/pstore | |
# This file is part of systemd. | |
# | |
# systemd is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
[Unit] | |
Description=Configuration File System | |
Documentation=https://www.kernel.org/doc/Documentation/filesystems/configfs/configfs.txt | |
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems | |
DefaultDependencies=no | |
ConditionPathExists=/sys/kernel/config | |
After=systemd-modules-load.service | |
Before=sysinit.target | |
[Mount] | |
What=configfs | |
Where=/sys/kernel/config | |
Type=configfs | |
# This file is part of systemd. | |
# | |
# systemd is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
[Unit] | |
Description=Debug File System | |
Documentation=https://www.kernel.org/doc/Documentation/filesystems/debugfs.txt | |
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems | |
DefaultDependencies=no | |
ConditionPathExists=/sys/kernel/debug | |
Before=sysinit.target | |
[Mount] | |
What=debugfs | |
Where=/sys/kernel/debug | |
Type=debugfs | |
[Unit] | |
Description=Droid mount for /system | |
Before=local-fs.target systemd-modules-load.service | |
[Mount] | |
What=/dev/block/mmcblk0p24 | |
Where=/system | |
Type=ext4 | |
Options=ro,barrier=1 | |
# Options had SELinux context option: | |
# Default is 90 which makes mount period too long in case of | |
# errors so drop it down a notch. | |
TimeoutSec=10 | |
[Install] | |
WantedBy=local-fs.target | |
# From ./out/target/product/r7plus/root/fstab.qcom : | |
# /dev/block/mmcblk0p24 /system ext4 ro,barrier=1 wait | |
# This file is part of systemd. | |
# | |
# systemd is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
[Unit] | |
Description=Temporary Directory | |
Documentation=man:hier(7) | |
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems | |
DefaultDependencies=no | |
Conflicts=umount.target | |
Before=local-fs.target umount.target | |
[Mount] | |
What=tmpfs | |
Where=/tmp | |
Type=tmpfs | |
Options=mode=1777,strictatime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ # ls -la /dev/block/bootdevice/by-name/ | |
_ | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 DDR -> /dev/block/mmcblk0p2 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 DRIVER -> /dev/block/mmcblk0p32 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 LOGO -> /dev/block/mmcblk0p21 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 aboot -> /dev/block/mmcblk0p9 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 abootbak -> /dev/block/mmcblk0p10 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 boot -> /dev/block/mmcblk0p22 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 cache -> /dev/block/mmcblk0p26 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 config -> /dev/block/mmcblk0p30 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 devinfo -> /dev/block/mmcblk0p25 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 fsc -> /dev/block/mmcblk0p5 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 fsg -> /dev/block/mmcblk0p3 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 grow -> /dev/block/mmcblk0p38 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 hyp -> /dev/block/mmcblk0p15 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 hypbak -> /dev/block/mmcblk0p16 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 keystore -> /dev/block/mmcblk0p29 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 misc -> /dev/block/mmcblk0p28 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 modem -> /dev/block/mmcblk0p1 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 modemst1 -> /dev/block/mmcblk0p17 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 modemst2 -> /dev/block/mmcblk0p18 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 oem -> /dev/block/mmcblk0p31 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 oppodycnvbk -> /dev/block/mmcblk0p19 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 oppostanvbk -> /dev/block/mmcblk0p20 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 persist -> /dev/block/mmcblk0p27 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 recovery -> /dev/block/mmcblk0p23 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 reserve1 -> /dev/block/mmcblk0p33 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 reserve2 -> /dev/block/mmcblk0p34 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 reserve3 -> /dev/block/mmcblk0p35 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 reserve4 -> /dev/block/mmcblk0p36 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 rpm -> /dev/block/mmcblk0p11 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 rpmbak -> /dev/block/mmcblk0p12 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 sbl1 -> /dev/block/mmcblk0p7 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 sbl1bak -> /dev/block/mmcblk0p8 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 sec -> /dev/block/mmcblk0p4 | |
lrwxrwxrwx 1 root root 20 Jan 1 02:38 ssd -> /dev/block/mmcblk0p6 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 system -> /dev/block/mmcblk0p24 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 tz -> /dev/block/mmcblk0p13 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 tzbak -> /dev/block/mmcblk0p14 | |
lrwxrwxrwx 1 root root 21 Jan 1 02:38 userdata -> /dev/block/mmcblk0p37 | |
~ # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment