User:OxR463/Drafts/installation on android: Difference between revisions
m (→Setup Disk) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== | == Dependencies == | ||
* Root Access | |||
* Busybox | |||
* ADB / Terminal Emulator | |||
== Setup Disk == | |||
=== File Structure === | |||
<pre> | |||
/data/data/org.alpinelinux/ | /data/data/org.alpinelinux/ | ||
├── cache | |||
│ └── alpine-minirootfs-3.9.0-aarch64.tar.gz | |||
└── files | |||
└── rootfs.bin | |||
2 directories, 2 files | |||
</pre> | |||
=== Virtual Disk Creation === | |||
{{Cmd|fallocate -l 1G rootfs.bin}} | |||
=== Encryption via LUKS === | |||
{{Cmd|cryptsetup luksFormat rootfs.bin}} | |||
For more on this, see [https://wiki.alpinelinux.org/wiki/LVM_on_LUKS LVM on LUKS]. | |||
=== Format File System === | |||
{{Cmd|cryptsetup luksOpen rootfs.bin alpine}} | |||
{{Cmd|mkfs.ext4 /dev/mapper/alpine}} | |||
== Bootstrap System == | |||
* Fetch File System Tarball | |||
* Chroot | |||
== Further Configuration == | |||
* TODO | |||
== Helper Scripts == | |||
* TODO | |||
== References == | |||
* [https://developer.android.com/guide/topics/data/data-storage#filesInternal Data and file storage overview | Android Developers] | * [https://developer.android.com/guide/topics/data/data-storage#filesInternal Data and file storage overview | Android Developers] | ||
* [https://developer.android.com/google/play/expansion-files APK Expansion Files | Android Developers] | * [https://developer.android.com/google/play/expansion-files APK Expansion Files | Android Developers] |
Latest revision as of 00:54, 13 February 2019
Dependencies
- Root Access
- Busybox
- ADB / Terminal Emulator
Setup Disk
File Structure
/data/data/org.alpinelinux/ ├── cache │ └── alpine-minirootfs-3.9.0-aarch64.tar.gz └── files └── rootfs.bin 2 directories, 2 files
Virtual Disk Creation
fallocate -l 1G rootfs.bin
Encryption via LUKS
cryptsetup luksFormat rootfs.bin
For more on this, see LVM on LUKS.
Format File System
cryptsetup luksOpen rootfs.bin alpine
mkfs.ext4 /dev/mapper/alpine
Bootstrap System
- Fetch File System Tarball
- Chroot
Further Configuration
- TODO
Helper Scripts
- TODO