- 07 Jan, 2021 4 commits
-
-
Oliver Smith authored
-
Oliver Smith authored
-
Martijn Braam authored
Don't install /etc/os-release with pmbootstrap, this is handled by postmarketos-base instead.
-
Henrik Grimler authored
Patch by Oliver, fixes #2000
-
- 02 Jan, 2021 1 commit
-
-
Oliver Smith authored
Don't try to install the recently split up packages if the pmaports branch is based on Alpine 3.12. Fixes: 61845c93 ("pmb.run.qemu.install_depends: add new depends (MR 2007)")
-
- 22 Dec, 2020 1 commit
-
-
Oliver Smith authored
Make sure that features requiring a higher python version don't sneak in by accident. It would be nice to add this to test/static_code_analysis.sh, so it is easy to run it locally. But vermin is not packaged in Alpine right now, and given that this should be a rather rarer error, it doesn't seem worth the effort right now. Run silently by default and only in verbose mode if there are errors, because if vermin isn't silent, it will not just point out errors, but describe required python versions for everything it sees. (Copied that part from the bpo CI script, where I had used it as pre-commit hook as it was stuck on 3.5 for some time.)
-
- 21 Dec, 2020 1 commit
-
-
HenriDellal authored
Adds a list of locales user can choose from on init step. If locale isn't default, then "lang" package is installed and LANG is changed to the chosen locale.
-
- 19 Dec, 2020 2 commits
-
-
Oliver Smith authored
Skip building the postmarketOS rootfs, and allow either installing a pre-built pmOS rootfs, or even another operating system.
-
Oliver Smith authored
Allow to copy one or more files to the install chroot. It will be possible to use this to put a non-pmOS image into the generated installer OS.
-
- 16 Dec, 2020 4 commits
-
-
Oliver Smith authored
-
Oliver Smith authored
Alpine's qemu packaging has been split up into more subpackages, so install them too. Related: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/15554
-
Oliver Smith authored
-
Oliver Smith authored
Hide progress bars if --details-to-stdout is used, which redirects all output that would land in the pmbootstrap log to stdout. This caused the progress bar output to get mixed with the apk output. A new progress bar would get drawn whenever a new package was installed, without removing the previous progress bar.
-
- 14 Dec, 2020 2 commits
-
-
Johannes Marbach authored
Many of pmbootstrap's actions require root rights. When after requesting sudo access pmbootstrap takes longer than the sudo timeout interval to finish execution, the password will have to be entered again on the next sudo action. This change adds an opt-in feature to run sudo -v in a background loop in order to prevent having to enter the password more than once for a single pmbootstrap run. The loop runs as a daemon timer which automatically gets canceled when pmbootstrap exits. Closes: #1677
-
Johannes Marbach authored
Replace the "kill_as_root" argument with a much simpler "sudo" argument and remove the now obsolete check for the output mode of "kill_as_root". "kill_as_root" would only get set to True if both conditions are met: a) command is running with sudo b) command is running with an output mode ("log" or "stdout") where pmb.helpers.run_core would kill it if it does not output anything before a timeout is reached The new "sudo" argument just indicates if the command is running with sudo (a), regardless of the output mode (b).
-
- 09 Dec, 2020 1 commit
-
-
Martijn Braam authored
Fix typo introduced in earlier commit and expand on force=True behavior
-
- 08 Dec, 2020 3 commits
-
-
Martijn Braam authored
The sideload command runs the supplied names through the pmbootstrap buildsystem to make sure they're up-to-date, then uses scp from the host to copy the built apks to /tmp on the phone and installs them through ssh. If the --install-key option is set then it will also copy over the apk key that's used for signing the packages built by pmbootstrap in case the postmarketOS install on the device isn't build by the same machine as you're sideloading from.
-
Oliver Smith authored
Get rid of hardcoded step numbers, even for the currently common steps. With the upcoming --ondev --no-rootfs, we will need to skip the hardcoded step 2 (create device rootfs).
-
Oliver Smith authored
Move related code from pmb/install/_install.py:install() to a new create_device_rootfs() function in the same file, so it can be skipped with the upcoming --no-rootfs parameter.
-
- 07 Dec, 2020 10 commits
-
-
Johannes Marbach authored
Run pmbootstrap update to test
-
Johannes Marbach authored
This adds a progress bar when running apk commands both inside and outside of the chroot. Closes: #1700
-
Johannes Marbach authored
Extract the error check to a separate function so that it can be reused.
-
Johannes Marbach authored
This adds a new output mode "pipe" that is identical to the existing "background" mode except for that its stdout is redirected into a pipe so that it can be retrieved.
-
Johannes Marbach authored
Before this commit, pmb.helpers.run_core.sanity_checks would raise a runtime error when pmb.helpers.run.root was called with an output mode that did not support timeouts (like background).
-
Johannes Marbach authored
This makes the output mode apparent
-
Johannes Marbach authored
This makes apk use the pretty character for printing progress
-
Oliver Smith authored
-
HenriDellal authored
Adds checks for following kernel config options: SAMSUNG_TUI: TUI HW Handler - related to Samsung's security measures Creates "secure frame buffer", results in bootloop SEC_RESTRICT_ROOTING: blocks gaining root permissions TZDEV: Samsung TZ Based Secure OS interface driver (results in bootloops)
-
Oliver Smith authored
Create an empty home dir if /etc/skel does not exist in the target rootfs. Due to changes in packaging, this can happen now, previously /etc/skel would always have existed.
-
- 04 Dec, 2020 1 commit
-
-
Alexey Min authored
Closes #1991
-
- 03 Dec, 2020 2 commits
-
-
Bart Ribbers authored
This is needed at least on Alpine Linux, and probably on distros like NixOS as well. Fixes: #1135
-
HenriDellal authored
Makes argument "package" positional instead of required. Uses codename from deviceinfo as default value.
-
- 02 Dec, 2020 1 commit
-
-
HenriDellal authored
-
- 23 Nov, 2020 7 commits
-
-
Oliver Smith authored
Move the numerous "install" arguments into an own function (as it was done with actions added later). Categorize the options and update the help output, so the options are easier to understand.
-
Oliver Smith authored
Embed the firmware from the right chroot suffix. Previously it would always use the rootfs_{args.device} chroot, which does not work anymore with upcoming 'pmbootstrap install --ondev --no-rootfs' as there will only be the installer_{args.device} chroot.
-
HenriDellal authored
Adds QCDT templates for Spreadtrum and Exynos SoCs When "pmbootstrap init" is executed, after the boot image analysis, if the device is QCDT, then the user is asked about the SoC vendor. Example: [HH:MM:SS] SoC vendor (spreadtrum/exynos/other) [other]: exynos After that, the corresponding template is picked.
-
Oliver Smith authored
Enforce the E501 length check of max 79 characters for all files where this test passes already. We can add more to the list as we adjust them and eventuelly require the check for all files.
-
Johannes Marbach authored
-
Johannes Marbach authored
-
Johannes Marbach authored
-