pmbootstrap, with Synit changes
Go to file
Santosh D 7cfab311f4 prepping port for maguro (galaxy nexus GSM) in case it decides to boot again at some point 2017-05-27 21:00:21 +02:00
aports prepping port for maguro (galaxy nexus GSM) in case it decides to boot again at some point 2017-05-27 21:00:21 +02:00
keys Hello, there! 2017-05-26 22:08:45 +02:00
pmb Fix #1: copying user's abuild keys failed 2017-05-27 15:38:04 +02:00
test Hello, there! 2017-05-26 22:08:45 +02:00
.gitignore Add missing "build" folder (was gitignored before) 2017-05-26 22:35:21 +02:00
LICENSE Initial commit 2017-05-26 19:25:48 +00:00
README.md Adjust pmbootstrap executable in README.md #2 2017-05-26 22:43:36 +02:00
pmbootstrap.py Hello, there! 2017-05-26 22:08:45 +02:00

README.md

pmbootstrap

Sophisticated chroot/build/flash tool to develop and install postmarketOS.

Requirements

  • GNU/Linux
  • Python 3
  • openssh

Usage

Run ./pmbootstrap.py init first, to select a target device and the work folder, which will contain all the chroots and other data. After that, you can run any command. All dependencies (e.g. chroots) will be installed automatically, if they are not available yet.

Here are some examples:

./pmbootstrap.py --help: List all available commands

./pmbootstrap.py log: Run tail -f on the logfile, which contains detailed output. Do this in a second terminal, while executing another pmbootstrap command to get all the details.

./pmbootstrap.py chroot: Open a shell inside a native Alpine Linux chroot (~6 MB install size).

./pmbootstrap.py chroot --suffix=buildroot_armhf: Open a shell inside an armhf Alpine Linux chroot, with qemu user mode emulation and binfmt support automatically set up.

./pmbootstrap.py build heimdall: Build the "heimdall" package (specify any package from the aports-folder here).

./pmbootstrap.py build heimdall --arch=armhf: Build the "heimdall" package for armhf inside the armhf chroot, with the cross-compiler installed in the native chroot (chroots are connected via distcc).

./pmbootstrap.py install: Generate a system image file with a full postmarketOS installation. All required packages get built first, if they do not exist yet. You will get asked for the "user" password and the root partition password.

./pmbootstrap.py install --sdcard=/dev/mmcblk0: Format and partition the SD card /dev/mmcblk0, and put a full postmarketOS installation on it

Testsuite

Simply install pytest (via your package manager or via pip) and run it inside the pmbootstrap folder.