lhroot

Linux Chroot Installer

Systemless Linux chroot installer and Linux chroot boot script - Modded by SCOS100

Requirements

Manjaro-Linux-Android

NOTICE

Due to many cases like this and this. Please make sure ALL mountpoint on chroot folder is UNMOUNTED before removing chroot folder. I don’t responsible for lost all data, phone bricking, etc. You can check this repository that all the code I wrote, doesn’t intentionally remove your data or bricking your phone. This is fixed, because killlinux is called after exiting. Use this module if you are familiar about Linux Enviroment. DWYOR!

Downloads

To download, look at the latest available artifact made by going to this link.

Usage

If you’re running this on Termux, remember to install root-repo and tsu, and append sudo before each command.

lhroot

and follow the instructions.

##

Warning before proceeding:

Due to a new feature, the bootlinux command now starts all /etc/init.d files. Because of this, remember to use bootlinux_origin if you have elogind, seatd, or SysVInit installed, or your phone will shutdown once exited.

## After installation to boot into Linux Chroot use :

bootlinux

To run 2 or more chroot instances, just pass chroot folder, e.g.

bootlinux /data/manjaro

To unmount bind directory use :

killlinux

Note: You don’t need to do this anymore, after the exit command is executed.

To terminate specific instance, just pass chroot folder, e.g.

killlinux /data/manjaro

To make image use :

make_image <path to img> <img name.img> <size img in MB>

To mount image use :

mount_image <path to img> <path to linux directory>

Available Distro

…more distro added soon (Will probably not do this.)

Supported Architectures

TODO

Credits

License

Licensed under GNU GPL v3

The rootfs tarball is taken from AnLinux Resources Repository Most of distro rootfs tarballs had been rebuilt and stored at lhroot-repo

Support

Note