FerryAr / lhroot

Linux Chroot Installer & Bootscript Magisk Module.
GNU General Public License v3.0
190 stars 20 forks source link

Boot into Linux Chroot when device startup #14

Closed TitanWhoo closed 1 year ago

TitanWhoo commented 1 year ago

Do you have any plan to support boot into Linux Chroot when device startup? Currently I edit a shell script and put it into /data/adb/service.d to auto run bootlinux command. Are there any better solutions?

Thanks.

FerryAr commented 1 year ago

Since it's user preference, I don't have any plan to implement that soon.

puneetred commented 11 months ago

@TitanWhoo is it possible for you to share the script?

TitanWhoo commented 10 months ago

@TitanWhoo is it possible for you to share the script?

Assuming you have installed the "lhroot" Magisk module You can easily place the following script in the Magisk's boot script directory (/data/adb/service.d):

#!/bin/sh
/system/bin/bootlinux

Assuming the script is named "lhroot.sh," grant it executable permissions using the command:

chmod +x /data/adb/service.d/lhroot.sh

Restart your device, and you will see that the Linux system will automatically start alongside the device during boot-up.

This is a feature of Magisk, you can refer to the following link for more information: Magisk Guides - Boot Scripts