{"id":23739594,"url":"https://github.com/FerryAr/lhroot","last_synced_at":"2025-09-04T15:31:15.027Z","repository":{"id":41489972,"uuid":"285005196","full_name":"FerryAr/lhroot","owner":"FerryAr","description":"Linux Chroot Installer \u0026 Bootscript Magisk Module.","archived":false,"fork":false,"pushed_at":"2023-12-25T14:28:26.000Z","size":60,"stargazers_count":141,"open_issues_count":17,"forks_count":16,"subscribers_count":9,"default_branch":"master","last_synced_at":"2023-12-25T16:34:53.129Z","etag":null,"topics":["chroot","installer","kali-linux","linux","magisk","module","root"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FerryAr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-08-04T14:28:59.000Z","updated_at":"2023-12-24T05:42:45.000Z","dependencies_parsed_at":"2023-09-24T15:09:23.071Z","dependency_job_id":null,"html_url":"https://github.com/FerryAr/lhroot","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FerryAr%2Flhroot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FerryAr%2Flhroot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FerryAr%2Flhroot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FerryAr%2Flhroot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FerryAr","download_url":"https://codeload.github.com/FerryAr/lhroot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231970931,"owners_count":18453925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chroot","installer","kali-linux","linux","magisk","module","root"],"created_at":"2024-12-31T09:37:02.804Z","updated_at":"2024-12-31T09:38:48.699Z","avatar_url":"https://github.com/FerryAr.png","language":"Shell","readme":"# Linux Chroot Installer\n\nSystemless Linux chroot installer and Linux chroot boot script\n\n## Requirements\n- Rooted with Magisk\n- busybox installed\n- coreutils for make_image\n- mke2fs for make_image\n- This module\n\n![Manjaro-Linux-Android](https://i.ibb.co/gdpw8QG/lhroot.png)\n\n## NOTICE\nDue to many cases like [this](https://github.com/FerryAr/lhroot/issues/18) and [this](https://github.com/FerryAr/lhroot/issues/21). 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. Use this module if you are familiar about Linux Enviroment. DWYOR!\n\n## Usage\n\n```console\nlhroot\n```\n\nand follow the instructions\n\nAfter installation to boot into Linux Chroot use :\n\n```console\nbootlinux\n```\n\nAfter v2.1 you can run 2 or more chroot instances, just pass chroot folder, e.g.\n```console\nbootlinux /data/manjaro\n```\n\nTo unmount bind directory use :\n\n```console\nkilllinux\n```\n\nAfter v2.1 you can terminate specific instance, just pass chroot folder, e.g.\n```console\nkilllinux /data/manjaro\n```\n\nTo make image use :\n\n```console\nmake_image \u003cpath to img\u003e \u003cimg name.img\u003e \u003csize img in MB\u003e\n```\n\nTo mount image use : \n\n```console\nmount_image \u003cpath to img\u003e \u003cpath to linux directory\u003e\n```\n\n## Available Distro\n- Alpine Linux, Installed on /data/alpine\n- Arch Linux, Installed on /data/arch\n- Debian, Installed on /data/debian\n- Fedora, Installed on /data/fedora\n- Kali Linux, Installed on /data/kali\n- Manjaro ARM, Installed on /data/manjaro\n- Ubuntu, Installed on /data/ubuntu\n- Void Linux, Installed on /data/void\n\n...more distro added soon\n\n## Supported Architectures\n- arm\n- aarch64\n- x86\n- x64\n\n## TODO\n- [ ] Migrate all file used in lhroot to my repo (WIP)\n- [ ] Built in Audio support\n- [ ] Cross compile all dependancies\n\n## Credits\n- [mod-util](https://github.com/veez21/mod-util) by @veez21\n- Magisk by @topjohnwu\n\n## License\nLicensed under GNU GPL v3\n\n~~The rootfs tarball is taken from AnLinux Resources [Repository](https://github.com/EXALAB/Anlinux-Resources)~~\nMost of distro rootfs tarballs had been rebuilt and stored at [lhroot-repo](https://github.com/FerryAr/lhroot-repo)\n\n## Support\n- Open issue here\n- or visit [XDA Thread](https://forum.xda-developers.com/showthread.php?t=4142803)\n\n## Note\n- If you want to store your chroot in image file, make image file first using make_image then mount the image using mount_image script.\n- coreutils can be installed via @Zackptg5 's [ccbins](https://github.com/Magisk-Modules-Repo/ccbins) module.\n- mke2fs can be installed via my [e2fsprogs module](https://github.com/FerryAr/e2fsprogs-arm), support for arm device only, other arch will be use busybox mke2fs applets,will use ext2 filesystem and limited 2GB image size.\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFerryAr%2Flhroot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFerryAr%2Flhroot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFerryAr%2Flhroot/lists"}