Skip to content

Commit b44db6b

Browse files
committed
Minor update experimental
1 parent fa8b19e commit b44db6b

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ make_image <path to img> <img name.img> <size img in MB>
3535

3636
To mount image use :
3737
``
38-
mount_image <path to img>
38+
mount_image <path to img> <path to linux directory>
3939
``
4040

4141
## Available Distro
@@ -69,5 +69,5 @@ The rootfs tarball is taken from AnLinux Resources [Repository](https://github.c
6969
## Note
7070
- This module will turn SELinux from enforcing to permissive to ensure linux is working properly.
7171
- 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.
72-
- coreutils can be installed via @Zacktptg5 's [ccbins](https://github.com/Magisk-Modules-Repo/ccbins) module.
72+
- coreutils can be installed via @Zackptg5 's [ccbins](https://github.com/Magisk-Modules-Repo/ccbins) module.
7373
- 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, and limited 2GB image size.

system/bin/lhroot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ alpine () {
4949
tmp="/data/local/tmp"
5050
tarball="$tmp/alpine.tar.gz"
5151
archurl=
52-
if [ -d "$folder/bin" ]; then
52+
if [ -d "$folder" ]; then
5353
first=1
54-
ech
54+
echo "skipping downloading"
5555
fi
5656
if [ "$first" != 1 ]; then
5757
if [ ! -f $tarball ]; then

system/bin/mount_image

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ if [ -n "$1" ]; then
2424
busybox umount /data/mount
2525
busybox mount -t ext4 -o suid /dev/loop78 $2
2626
else
27+
if [ ! -d "$2" ]; then
28+
busybox mkdir -p "$2"
29+
fi
2730
busybox mount -t ext4 -o suid /dev/loop78 $2
2831
fi
2932
else

0 commit comments

Comments
 (0)