Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,25 @@ To mount image use :
```console
mount_image <path to img> <path to linux directory>
```
## Automatically Start Chroot Linux on Device Boot

If you have installed the lhroot module, you can simply place the following script in Magisk(or KernelSU)'s boot script directory (/data/adb/service.d):

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

Assuming the script is named lhroot.sh, give it executable permissions with `chmod +x lhroot.sh`.

Restart your device, and you will see that the Linux system will automatically start along with the device boot.

This functionality is provided by Magisk or KernelSU.

For more information, please refer to the following resources:

- Magisk: [Boot Scripts](https://topjohnwu.github.io/Magisk/guides.html#boot-scripts)
- KernelSU: [Module Guide - Boot Scripts](https://kernelsu.org/guide/module.html#boot-scripts)

## Available Distro
- Alpine Linux, Installed on /data/alpine
Expand Down